From efb7dc5f4388900d583c3e3dd384d1c2321a03ee Mon Sep 17 00:00:00 2001 From: guy Date: Sat, 22 Aug 2020 23:26:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E6=9C=AC=E6=94=AF=E6=8C=81=E7=82=B9?= =?UTF-8?q?=E5=87=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/case/colorchooser/colorchooser.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/case/colorchooser/colorchooser.js b/src/case/colorchooser/colorchooser.js index c5cd1362c9..a39d677a1f 100644 --- a/src/case/colorchooser/colorchooser.js +++ b/src/case/colorchooser/colorchooser.js @@ -11,7 +11,8 @@ BI.ColorChooser = BI.inherit(BI.Widget, { return BI.extend(BI.ColorChooser.superclass._defaultConfig.apply(this, arguments), { baseCls: "bi-color-chooser", value: "", - height: 24 + height: 24, + el: {} }); }, @@ -32,8 +33,8 @@ BI.ColorChooser = BI.inherit(BI.Widget, { ref: function (_ref) { self.trigger = _ref; }, - width: o.type ? o.width : o.width - 2, - height: o.type ? o.height : o.height - 2 + width: o.el.type ? o.width : o.width - 2, + height: o.el.type ? o.height : o.height - 2 }, o.el), popup: { el: BI.extend({