Browse Source

Pull request #3421: BI-120672 feat:时间选择控件opt里支持传height

Merge in VISUAL/fineui from ~CLAIRE.TANG/fineui:master to master

* commit '0184d389ba461f510d23a5bf754dde9f68afee7f':
  BI-120672 feat:时间选择控件opt里支持传height
  BI-120672 feat:时间选择控件opt里支持传height
research/test
Claire.Tang-唐锦霞 1 year ago
parent
commit
d178254703
  1. 15
      src/widget/dynamicdatetime/dynamicdatetime.timeselect.js

15
src/widget/dynamicdatetime/dynamicdatetime.timeselect.js

@ -1,11 +1,16 @@
BI.DynamicDateTimeSelect = BI.inherit(BI.Widget, {
props: {
baseCls: "bi-date-time-select"
props: function () {
return {
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 +46,7 @@ BI.DynamicDateTimeSelect = BI.inherit(BI.Widget, {
}
}],
width: 60,
height: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT
height: o.height,
}
}, {
type: "bi.label",
@ -77,7 +82,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 +111,7 @@ BI.DynamicDateTimeSelect = BI.inherit(BI.Widget, {
}
}],
width: 60,
height: BI.SIZE_CONSANTS.LIST_ITEM_HEIGHT
height: o.height,
}]
}]
};

Loading…
Cancel
Save