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