From a0b32e433bca2a26754b1fef7d9f7c37a631ec6d Mon Sep 17 00:00:00 2001 From: young Date: Sat, 20 May 2017 10:15:27 +0800 Subject: [PATCH] multiTree updateValue --- src/widget/multiselecttree/multiselecttree.js | 8 ++++++++ src/widget/multiselecttree/multiselecttree.popup.js | 5 +++++ 2 files changed, 13 insertions(+) diff --git a/src/widget/multiselecttree/multiselecttree.js b/src/widget/multiselecttree/multiselecttree.js index 4475e433e2..45bcbded5e 100644 --- a/src/widget/multiselecttree/multiselecttree.js +++ b/src/widget/multiselecttree/multiselecttree.js @@ -142,6 +142,14 @@ BI.MultiSelectTree = BI.inherit(BI.Widget, { }); }, + stopSearch: function () { + this.trigger.stopSearch(); + }, + + updateValue: function (v) { + this.adapter.updateValue(v); + }, + getValue: function () { return this.storeValue.value; }, diff --git a/src/widget/multiselecttree/multiselecttree.popup.js b/src/widget/multiselecttree/multiselecttree.popup.js index 8f8ee61b2e..10906311f0 100644 --- a/src/widget/multiselecttree/multiselecttree.popup.js +++ b/src/widget/multiselecttree/multiselecttree.popup.js @@ -38,6 +38,11 @@ BI.MultiSelectTreePopup = BI.inherit(BI.Widget, { this.popup.setValue(v.value); }, + updateValue: function (v) { + this.popup.updateValue(v); + this.popup.refresh(); + }, + populate: function (config) { this.popup.stroke(config); }