fix:web inserting childNodes in diff

This commit is contained in:
wangxiangyuan 2023-09-11 16:06:18 +08:00 committed by osborn
parent b430dbbbda
commit 6d8e3bb9df
3 changed files with 3 additions and 3 deletions

View File

@ -6903,7 +6903,7 @@ var doric_web = (function (exports, axios, sandbox) {
newNode.viewId = childViewId;
newNode.init(this);
newNode.blend(model.props);
this.childNodes[index] = newNode;
this.childNodes.splice(index, 0, newNode);
this.view.insertBefore(newNode.view, this.view.children[index]);
}
}

File diff suppressed because one or more lines are too long

View File

@ -796,7 +796,7 @@ export abstract class DoricGroupViewNode extends DoricSuperNode {
newNode.viewId = childViewId
newNode.init(this)
newNode.blend(model.props)
this.childNodes[index] = newNode
this.childNodes.splice(index, 0, newNode)
this.view.insertBefore(newNode.view, this.view.children[index])
}
}