Browse Source

Pull request #3741: 无JIRA fix: pane的内存泄漏

Merge in VISUAL/fineui from ~DAILER/fineui:master to master

* commit '51cc6914c819b312b1ce161dfa49df292b951a02':
  无JIRA fix: pane的内存泄漏
research/test
Dailer-刘荣歆 9 months ago
parent
commit
fec74685d2
  1. 16
      packages/fineui/src/base/1.pane.js

16
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();
}
}

Loading…
Cancel
Save