Nuxt/test/fixtures/basic/layouts/custom.vue

29 lines
357 B
Vue
Raw Permalink Normal View History

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