From 3df163fafeabc6dbec0742fcdda9080b11c59ef8 Mon Sep 17 00:00:00 2001 From: Claire <1119518763@qq.com> Date: Mon, 6 Feb 2023 14:58:36 +0800 Subject: [PATCH] =?UTF-8?q?BI-120672=20feat:=E6=97=B6=E9=97=B4=E9=80=89?= =?UTF-8?q?=E6=8B=A9=E6=8E=A7=E4=BB=B6opt=E9=87=8C=E6=94=AF=E6=8C=81?= =?UTF-8?q?=E4=BC=A0height?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dynamicdatetime/dynamicdatetime.timeselect.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/widget/dynamicdatetime/dynamicdatetime.timeselect.js b/src/widget/dynamicdatetime/dynamicdatetime.timeselect.js index 5642cb799..fb92e505a 100644 --- a/src/widget/dynamicdatetime/dynamicdatetime.timeselect.js +++ b/src/widget/dynamicdatetime/dynamicdatetime.timeselect.js @@ -1,11 +1,14 @@ BI.DynamicDateTimeSelect = BI.inherit(BI.Widget, { props: { - baseCls: "bi-date-time-select" + baseCls: "bi-date-time-select", + height: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT, }, render: function () { var self = this; + var o = this.options; + return { type: "bi.center_adapt", items: [{ @@ -41,7 +44,7 @@ BI.DynamicDateTimeSelect = BI.inherit(BI.Widget, { } }], width: 60, - height: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT + height: o.height, } }, { type: "bi.label", @@ -77,7 +80,7 @@ BI.DynamicDateTimeSelect = BI.inherit(BI.Widget, { } }], width: 60, - height: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT + height: o.height, }, { type: "bi.label", text: ":", @@ -106,7 +109,7 @@ BI.DynamicDateTimeSelect = BI.inherit(BI.Widget, { } }], width: 60, - height: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT + height: o.height, }] }] };