From 2c7ec58932c29a7d51fe97730cb5bd375b5d07c9 Mon Sep 17 00:00:00 2001 From: windy <1374721899@qq.com> Date: Mon, 8 Jul 2019 18:02:41 +0800 Subject: [PATCH] =?UTF-8?q?BI-47433=20fix:=20=E6=96=87=E6=9C=AC=E5=88=97?= =?UTF-8?q?=E8=A1=A8setEnable=E4=B8=BAfalse=E4=BB=8D=E7=84=B6=E5=8F=AF?= =?UTF-8?q?=E4=BB=A5=E9=80=89=E4=B8=ADitem=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/widget/multiselect/multiselect.loader.js | 30 ++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/src/widget/multiselect/multiselect.loader.js b/src/widget/multiselect/multiselect.loader.js index 53e4466b6..4f9e0fd97 100644 --- a/src/widget/multiselect/multiselect.loader.js +++ b/src/widget/multiselect/multiselect.loader.js @@ -148,6 +148,36 @@ BI.MultiSelectLoader = BI.inherit(BI.Widget, { val.value || (val.value = []); }, + _assertMasker: function() { + var self = this, o = this.options; + if(BI.isNull(this.masker)) { + BI.createWidget({ + type: "bi.absolute", + element: this, + items: [{ + el: { + type: "bi.layout", + cls: "disable-mask", + invisible: !o.disabled, + ref: function () { + self.masker = this; + } + }, + left: 0, + right: 0, + top: 0, + bottom: 0 + }] + }) + } + }, + + _setEnable: function (enable) { + BI.MultiSelectLoader.superclass._setEnable.apply(this, arguments); + this._assertMasker(); + this.masker.setVisible(!enable); + }, + setStartValue: function (v) { this._startValue = v; },