fix: 不应该限定 parent 才做解绑操作

This commit is contained in:
力皓 2020-09-08 21:05:55 +08:00
parent 458b4952b4
commit 2e616e3767
3 changed files with 6 additions and 2 deletions

View File

@ -262,7 +262,7 @@ export class Node<Schema extends NodeSchema = NodeSchema> {
}
// 解除老的父子关系,但不需要真的删除节点
if (this._parent && !parent) {
if (this._parent) {
if (this.isSlot()) {
this._parent.unlinkSlot(this);
} else {

View File

@ -122,3 +122,7 @@ html.engine-preview-mode {
line-height: 22px;
}
}
.lc-setter-mixed {
flex: 1
}

View File

@ -55,5 +55,5 @@
"publishConfig": {
"registry": "https://registry.npm.alibaba-inc.com"
},
"homepage": "https://unpkg.alibaba-inc.com/@ali/lowcode-rax-simulator-renderer@1.0.5-0/build/index.html"
"homepage": "https://unpkg.alibaba-inc.com/@ali/lowcode-rax-simulator-renderer@1.0.7-0/build/index.html"
}