mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 16:43:55 +00:00
c1ddb359e3
Co-authored-by: Damian Głowala <damian.glowala.rebkow@gmail.com>
29 lines
357 B
Vue
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>
|