mirror of https://github.com/vuejs/core.git
[autofix.ci] apply automated fixes
This commit is contained in:
parent
e245fb7502
commit
2b4c2ae01c
|
@ -894,7 +894,7 @@ describe('KeepAlive', () => {
|
||||||
childCount++
|
childCount++
|
||||||
})
|
})
|
||||||
return () => 'child'
|
return () => 'child'
|
||||||
}
|
},
|
||||||
})
|
})
|
||||||
const Parent = defineComponent({
|
const Parent = defineComponent({
|
||||||
setup() {
|
setup() {
|
||||||
|
@ -902,14 +902,14 @@ describe('KeepAlive', () => {
|
||||||
parentCount++
|
parentCount++
|
||||||
})
|
})
|
||||||
return () => h(Child)
|
return () => h(Child)
|
||||||
}
|
},
|
||||||
})
|
})
|
||||||
const AsyncComp = defineAsyncComponent(() => Promise.resolve(Parent))
|
const AsyncComp = defineAsyncComponent(() => Promise.resolve(Parent))
|
||||||
|
|
||||||
const App = {
|
const App = {
|
||||||
render: () => {
|
render: () => {
|
||||||
return h(KeepAlive, null, () => (toggle.value ? h(AsyncComp) : null))
|
return h(KeepAlive, null, () => (toggle.value ? h(AsyncComp) : null))
|
||||||
}
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
render(h(App), root)
|
render(h(App), root)
|
||||||
|
|
Loading…
Reference in New Issue