guy 2 years ago
parent
commit
ce50df3e82
  1. 5
      src/widget/timeinterval/dateinterval.js
  2. 5
      src/widget/timeinterval/timeinterval.js
  3. 2
      src/widget/timeinterval/timeperiods.js
  4. 4
      src/widget/yearmonthinterval/yearmonthinterval.js

5
src/widget/timeinterval/dateinterval.js

@ -19,10 +19,9 @@ BI.DateInterval = BI.inherit(BI.Single, {
supportDynamic: true, supportDynamic: true,
}); });
}, },
_init: function () {
render: function () {
var self = this, o = this.options; var self = this, o = this.options;
BI.DateInterval.superclass._init.apply(this, arguments);
o.value = o.value || {}; o.value = o.value || {};
this.left = this._createCombo(o.value.start, o.watermark?.start); this.left = this._createCombo(o.value.start, o.watermark?.start);
this.right = this._createCombo(o.value.end, o.watermark?.end); this.right = this._createCombo(o.value.end, o.watermark?.end);

5
src/widget/timeinterval/timeinterval.js

@ -19,10 +19,9 @@ BI.TimeInterval = BI.inherit(BI.Single, {
supportDynamic: true supportDynamic: true
}); });
}, },
_init: function () {
var self = this, o = this.options;
BI.TimeInterval.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
o.value = o.value || {}; o.value = o.value || {};
this.left = this._createCombo(o.value.start, o.watermark?.start); this.left = this._createCombo(o.value.start, o.watermark?.start);
this.right = this._createCombo(o.value.end, o.watermark?.end); this.right = this._createCombo(o.value.end, o.watermark?.end);

2
src/widget/timeinterval/timeperiods.js

@ -16,10 +16,10 @@
extraCls: "bi-time-interval", extraCls: "bi-time-interval",
value: {} value: {}
}, },
render: function () { render: function () {
var self = this, o = this.options; var self = this, o = this.options;
return { return {
type: "bi.horizontal_fill", type: "bi.horizontal_fill",
columnSize: ["fill", "", "fill"], columnSize: ["fill", "", "fill"],

4
src/widget/yearmonthinterval/yearmonthinterval.js

@ -14,10 +14,8 @@ BI.YearMonthInterval = BI.inherit(BI.Single, {
height: 24 height: 24
}, },
_init: function () { render: function () {
var self = this, o = this.options; var self = this, o = this.options;
BI.YearMonthInterval.superclass._init.apply(this, arguments);
o.value = o.value || {}; o.value = o.value || {};
this.left = this._createCombo(o.value.start, o.watermark?.start); this.left = this._createCombo(o.value.start, o.watermark?.start);
this.right = this._createCombo(o.value.end, o.watermark?.end); this.right = this._createCombo(o.value.end, o.watermark?.end);

Loading…
Cancel
Save