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({
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()) {

Loading…
Cancel
Save