This commit is contained in:
10
node_modules/vitepress/dist/client/app/components/ClientOnly.js
generated
vendored
Normal file
10
node_modules/vitepress/dist/client/app/components/ClientOnly.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
import { defineComponent, onMounted, ref } from 'vue';
|
||||
export const ClientOnly = defineComponent({
|
||||
setup(_, { slots }) {
|
||||
const show = ref(false);
|
||||
onMounted(() => {
|
||||
show.value = true;
|
||||
});
|
||||
return () => (show.value && slots.default ? slots.default() : null);
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user