mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 09:27:13 +00:00
18 lines
282 B
Vue
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>
|