|
|
|
@ -9,7 +9,7 @@ BI.DynamicDateTimeTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
iconWidth: 24 |
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
props: { |
|
|
|
|
props: () => ({ |
|
|
|
|
extraCls: "bi-date-time-trigger", |
|
|
|
|
min: "1900-01-01", // 最小日期
|
|
|
|
|
max: "2099-12-31", // 最大日期
|
|
|
|
@ -17,8 +17,8 @@ BI.DynamicDateTimeTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
iconWidth: 24, |
|
|
|
|
format: "", // 显示的日期格式化方式
|
|
|
|
|
allowEdit: true, // 是否允许编辑
|
|
|
|
|
watermark: "" |
|
|
|
|
}, |
|
|
|
|
watermark: BI.i18nText("BI-Basic_Unrestricted"), |
|
|
|
|
}), |
|
|
|
|
|
|
|
|
|
_init: function () { |
|
|
|
|
BI.DynamicDateTimeTrigger.superclass._init.apply(this, arguments); |
|
|
|
@ -44,7 +44,7 @@ BI.DynamicDateTimeTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
hgap: c.hgap, |
|
|
|
|
vgap: c.vgap, |
|
|
|
|
allowBlank: true, |
|
|
|
|
watermark: BI.isKey(o.watermark) ? o.watermark : BI.i18nText("BI-Basic_Unrestricted"), |
|
|
|
|
watermark: o.watermark, |
|
|
|
|
errorText: function (v) { |
|
|
|
|
var str = ""; |
|
|
|
|
if (!BI.isKey(o.format)) { |
|
|
|
@ -149,7 +149,11 @@ BI.DynamicDateTimeTrigger = BI.inherit(BI.Trigger, {
|
|
|
|
|
}, |
|
|
|
|
|
|
|
|
|
_getTitle: function () { |
|
|
|
|
var o = this.options; |
|
|
|
|
var storeValue = this.storeValue || {}; |
|
|
|
|
if (BI.isEmptyObject(storeValue)) { |
|
|
|
|
return o.watermark; |
|
|
|
|
} |
|
|
|
|
var type = storeValue.type || BI.DynamicDateCombo.Static; |
|
|
|
|
var value = storeValue.value; |
|
|
|
|
switch (type) { |
|
|
|
|