docs(components): use fallbackTag in ClientOnly examples (#6587)

This commit is contained in:
HomWang 2022-08-13 15:32:42 +08:00 committed by GitHub
parent 92a04cc036
commit 74320200e7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,7 +164,8 @@ Use a slot as fallback until `<ClientOnly>` is mounted on client side.
<template>
<div>
<Sidebar />
<ClientOnly>
<!-- This renders the "span" element on the server side -->
<ClientOnly fallbackTag="span">
<!-- this component will only be rendered on client side -->
<Comments />
<template #fallback>