web: add DoricRereshableNode

This commit is contained in:
pengfei.zhou
2021-04-15 11:35:58 +08:00
committed by osborn
parent 1a5ed94568
commit 365f415ead
7 changed files with 304 additions and 44 deletions

View File

@@ -6,17 +6,18 @@ export class ShaderPlugin extends DoricPlugin {
if (this.context.rootNode.viewId?.length > 0) {
if (this.context.rootNode.viewId === ret.id) {
this.context.rootNode.blend(ret.props)
this.context.rootNode.onBlended()
} else {
for (let map of this.context.headNodes.values()) {
const viewNode = map.get(ret.id)
if (viewNode) {
viewNode.blend(ret.props)
}
viewNode?.blend(ret.props)
viewNode?.onBlended()
}
}
} else {
this.context.rootNode.viewId = ret.id
this.context.rootNode.blend(ret.props)
this.context.rootNode.onBlended()
}
}
}