From 8df30babdc9dff482eb0e2b96eccdf249746c29b Mon Sep 17 00:00:00 2001 From: iapyang Date: Fri, 18 Jun 2021 18:43:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0getTextot?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/case/trigger/trigger.text.js | 4 ++++ src/case/trigger/trigger.text.select.js | 4 ++++ src/widget/multilayerselecttree/multilayerselecttree.combo.js | 2 +- src/widget/multilayersingletree/multilayersingletree.combo.js | 2 +- src/widget/singletree/singletree.trigger.js | 4 ++-- 5 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/case/trigger/trigger.text.js b/src/case/trigger/trigger.text.js index c1b4bdfeb4..8fc69d58c5 100644 --- a/src/case/trigger/trigger.text.js +++ b/src/case/trigger/trigger.text.js @@ -55,6 +55,10 @@ BI.TextTrigger = BI.inherit(BI.Trigger, { }); }, + getTextor: function() { + return this.text; + }, + setTextCls: function(cls) { var o = this.options; var oldCls = o.textCls; diff --git a/src/case/trigger/trigger.text.select.js b/src/case/trigger/trigger.text.select.js index ee7a2c078a..03481d1f28 100644 --- a/src/case/trigger/trigger.text.select.js +++ b/src/case/trigger/trigger.text.select.js @@ -64,6 +64,10 @@ BI.SelectTextTrigger = BI.inherit(BI.Trigger, { this.trigger.setTipType(v); }, + getTextor: function() { + return this.trigger.getTextor(); + }, + populate: function (items) { this.options.items = items; } diff --git a/src/widget/multilayerselecttree/multilayerselecttree.combo.js b/src/widget/multilayerselecttree/multilayerselecttree.combo.js index 823378647b..1f7d0e526f 100644 --- a/src/widget/multilayerselecttree/multilayerselecttree.combo.js +++ b/src/widget/multilayerselecttree/multilayerselecttree.combo.js @@ -230,7 +230,7 @@ BI.MultiLayerSelectTreeCombo = BI.inherit(BI.Widget, { }, getSearcher: function () { - return this.trigger ? this.trigger.getSearcher() : this.textTrigger; + return this.trigger ? this.trigger.getSearcher() : this.textTrigger.getTextor(); }, populate: function (items) { diff --git a/src/widget/multilayersingletree/multilayersingletree.combo.js b/src/widget/multilayersingletree/multilayersingletree.combo.js index 11c4fca74e..1881af51f4 100644 --- a/src/widget/multilayersingletree/multilayersingletree.combo.js +++ b/src/widget/multilayersingletree/multilayersingletree.combo.js @@ -224,7 +224,7 @@ BI.MultiLayerSingleTreeCombo = BI.inherit(BI.Widget, { }, getSearcher: function () { - return this.trigger ? this.trigger.getSearcher() : this.textTrigger; + return this.trigger ? this.trigger.getSearcher() : this.textTrigger.getTextor(); }, setValue: function (v) { diff --git a/src/widget/singletree/singletree.trigger.js b/src/widget/singletree/singletree.trigger.js index 56f5e26870..91183c033a 100644 --- a/src/widget/singletree/singletree.trigger.js +++ b/src/widget/singletree/singletree.trigger.js @@ -51,8 +51,8 @@ BI.SingleTreeTrigger = BI.inherit(BI.Trigger, { return this.options.value || []; }, - getLabel: function () { - return this.trigger.getLabel(); + getTextor: function() { + return this.trigger.getTextor(); }, populate: function (items) {