|
|
@ -1,7 +1,7 @@ |
|
|
|
BI.DynamicYearQuarterCombo = BI.inherit(BI.Widget, { |
|
|
|
BI.DynamicYearQuarterCombo = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
props: { |
|
|
|
props: { |
|
|
|
baseCls: "bi-year-quarter-combo bi-border bi-border-radius bi-focus-shadow", |
|
|
|
baseCls: "bi-year-quarter-combo", |
|
|
|
behaviors: {}, |
|
|
|
behaviors: {}, |
|
|
|
minDate: "1900-01-01", // 最小日期
|
|
|
|
minDate: "1900-01-01", // 最小日期
|
|
|
|
maxDate: "2099-12-31", // 最大日期
|
|
|
|
maxDate: "2099-12-31", // 最大日期
|
|
|
@ -13,8 +13,6 @@ BI.DynamicYearQuarterCombo = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
_init: function () { |
|
|
|
var self = this, o = this.options; |
|
|
|
var self = this, o = this.options; |
|
|
|
o.height -= 2; |
|
|
|
|
|
|
|
BI.isNumeric(o.width) && (o.width -= 2); |
|
|
|
|
|
|
|
BI.DynamicYearQuarterCombo.superclass._init.apply(this, arguments); |
|
|
|
BI.DynamicYearQuarterCombo.superclass._init.apply(this, arguments); |
|
|
|
this.storeValue = o.value; |
|
|
|
this.storeValue = o.value; |
|
|
|
self.storeTriggerValue = ""; |
|
|
|
self.storeTriggerValue = ""; |
|
|
@ -22,7 +20,7 @@ BI.DynamicYearQuarterCombo = BI.inherit(BI.Widget, { |
|
|
|
type: "bi.dynamic_year_quarter_trigger", |
|
|
|
type: "bi.dynamic_year_quarter_trigger", |
|
|
|
min: o.minDate, |
|
|
|
min: o.minDate, |
|
|
|
max: o.maxDate, |
|
|
|
max: o.maxDate, |
|
|
|
height: o.height, |
|
|
|
height: o.height - 2, |
|
|
|
value: o.value || "" |
|
|
|
value: o.value || "" |
|
|
|
}); |
|
|
|
}); |
|
|
|
this.trigger.on(BI.DynamicYearQuarterTrigger.EVENT_KEY_DOWN, function () { |
|
|
|
this.trigger.on(BI.DynamicYearQuarterTrigger.EVENT_KEY_DOWN, function () { |
|
|
@ -61,6 +59,7 @@ BI.DynamicYearQuarterCombo = BI.inherit(BI.Widget, { |
|
|
|
|
|
|
|
|
|
|
|
this.combo = BI.createWidget({ |
|
|
|
this.combo = BI.createWidget({ |
|
|
|
type: "bi.combo", |
|
|
|
type: "bi.combo", |
|
|
|
|
|
|
|
cls: 'bi-border bi-border-radius bi-focus-shadow', |
|
|
|
container: o.container, |
|
|
|
container: o.container, |
|
|
|
isNeedAdjustHeight: o.isNeedAdjustHeight, |
|
|
|
isNeedAdjustHeight: o.isNeedAdjustHeight, |
|
|
|
isNeedAdjustWidth: o.isNeedAdjustWidth, |
|
|
|
isNeedAdjustWidth: o.isNeedAdjustWidth, |
|
|
|