Browse Source

REPORT-70807 fix:给watermark加个props

es6
freddy 3 years ago
parent
commit
6d30eca76f
  1. 5
      src/widget/year/trigger.year.js

5
src/widget/year/trigger.year.js

@ -10,7 +10,8 @@ BI.DynamicYearTrigger = BI.inherit(BI.Trigger, {
extraCls: "bi-year-trigger", extraCls: "bi-year-trigger",
min: "1900-01-01", // 最小日期 min: "1900-01-01", // 最小日期
max: "2099-12-31", // 最大日期 max: "2099-12-31", // 最大日期
height: 24 height: 24,
watermark: BI.i18nText("BI-Basic_Unrestricted")
}); });
}, },
@ -35,7 +36,7 @@ BI.DynamicYearTrigger = BI.inherit(BI.Trigger, {
}, },
hgap: c.hgap, hgap: c.hgap,
vgap: c.vgap, vgap: c.vgap,
watermark: BI.isKey(o.watermark) ? o.watermark : BI.i18nText("BI-Basic_Unrestricted"), watermark: o.watermark,
allowBlank: true, allowBlank: true,
errorText: function (v) { errorText: function (v) {
if (BI.isPositiveInteger(v)) { if (BI.isPositiveInteger(v)) {

Loading…
Cancel
Save