Browse Source

Pull request #3072: JSY-22725 fix:props里国际化问题

Merge in VISUAL/fineui from ~GUYI/fineui:master to master

* commit 'bddbfadfdebe45bc68de5805b67ea5c59febade0':
  JSY-22725 fix:props里国际化问题
es6
Guyi-顾翌 2 years ago
parent
commit
e9c4d263fd
  1. 4
      src/widget/dynamicdate/dynamicdate.trigger.js
  2. 4
      src/widget/time/time.trigger.js
  3. 4
      src/widget/yearmonth/trigger.yearmonth.js
  4. 4
      src/widget/yearquarter/trigger.yearquarter.js

4
src/widget/dynamicdate/dynamicdate.trigger.js

@ -9,7 +9,7 @@ BI.DynamicDateTrigger = BI.inherit(BI.Trigger, {
iconWidth: 24
},
props: {
props: () => ({
extraCls: "bi-date-trigger",
min: "1900-01-01", // 最小日期
max: "2099-12-31", // 最大日期
@ -18,7 +18,7 @@ BI.DynamicDateTrigger = BI.inherit(BI.Trigger, {
format: "", // 显示的日期格式化方式
allowEdit: true, // 是否允许编辑
watermark: BI.i18nText("BI-Basic_Unrestricted"),
},
}),
_init: function () {
BI.DynamicDateTrigger.superclass._init.apply(this, arguments);

4
src/widget/time/time.trigger.js

@ -23,13 +23,13 @@
DEFAULT_HOUR: "00"
},
props: {
props: () => ({
extraCls: "bi-time-trigger",
value: {},
format: "",
allowEdit: false,
watermark: BI.i18nText("BI-Basic_Unrestricted"),
},
}),
render: function () {
var self = this, o = this.options;

4
src/widget/yearmonth/trigger.yearmonth.js

@ -5,7 +5,7 @@ BI.DynamicYearMonthTrigger = BI.inherit(BI.Trigger, {
iconWidth: 24
},
props: {
props: () => ({
extraCls: "bi-year-month-trigger",
min: "1900-01-01", // 最小日期
max: "2099-12-31", // 最大日期
@ -14,7 +14,7 @@ BI.DynamicYearMonthTrigger = BI.inherit(BI.Trigger, {
year: BI.i18nText("BI-Basic_Unrestricted"),
month: BI.i18nText("BI-Basic_Unrestricted"),
},
},
}),
beforeInit: function (callback) {
var o = this.options;

4
src/widget/yearquarter/trigger.yearquarter.js

@ -5,7 +5,7 @@ BI.DynamicYearQuarterTrigger = BI.inherit(BI.Trigger, {
iconWidth: 24
},
props: {
props: () => ({
extraCls: "bi-year-quarter-trigger",
min: "1900-01-01", // 最小日期
max: "2099-12-31", // 最大日期
@ -14,7 +14,7 @@ BI.DynamicYearQuarterTrigger = BI.inherit(BI.Trigger, {
year: BI.i18nText("BI-Basic_Unrestricted"),
quarter: BI.i18nText("BI-Basic_Unrestricted"),
},
},
}),
_init: function () {
BI.DynamicYearQuarterTrigger.superclass._init.apply(this, arguments);

Loading…
Cancel
Save