Browse Source

REPORT-114436 fix: tab设置single时内存泄露问题

research/test
Sylar 9 months ago
parent
commit
17a9e7ca7a
  1. 2
      packages/fineui/src/component/treevaluechooser/abstract.treevaluechooser.list.js
  2. 5
      packages/fineui/src/core/wrapper/layout/layout.card.js

2
packages/fineui/src/component/treevaluechooser/abstract.treevaluechooser.list.js

@ -31,7 +31,7 @@ export class AbstractListTreeValueChooser extends AbstractTreeValueChooser {
return;
}
doCheck.call(this, [], this.tree.getRoot(), selectedValues);
doCheck([], this.tree.getRoot(), selectedValues);
callback({
items: values(result),

5
packages/fineui/src/core/wrapper/layout/layout.card.js

@ -109,7 +109,10 @@ export class CardLayout extends Layout {
const child = this._children[this._getChildName(cardName)];
this._deleteCardByName(cardName);
child && child._destroy();
if (child) {
child._destroy();
child = null;
}
}
addCardByName(cardName, cardItem) {

Loading…
Cancel
Save