From 4b5b8c81163ee1e7a3e57c1a0158b096f1f14201 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Mon, 19 Aug 2019 19:38:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E4=B9=89=E5=9C=A8props=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E5=9B=BD=E9=99=85=E5=8C=96=E4=B8=8D=E8=AF=86=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../multilayerselecttree.trigger.js | 18 ++++++++++-------- .../multilayersingletree.trigger.js | 18 ++++++++++-------- 2 files changed, 20 insertions(+), 16 deletions(-) diff --git a/src/widget/multilayerselecttree/multilayerselecttree.trigger.js b/src/widget/multilayerselecttree/multilayerselecttree.trigger.js index b0c7f37a9..85248cfaa 100644 --- a/src/widget/multilayerselecttree/multilayerselecttree.trigger.js +++ b/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 () { diff --git a/src/widget/multilayersingletree/multilayersingletree.trigger.js b/src/widget/multilayersingletree/multilayersingletree.trigger.js index bf143e7e3..2e4d2b09a 100644 --- a/src/widget/multilayersingletree/multilayersingletree.trigger.js +++ b/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 () {