Browse Source

定义在props中的国际化不识别

es6
windy 5 years ago
parent
commit
4b5b8c8116
  1. 18
      src/widget/multilayerselecttree/multilayerselecttree.trigger.js
  2. 18
      src/widget/multilayersingletree/multilayersingletree.trigger.js

18
src/widget/multilayerselecttree/multilayerselecttree.trigger.js

@ -3,14 +3,16 @@
*/
BI.MultiLayerSelectTreeTrigger = BI.inherit(BI.Trigger, {
props: {
extraCls: "bi-multi-layer-select-tree-trigger bi-border bi-focus-shadow",
height: 24,
valueFormatter: function (v) {
return v;
},
itemsCreator: BI.emptyFn,
watermark: BI.i18nText("BI-Basic_Search")
props: function() {
return {
extraCls: "bi-multi-layer-select-tree-trigger bi-border bi-focus-shadow",
height: 24,
valueFormatter: function (v) {
return v;
},
itemsCreator: BI.emptyFn,
watermark: BI.i18nText("BI-Basic_Search")
};
},
render: function () {

18
src/widget/multilayersingletree/multilayersingletree.trigger.js

@ -3,14 +3,16 @@
*/
BI.MultiLayerSingleTreeTrigger = BI.inherit(BI.Trigger, {
props: {
extraCls: "bi-multi-layer-single-tree-trigger bi-border bi-focus-shadow",
height: 24,
valueFormatter: function (v) {
return v;
},
itemsCreator: BI.emptyFn,
watermark: BI.i18nText("BI-Basic_Search")
props: function() {
return {
extraCls: "bi-multi-layer-single-tree-trigger bi-border bi-focus-shadow",
height: 24,
valueFormatter: function (v) {
return v;
},
itemsCreator: BI.emptyFn,
watermark: BI.i18nText("BI-Basic_Search")
};
},
render: function () {

Loading…
Cancel
Save