Browse Source

JSY-7441 refactor:datetime.combo支持高度调整

es6
Guyi 4 years ago
parent
commit
b39a152bce
  1. 5
      src/widget/datetime/datetime.combo.js

5
src/widget/datetime/datetime.combo.js

@ -31,6 +31,7 @@ BI.DateTimeCombo = BI.inherit(BI.Single, {
}; };
this.trigger = BI.createWidget({ this.trigger = BI.createWidget({
type: "bi.date_time_trigger", type: "bi.date_time_trigger",
height: opts.height,
min: opts.minDate, min: opts.minDate,
max: opts.maxDate, max: opts.maxDate,
value: opts.value value: opts.value
@ -82,8 +83,8 @@ BI.DateTimeCombo = BI.inherit(BI.Single, {
var triggerBtn = BI.createWidget({ var triggerBtn = BI.createWidget({
type: "bi.icon_button", type: "bi.icon_button",
cls: "bi-trigger-icon-button date-font", cls: "bi-trigger-icon-button date-font",
width: 24, width: opts.height,
height: 24 height: opts.height,
}); });
triggerBtn.on(BI.IconButton.EVENT_CHANGE, function () { triggerBtn.on(BI.IconButton.EVENT_CHANGE, function () {
if (self.combo.isViewVisible()) { if (self.combo.isViewVisible()) {

Loading…
Cancel
Save