From 7e2bb11fb5734a1d4e3fd25503dcee2b6505a574 Mon Sep 17 00:00:00 2001 From: dailer Date: Wed, 29 Sep 2021 11:16:38 +0800 Subject: [PATCH] =?UTF-8?q?DEC-20873=20fix:=20BI.Pane=20loading=E4=B8=AD?= =?UTF-8?q?=E5=88=9B=E5=BB=BA=E7=9A=84Layer=E7=9A=84name=E5=8A=A0=E4=B8=AA?= =?UTF-8?q?=E5=90=8E=E7=BC=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/base/1.pane.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/base/1.pane.js b/src/base/1.pane.js index f37cd9f7a..5bbecf5da 100644 --- a/src/base/1.pane.js +++ b/src/base/1.pane.js @@ -69,15 +69,15 @@ BI.Pane = BI.inherit(BI.Widget, { // loading的异步情况下由loaded后对面板的populate的时机决定 this.setTipVisible(false); if (o.overlap === true) { - if (!BI.Layers.has(this.getName())) { + if (!BI.Layers.has(this.getName() + "-loading")) { BI.createWidget({ type: "bi.center_adapt", cls: "loading-container", items: this._getLoadingTipItems(loadingAnimation), - element: BI.Layers.make(this.getName(), this) + element: BI.Layers.make(this.getName() + "-loading", this) }); } - BI.Layers.show(self.getName()); + BI.Layers.show(self.getName() + "-loading"); } else if (BI.isNull(this._loading)) { loadingAnimation.element.css("zIndex", 1); BI.createWidget({ @@ -118,7 +118,7 @@ BI.Pane = BI.inherit(BI.Widget, { loaded: function () { var self = this, o = this.options; - BI.Layers.remove(self.getName()); + BI.Layers.remove(self.getName() + "-loading"); this._loading && this._loading.destroy(); o.onLoaded(); self.fireEvent(BI.Pane.EVENT_LOADED);