|
|
|
@ -19,63 +19,32 @@
|
|
|
|
|
render: function () { |
|
|
|
|
var self = this, o = this.options; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return { |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
height: o.height, |
|
|
|
|
type: "bi.horizontal_fill", |
|
|
|
|
columnSize: ["fill", "", "fill"], |
|
|
|
|
items: [{ |
|
|
|
|
el: { |
|
|
|
|
type: "bi.horizontal_auto", |
|
|
|
|
items: [{ |
|
|
|
|
type: "bi.label", |
|
|
|
|
height: o.height, |
|
|
|
|
width: this.constants.width, |
|
|
|
|
text: "-", |
|
|
|
|
ref: function (_ref) { |
|
|
|
|
self.label = _ref; |
|
|
|
|
} |
|
|
|
|
}] |
|
|
|
|
}, |
|
|
|
|
top: 0, |
|
|
|
|
left: 0, |
|
|
|
|
right: 0, |
|
|
|
|
bottom: 0 |
|
|
|
|
el: BI.extend({ |
|
|
|
|
ref: function (_ref) { |
|
|
|
|
self.left = _ref; |
|
|
|
|
} |
|
|
|
|
}, this._createCombo(o.value.start, o.watermark?.start)) |
|
|
|
|
}, { |
|
|
|
|
el: { |
|
|
|
|
type: "bi.center", |
|
|
|
|
type: "bi.label", |
|
|
|
|
height: o.height, |
|
|
|
|
hgap: this.constants.hgap, |
|
|
|
|
items: [{ |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
items: [{ |
|
|
|
|
el: BI.extend({ |
|
|
|
|
ref: function (_ref) { |
|
|
|
|
self.left = _ref; |
|
|
|
|
} |
|
|
|
|
}, this._createCombo(o.value.start, o.watermark?.start)), |
|
|
|
|
left: this.constants.offset, |
|
|
|
|
right: 0, |
|
|
|
|
top: 0, |
|
|
|
|
bottom: 0, |
|
|
|
|
}] |
|
|
|
|
}, { |
|
|
|
|
type: "bi.absolute", |
|
|
|
|
items: [{ |
|
|
|
|
el: BI.extend({ |
|
|
|
|
ref: function (_ref) { |
|
|
|
|
self.right = _ref; |
|
|
|
|
} |
|
|
|
|
}, this._createCombo(o.value.end, o.watermark?.end)), |
|
|
|
|
left: 0, |
|
|
|
|
right: this.constants.offset, |
|
|
|
|
top: 0, |
|
|
|
|
bottom: 0, |
|
|
|
|
}] |
|
|
|
|
}] |
|
|
|
|
}, |
|
|
|
|
top: 0, |
|
|
|
|
left: 0, |
|
|
|
|
right: 0, |
|
|
|
|
bottom: 0 |
|
|
|
|
hgap: 5, |
|
|
|
|
text: "-", |
|
|
|
|
ref: function (_ref) { |
|
|
|
|
self.label = _ref; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
}, { |
|
|
|
|
el: BI.extend({ |
|
|
|
|
ref: function (_ref) { |
|
|
|
|
self.right = _ref; |
|
|
|
|
} |
|
|
|
|
}, this._createCombo(o.value.end, o.watermark?.end)) |
|
|
|
|
}] |
|
|
|
|
}; |
|
|
|
|
}, |
|
|
|
|