|
|
@ -9,7 +9,11 @@ BI.DynamicYearMonthTrigger = BI.inherit(BI.Trigger, { |
|
|
|
extraCls: "bi-year-month-trigger", |
|
|
|
extraCls: "bi-year-month-trigger", |
|
|
|
min: "1900-01-01", // 最小日期
|
|
|
|
min: "1900-01-01", // 最小日期
|
|
|
|
max: "2099-12-31", // 最大日期
|
|
|
|
max: "2099-12-31", // 最大日期
|
|
|
|
height: 24 |
|
|
|
height: 24, |
|
|
|
|
|
|
|
watermark: { |
|
|
|
|
|
|
|
year: BI.i18nText("BI-Basic_Unrestricted"), |
|
|
|
|
|
|
|
month: BI.i18nText("BI-Basic_Unrestricted"), |
|
|
|
|
|
|
|
}, |
|
|
|
}, |
|
|
|
}, |
|
|
|
|
|
|
|
|
|
|
|
beforeInit: function (callback) { |
|
|
|
beforeInit: function (callback) { |
|
|
@ -80,7 +84,7 @@ BI.DynamicYearMonthTrigger = BI.inherit(BI.Trigger, { |
|
|
|
quitChecker: function () { |
|
|
|
quitChecker: function () { |
|
|
|
return false; |
|
|
|
return false; |
|
|
|
}, |
|
|
|
}, |
|
|
|
watermark: BI.i18nText("BI-Basic_Unrestricted"), |
|
|
|
watermark: isYear ? o.watermark?.year : o.watermark.month, |
|
|
|
errorText: function (v) { |
|
|
|
errorText: function (v) { |
|
|
|
var year = isYear ? v : self.yearEditor.getValue(); |
|
|
|
var year = isYear ? v : self.yearEditor.getValue(); |
|
|
|
var month = isYear ? self.monthEditor.getValue() : v; |
|
|
|
var month = isYear ? self.monthEditor.getValue() : v; |
|
|
@ -288,4 +292,4 @@ BI.DynamicYearMonthTrigger.EVENT_START = "EVENT_START"; |
|
|
|
BI.DynamicYearMonthTrigger.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
BI.DynamicYearMonthTrigger.EVENT_CONFIRM = "EVENT_CONFIRM"; |
|
|
|
BI.DynamicYearMonthTrigger.EVENT_STOP = "EVENT_STOP"; |
|
|
|
BI.DynamicYearMonthTrigger.EVENT_STOP = "EVENT_STOP"; |
|
|
|
BI.DynamicYearMonthTrigger.EVENT_KEY_DOWN = "EVENT_KEY_DOWN"; |
|
|
|
BI.DynamicYearMonthTrigger.EVENT_KEY_DOWN = "EVENT_KEY_DOWN"; |
|
|
|
BI.shortcut("bi.dynamic_year_month_trigger", BI.DynamicYearMonthTrigger); |
|
|
|
BI.shortcut("bi.dynamic_year_month_trigger", BI.DynamicYearMonthTrigger); |
|
|
|