chore: 先改回原来的行为

This commit is contained in:
力皓 2021-04-06 09:59:07 +08:00
parent 42ae1ef582
commit 0170dfaa5b
2 changed files with 1 additions and 4 deletions

View File

@ -32,7 +32,7 @@ export class ModalNodesManager {
this.emitter = new EventEmitter();
this.nodeRemoveEvents = {};
this.setNodes();
// this.hideModalNodes();
this.hideModalNodes();
this.willDestroy = [
page.onNodeCreate((node) => this.addNode(node)),
page.onNodeDestroy((node) => this.removeNode(node)),

View File

@ -166,9 +166,6 @@ export class Node<Schema extends NodeSchema = NodeSchema> {
});
this.settingEntry = this.document.designer.createSettingEntry([this]);
} else {
if (this.componentMeta.isModal) {
extras.hidden = true;
}
// 这里 props 被初始化两次,一次 new一次 importnew 的实例需要给 propsReducer 的钩子去使用,
// import 是为了使用钩子返回的值,并非完全幂等的操作,部分行为执行两次会有 bug
// 所以在 props 里会对 new / import 做一些区别化的解析