mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-14 18:13:54 +00:00
15 lines
268 B
Vue
15 lines
268 B
Vue
|
<template>
|
||
|
<div v-bind="$attrs" class="multi-root-node-count">
|
||
|
{{ count }}
|
||
|
</div>
|
||
|
<button class="multi-root-node-button" @click="add">
|
||
|
add 1 to count
|
||
|
</button>
|
||
|
</template>
|
||
|
|
||
|
<script setup>
|
||
|
const count = ref(0)
|
||
|
|
||
|
const add = () => count.value++
|
||
|
</script>
|