|
|
@ -8,7 +8,6 @@ export const ClientOnly = defineComponent({
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
setup({ isClientOnly }, { slots }) {
|
|
|
|
setup({ isClientOnly }, { slots }) {
|
|
|
|
if (isClientOnly) console.log({ isClientOnly, slots })
|
|
|
|
|
|
|
|
// Programmatically determine if this component should be
|
|
|
|
// Programmatically determine if this component should be
|
|
|
|
// client-only based on the presence of the isClientOnly attribute.
|
|
|
|
// client-only based on the presence of the isClientOnly attribute.
|
|
|
|
if (!isClientOnly) return () => slots.default?.() || null
|
|
|
|
if (!isClientOnly) return () => slots.default?.() || null
|
|
|
|