mirror of
https://git.hmsn.ink/kospo/svcm/dmz.git
synced 2026-03-20 06:13:33 +09:00
19 lines
363 B
Vue
19 lines
363 B
Vue
<script lang="ts">
|
|
import type { SlotsType } from 'vue'
|
|
|
|
export default defineComponent({
|
|
name: 'ClientOnly',
|
|
slots: Object as SlotsType<{
|
|
default: void
|
|
}>,
|
|
setup(_, { slots }) {
|
|
const show = ref(false)
|
|
onMounted(() => {
|
|
show.value = true
|
|
})
|
|
|
|
return () => (show.value && slots.default ? slots.default() : null)
|
|
},
|
|
})
|
|
</script>
|