From b39a152bce960a7dbbbf63a78e2d71f6f89cce0e Mon Sep 17 00:00:00 2001 From: Guyi Date: Fri, 18 Jun 2021 20:59:39 +0800 Subject: [PATCH] =?UTF-8?q?JSY-7441=20refactor=EF=BC=9Adatetime.combo?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E9=AB=98=E5=BA=A6=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widget/datetime/datetime.combo.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/widget/datetime/datetime.combo.js b/src/widget/datetime/datetime.combo.js index 600a28242..81224c021 100644 --- a/src/widget/datetime/datetime.combo.js +++ b/src/widget/datetime/datetime.combo.js @@ -31,6 +31,7 @@ BI.DateTimeCombo = BI.inherit(BI.Single, { }; this.trigger = BI.createWidget({ type: "bi.date_time_trigger", + height: opts.height, min: opts.minDate, max: opts.maxDate, value: opts.value @@ -82,8 +83,8 @@ BI.DateTimeCombo = BI.inherit(BI.Single, { var triggerBtn = BI.createWidget({ type: "bi.icon_button", cls: "bi-trigger-icon-button date-font", - width: 24, - height: 24 + width: opts.height, + height: opts.height, }); triggerBtn.on(BI.IconButton.EVENT_CHANGE, function () { if (self.combo.isViewVisible()) {