Browse Source

Merge pull request #267267 in DEC/fineui from release/11.0 to bugfix/11.0

* commit '9cf998160477f4d5c24a80da1b8fb2817f7e5fc5':
  REPORT-114436 fix: tab设置single时内存泄露问题
  REPORT-101548 fix: 复选下拉树this指向问题
research/test
superman 9 months ago
parent
commit
46cbb41b07
  1. 5
      packages/fineui/src/core/wrapper/layout/layout.card.js

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)]; const child = this._children[this._getChildName(cardName)];
this._deleteCardByName(cardName); this._deleteCardByName(cardName);
child && child._destroy(); if (child) {
child._destroy();
child = null;
}
} }
addCardByName(cardName, cardItem) { addCardByName(cardName, cardItem) {

Loading…
Cancel
Save