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,
});
},
_init: function () {
var self = this, o = this.options;
BI.DateInterval.superclass._init.apply(this, arguments);
render: function () {
var self = this, o = this.options;
o.value = o.value || {};
this.left = this._createCombo(o.value.start, o.watermark?.start);
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
});
},
_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 || {};
this.left = this._createCombo(o.value.start, o.watermark?.start);
this.right = this._createCombo(o.value.end, o.watermark?.end);

2
src/widget/timeinterval/timeperiods.js

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

4
src/widget/yearmonthinterval/yearmonthinterval.js

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

Loading…
Cancel
Save