From 1be3a333d0529347735e290ef720f8e4317084e7 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Thu, 29 Jul 2021 10:52:07 +0800 Subject: [PATCH] comment --- .../colorpicker/button/button.colorshow.js | 10 ---------- .../colorchooser/colorpicker/editor.colorpicker.hex.js | 4 ++-- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/case/colorchooser/colorpicker/button/button.colorshow.js b/src/case/colorchooser/colorpicker/button/button.colorshow.js index fec971237..740a5d0a7 100644 --- a/src/case/colorchooser/colorpicker/button/button.colorshow.js +++ b/src/case/colorchooser/colorpicker/button/button.colorshow.js @@ -16,7 +16,6 @@ BI.ColorChooserShowButton = BI.inherit(BI.BasicButton, { items: [{ el: { type: "bi.icon_label", - cls: o.iconCls, ref: function (_ref) { self.icon = _ref; }, @@ -39,15 +38,6 @@ BI.ColorChooserShowButton = BI.inherit(BI.BasicButton, { this.fireEvent(BI.ColorChooserShowButton.EVENT_CHANGE, this); } }, - - setSelected: function (b) { - BI.ColorChooserShowButton.superclass.setSelected.apply(this, arguments); - if (b) { - this.icon.element.addClass("active"); - } else { - this.icon.element.removeClass("active"); - } - }, }); BI.ColorChooserShowButton.EVENT_CHANGE = "EVENT_CHANGE"; BI.shortcut("bi.color_picker_show_button", BI.ColorChooserShowButton); \ No newline at end of file diff --git a/src/case/colorchooser/colorpicker/editor.colorpicker.hex.js b/src/case/colorchooser/colorpicker/editor.colorpicker.hex.js index 36eb279f3..f20cc58a3 100644 --- a/src/case/colorchooser/colorpicker/editor.colorpicker.hex.js +++ b/src/case/colorchooser/colorpicker/editor.colorpicker.hex.js @@ -65,7 +65,7 @@ BI.HexColorPickerEditor = BI.inherit(BI.Widget, { height: 24, items: [{ type: "bi.color_picker_show_button", - iconCls: "trans-color-icon", + cls: "trans-color-icon", height: 22, title: BI.i18nText("BI-Transparent_Color"), text: BI.i18nText("BI-Transparent_Color"), @@ -94,7 +94,7 @@ BI.HexColorPickerEditor = BI.inherit(BI.Widget, { }, { el: { type: "bi.color_picker_show_button", - iconCls: "auto-color-icon", + cls: "auto-color-icon", height: 22, title: BI.i18nText("BI-Basic_Auto"), text: BI.i18nText("BI-Basic_Auto"),