Nuxt/test/fixtures/basic/layouts/custom.vue
Daniel Roe c1ddb359e3
chore: update to use @nuxt/eslint-config (#24209)
Co-authored-by: Damian Głowala <damian.glowala.rebkow@gmail.com>
2023-11-09 18:01:13 +01:00

29 lines
357 B
Vue

<template>
<div>
Custom Layout:
<slot />
<div class="count">
{{ count }}
</div>
<button
class="add-count"
@click="count++"
>
add count
</button>
</div>
</template>
<script setup lang="ts">
const count = ref(0)
function logHello () {
console.log('world')
}
defineExpose({
logHello
})
</script>