From 9ef557a24ab96aebd30319319b86dc1b93471e65 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Mon, 3 Jun 2019 13:46:55 +0800 Subject: [PATCH] =?UTF-8?q?BI-45527=20=E8=B0=83=E6=95=B4=E5=B9=B4=E6=9C=88?= =?UTF-8?q?=E4=B8=8B=E6=8B=89=E9=80=89=E4=B8=AD=E6=95=88=E6=9E=9C=20&&=20l?= =?UTF-8?q?abel=20=5FsetEnable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/single/label/label.js | 9 --------- src/case/calendar/calendar.year.js | 2 +- src/widget/month/popup.month.js | 2 +- src/widget/yearmonth/card.static.yearmonth.js | 2 +- src/widget/yearquarter/card.static.yearquarter.js | 2 +- 5 files changed, 4 insertions(+), 13 deletions(-) diff --git a/src/base/single/label/label.js b/src/base/single/label/label.js index de93b483d..f065ef9c9 100644 --- a/src/base/single/label/label.js +++ b/src/base/single/label/label.js @@ -330,15 +330,6 @@ BI.Label = BI.inherit(BI.Single, { }); }, - _setEnable: function (enable) { - BI.Label.superclass._setEnable.apply(this, arguments); - if (enable === true) { - this.element.removeClass("base-disabled disabled"); - } else if (enable === false) { - this.element.addClass("base-disabled disabled"); - } - }, - doRedMark: function () { this.text.doRedMark.apply(this.text, arguments); }, diff --git a/src/case/calendar/calendar.year.js b/src/case/calendar/calendar.year.js index 9abbae46e..f7e0fb19a 100644 --- a/src/case/calendar/calendar.year.js +++ b/src/case/calendar/calendar.year.js @@ -59,7 +59,7 @@ BI.YearCalendar = BI.inherit(BI.Widget, { return BI.map(item, function (j, td) { return BI.extend(td, { type: "bi.text_item", - cls: "bi-list-item-active", + cls: "bi-list-item-select", textAlign: "center", whiteSpace: "normal", once: false, diff --git a/src/widget/month/popup.month.js b/src/widget/month/popup.month.js index 609cf143f..658642b21 100644 --- a/src/widget/month/popup.month.js +++ b/src/widget/month/popup.month.js @@ -31,7 +31,7 @@ BI.MonthPopup = BI.inherit(BI.Widget, { return BI.map(item, function (j, td) { return { type: "bi.text_item", - cls: "bi-list-item-active", + cls: "bi-list-item-select", textAlign: "center", whiteSpace: "nowrap", once: false, diff --git a/src/widget/yearmonth/card.static.yearmonth.js b/src/widget/yearmonth/card.static.yearmonth.js index b0a51efeb..2f46a05c5 100644 --- a/src/widget/yearmonth/card.static.yearmonth.js +++ b/src/widget/yearmonth/card.static.yearmonth.js @@ -19,7 +19,7 @@ BI.StaticYearMonthCard = BI.inherit(BI.Widget, { return BI.map(item, function (j, td) { return { type: "bi.text_item", - cls: "bi-list-item-active", + cls: "bi-list-item-select", textAlign: "center", whiteSpace: "nowrap", once: false, diff --git a/src/widget/yearquarter/card.static.yearquarter.js b/src/widget/yearquarter/card.static.yearquarter.js index 2fb132821..de236ccdf 100644 --- a/src/widget/yearquarter/card.static.yearquarter.js +++ b/src/widget/yearquarter/card.static.yearquarter.js @@ -23,7 +23,7 @@ BI.StaticYearQuarterCard = BI.inherit(BI.Widget, { return BI.map(items, function (j, item) { return BI.extend(item, { type: "bi.text_item", - cls: "bi-list-item-active", + cls: "bi-list-item-select", textAlign: "center", whiteSpace: "nowrap", once: false,