From b1df6aa82e47565c45ef4904cb8b578e9ad9e01f Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Tue, 11 Aug 2020 17:20:15 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=E4=BB=BB=E5=8A=A1=20=E6=97=A5?= =?UTF-8?q?=E6=9C=9F=E5=8C=BA=E9=97=B4=E8=87=AA=E5=AE=9A=E4=B9=89=E9=AB=98?= =?UTF-8?q?=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widget/timeinterval/dateinterval.js | 10 ++++++---- src/widget/timeinterval/timeinterval.js | 10 ++++++---- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/src/widget/timeinterval/dateinterval.js b/src/widget/timeinterval/dateinterval.js index 97f2b0f73..894898e32 100644 --- a/src/widget/timeinterval/dateinterval.js +++ b/src/widget/timeinterval/dateinterval.js @@ -14,7 +14,8 @@ BI.DateInterval = BI.inherit(BI.Single, { return BI.extend(conf, { extraCls: "bi-date-interval", minDate: "1900-01-01", - maxDate: "2099-12-31" + maxDate: "2099-12-31", + height: 24 }); }, _init: function () { @@ -26,14 +27,14 @@ BI.DateInterval = BI.inherit(BI.Single, { this.right = this._createCombo(o.value.end); this.label = BI.createWidget({ type: "bi.label", - height: this.constants.height, + height: o.height, width: this.constants.width, text: "-" }); BI.createWidget({ element: self, type: "bi.center", - height: this.constants.height, + height: o.height, items: [{ type: "bi.absolute", items: [{ @@ -68,7 +69,8 @@ BI.DateInterval = BI.inherit(BI.Single, { var combo = BI.createWidget({ type: "bi.dynamic_date_combo", behaviors: o.behaviors, - value: v + value: v, + height: o.height, }); combo.on(BI.DynamicDateCombo.EVENT_ERROR, function () { self._clearTitle(); diff --git a/src/widget/timeinterval/timeinterval.js b/src/widget/timeinterval/timeinterval.js index 20d307da1..36d980b77 100644 --- a/src/widget/timeinterval/timeinterval.js +++ b/src/widget/timeinterval/timeinterval.js @@ -14,7 +14,8 @@ BI.TimeInterval = BI.inherit(BI.Single, { return BI.extend(conf, { extraCls: "bi-time-interval", minDate: "1900-01-01", - maxDate: "2099-12-31" + maxDate: "2099-12-31", + height: 24 }); }, _init: function () { @@ -26,14 +27,14 @@ BI.TimeInterval = BI.inherit(BI.Single, { this.right = this._createCombo(o.value.end); this.label = BI.createWidget({ type: "bi.label", - height: this.constants.height, + height: o.height, width: this.constants.width, text: "-" }); BI.createWidget({ element: self, type: "bi.center", - height: this.constants.height, + height: o.height, items: [{ type: "bi.absolute", items: [{ @@ -68,7 +69,8 @@ BI.TimeInterval = BI.inherit(BI.Single, { var combo = BI.createWidget({ type: "bi.dynamic_date_time_combo", behaviors: o.behaviors, - value: v + value: v, + height: o.height, }); combo.on(BI.DynamicDateTimeCombo.EVENT_ERROR, function () { self._clearTitle();