Browse Source

KERNEL-12735 feat:日期相关控件水印支持

es6
zsmj 2 years ago
parent
commit
2e6b165994
  1. 9
      src/widget/timeinterval/timeperiods.js

9
src/widget/timeinterval/timeperiods.js

@ -51,7 +51,7 @@
ref: function (_ref) {
self.left = _ref;
}
}, this._createCombo(o.value.start)),
}, this._createCombo(o.value.start, o.watermark?.start)),
left: this.constants.offset,
right: 0,
top: 0,
@ -64,7 +64,7 @@
ref: function (_ref) {
self.right = _ref;
}
}, this._createCombo(o.value.end)),
}, this._createCombo(o.value.end, o.watermark?.end)),
left: 0,
right: this.constants.offset,
top: 0,
@ -80,13 +80,14 @@
};
},
_createCombo: function (v) {
_createCombo: function (v, watermark) {
var self = this;
var o = this.options;
return {
type: "bi.time_combo",
value: v,
height: o.height,
watermark: watermark,
listeners: [{
eventName: BI.TimeCombo.EVENT_BEFORE_POPUPVIEW,
action: function () {
@ -119,4 +120,4 @@
BI.TimePeriods.EVENT_CONFIRM = "EVENT_CONFIRM";
BI.TimePeriods.EVENT_CHANGE = "EVENT_CHANGE";
BI.shortcut("bi.time_periods", BI.TimePeriods);
})();
})();

Loading…
Cancel
Save