Browse Source

无jira任务,年月区间支持高度调整

es6
Guyi 3 years ago
parent
commit
ad02aa48de
  1. 7
      src/widget/yearmonthinterval/yearmonthinterval.js

7
src/widget/yearmonthinterval/yearmonthinterval.js

@ -1,6 +1,5 @@
BI.YearMonthInterval = BI.inherit(BI.Single, {
constants: {
height: 24,
width: 25,
lgap: 15,
offset: -15,
@ -12,6 +11,7 @@ BI.YearMonthInterval = BI.inherit(BI.Single, {
minDate: "1900-01-01",
maxDate: "2099-12-31",
supportDynamic: true,
height: 24
},
_init: function () {
@ -23,7 +23,7 @@ BI.YearMonthInterval = BI.inherit(BI.Single, {
this.right = this._createCombo(o.value.end);
this.label = BI.createWidget({
type: "bi.label",
height: this.constants.height,
height: o.height,
width: this.constants.width,
text: "-"
});
@ -31,7 +31,7 @@ BI.YearMonthInterval = BI.inherit(BI.Single, {
element: self,
type: "bi.center",
hgap: 15,
height: this.constants.height,
height: o.height,
items: [{
type: "bi.absolute",
items: [{
@ -66,6 +66,7 @@ BI.YearMonthInterval = BI.inherit(BI.Single, {
var combo = BI.createWidget({
type: "bi.dynamic_year_month_combo",
supportDynamic: o.supportDynamic,
height: o.height,
minDate: o.minDate,
maxDate: o.maxDate,
behaviors: o.behaviors,

Loading…
Cancel
Save