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) {