Browse Source

Pull request #1975: JSY-7441 refactor:datetime.combo支持高度调整

Merge in VISUAL/fineui from ~GUYI/fineui:master to master

* commit '16df548a4cb6b348702a3f7b0101be660a069e15':
  JSY-7441 refactor:datetime.combo支持高度调整
es6
Guyi 3 years ago
parent
commit
6e26ae6986
  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