Browse Source

Pull request #15: Master 同步

Merge in ~DAILER/fineui-decision from ~DAILER/fineui:master to feature/x

* commit '1cc207c31cab4b89a0af7a907bbea1d0e3ea54b3':
  Revert "无JIRA layout 的updateChildren过程中传递context"
  无JIRA tab添加子card destory监听
  无JIRA layout 的updateChildren过程中传递context
  REPORT-125909 fix: 【公共模型引入BI】低版本chrome,维度指标集在组件分析区域不显示
master
Dailer-刘荣歆 3 months ago
parent
commit
4d544143ee
  1. 9
      packages/fineui/src/base/combination/tab.js

9
packages/fineui/src/base/combination/tab.js

@ -13,7 +13,8 @@ import {
contains, contains,
any, any,
isEqual, isEqual,
LogicFactory LogicFactory,
Events,
} from "@/core"; } from "@/core";
/** /**
@ -106,7 +107,11 @@ export class Tab extends Widget {
Widget.execWithContext(this, () => { Widget.execWithContext(this, () => {
this.cardMap[v] = cardCreator(v); this.cardMap[v] = cardCreator(v);
}); });
this.layout.addCardByName(v, this.cardMap[v]); const card = this.layout.addCardByName(v, this.cardMap[v]);
card.on(Events.DESTROY, () => {
this.layout.deleteCardByName(v);
delete this.cardMap[v];
});
} }
} }

Loading…
Cancel
Save