From 51cc6914c819b312b1ce161dfa49df292b951a02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BF=A0=E5=B1=8F=E5=B1=B1=E6=9C=80=E9=80=9F=E4=B8=8B?= =?UTF-8?q?=E5=B1=B1=E4=BC=A0=E8=AF=B4?= Date: Mon, 1 Apr 2024 10:56:28 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0JIRA=20fix:=20pane=E7=9A=84=E5=86=85?= =?UTF-8?q?=E5=AD=98=E6=B3=84=E6=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fineui/src/base/1.pane.js | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/packages/fineui/src/base/1.pane.js b/packages/fineui/src/base/1.pane.js index e36f2bd81..285c00dad 100644 --- a/packages/fineui/src/base/1.pane.js +++ b/packages/fineui/src/base/1.pane.js @@ -111,11 +111,11 @@ export class Pane extends Widget { } ]; isNotEmptyString(o.loadingText) && - loadingTipItems.push({ - type: Text.xtype, - text: o.loadingText, - tgap: this._getSize(10), - }); + loadingTipItems.push({ + type: Text.xtype, + text: o.loadingText, + tgap: this._getSize(10), + }); return [ { @@ -158,4 +158,10 @@ export class Pane extends Widget { this.options.items = items || []; this.check(); } + + destroyed() { + super.destroyed(); + Layers.remove(`${this.getName()}-loading`); + this._loading?.destroy(); + } }