fix: fix referring to refBlock in another refBlock
Change-Id: Idb7c4c63c1e75e8bbd9b283045536eba5d4397d8
This commit is contained in:
parent
6237398af9
commit
67ab3454ef
@ -28,8 +28,7 @@ export default function attacher () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
visit(tree, NAME, ({ id, value }) => {
|
visit(tree, NAME, ({ id, value }) => {
|
||||||
let { contents } = render(value, path, data)
|
data.refs[id] = () => render(value, path, data).contents
|
||||||
data.refs[id] = contents
|
|
||||||
})
|
})
|
||||||
remove(tree, NAME)
|
remove(tree, NAME)
|
||||||
|
|
||||||
@ -42,7 +41,7 @@ export default function attacher () {
|
|||||||
|
|
||||||
parent.children.splice(index, 1, {
|
parent.children.splice(index, 1, {
|
||||||
type: 'html',
|
type: 'html',
|
||||||
value: data.refs[id]
|
value: data.refs[id]()
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user