Nuxt/test/fixtures/basic/components/ClientWrapped.client.vue
Julien Huang 2cdaf8065c
feat(nuxt): remove wrapper from client only components (#6165)
Co-authored-by: Daniel Roe <daniel@roe.dev>
2022-08-02 17:05:02 +02:00

18 lines
282 B
Vue

<script setup lang="ts">
function exposedFunc () {
console.log('ok')
}
defineExpose({ exposedFunc })
await new Promise(resolve => setTimeout(resolve, 300))
onMounted(() => { console.log('mounted') })
</script>
<template>
<div>
client-only component
</div>
</template>