|
|
@ -5,13 +5,14 @@ BI.DynamicYearCombo = BI.inherit(BI.Widget, { |
|
|
|
behaviors: {}, |
|
|
|
behaviors: {}, |
|
|
|
minDate: "1900-01-01", // 最小日期
|
|
|
|
minDate: "1900-01-01", // 最小日期
|
|
|
|
maxDate: "2099-12-31", // 最大日期
|
|
|
|
maxDate: "2099-12-31", // 最大日期
|
|
|
|
height: 22, |
|
|
|
height: 24, |
|
|
|
supportDynamic: true, |
|
|
|
supportDynamic: true, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
_init: function () { |
|
|
|
BI.DynamicYearCombo.superclass._init.apply(this, arguments); |
|
|
|
|
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
|
|
|
|
o.height -= 2; |
|
|
|
|
|
|
|
BI.DynamicYearCombo.superclass._init.apply(this, arguments); |
|
|
|
this.storeValue = o.value; |
|
|
|
this.storeValue = o.value; |
|
|
|
this.trigger = BI.createWidget({ |
|
|
|
this.trigger = BI.createWidget({ |
|
|
|
type: "bi.dynamic_year_trigger", |
|
|
|
type: "bi.dynamic_year_trigger", |
|
|
|