Nuxt/test/fixtures/basic/components/client/SetupScript.client.vue
Julien Huang e6ca07bdc0
fix(nuxt): remove fragment from createClientOnly (#7774)
Co-authored-by: Daniel Roe <daniel@roe.dev>
Co-authored-by: jhuang@hsk-partners.com <jhuang@hsk-partners.com>
2022-10-03 16:14:55 +02:00

19 lines
347 B
Vue

<script setup lang="ts">
const props = defineProps<{ foo: string }>()
const count = ref(0)
const add = () => count.value++
defineExpose({ add })
</script>
<template>
<div>
<div>client only script setup component {{ props.foo }}</div>
<button @click="add">
{{ count }}
</button>
<slot name="test" />
</div>
</template>