mirror of https://github.com/vuejs/core.git
wip: save
This commit is contained in:
parent
3f3480c05b
commit
80e6ea8730
|
@ -137,13 +137,13 @@ function locateHydrationNodeImpl(isFragment?: boolean): void {
|
|||
}
|
||||
|
||||
// locate slot fragment start anchor
|
||||
if (isFragment && node && !isComment(node, '[')) {
|
||||
node = locateVaporFragmentAnchor(node, '[')!
|
||||
} else {
|
||||
while (node && isNonHydrationNode(node)) {
|
||||
node = node.nextSibling!
|
||||
}
|
||||
}
|
||||
// if (isFragment && node && !isComment(node, '[')) {
|
||||
// node = locateVaporFragmentAnchor(node, '[')!
|
||||
// } else {
|
||||
// while (node && isNonHydrationNode(node)) {
|
||||
// node = node.nextSibling!
|
||||
// }
|
||||
// }
|
||||
|
||||
if (insertionParent && node) {
|
||||
const nextNode = node.nextSibling
|
||||
|
|
|
@ -15,6 +15,7 @@ export function template(html: string, root?: boolean) {
|
|||
node = adoptTemplate(currentHydrationNode!, html)!
|
||||
// dynamic node position, default is 0
|
||||
;(node as any).$dp = n || 0
|
||||
if (root) (node as any).$root = true
|
||||
return node
|
||||
}
|
||||
// fast path for text nodes
|
||||
|
|
Loading…
Reference in New Issue