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
|
// locate slot fragment start anchor
|
||||||
if (isFragment && node && !isComment(node, '[')) {
|
// if (isFragment && node && !isComment(node, '[')) {
|
||||||
node = locateVaporFragmentAnchor(node, '[')!
|
// node = locateVaporFragmentAnchor(node, '[')!
|
||||||
} else {
|
// } else {
|
||||||
while (node && isNonHydrationNode(node)) {
|
// while (node && isNonHydrationNode(node)) {
|
||||||
node = node.nextSibling!
|
// node = node.nextSibling!
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
if (insertionParent && node) {
|
if (insertionParent && node) {
|
||||||
const nextNode = node.nextSibling
|
const nextNode = node.nextSibling
|
||||||
|
|
|
@ -15,6 +15,7 @@ export function template(html: string, root?: boolean) {
|
||||||
node = adoptTemplate(currentHydrationNode!, html)!
|
node = adoptTemplate(currentHydrationNode!, html)!
|
||||||
// dynamic node position, default is 0
|
// dynamic node position, default is 0
|
||||||
;(node as any).$dp = n || 0
|
;(node as any).$dp = n || 0
|
||||||
|
if (root) (node as any).$root = true
|
||||||
return node
|
return node
|
||||||
}
|
}
|
||||||
// fast path for text nodes
|
// fast path for text nodes
|
||||||
|
|
Loading…
Reference in New Issue