mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 16:43:55 +00:00
27 lines
459 B
Vue
27 lines
459 B
Vue
|
<script setup lang="ts">
|
||
|
let count = $ref(0)
|
||
|
|
||
|
function inc () {
|
||
|
count++
|
||
|
}
|
||
|
function dec () {
|
||
|
count--
|
||
|
}
|
||
|
</script>
|
||
|
|
||
|
<template>
|
||
|
<NuxtExampleLayout example="reactivity-transform">
|
||
|
<div>
|
||
|
<Label :count="count" />
|
||
|
<div class="flex gap-1 justify-center">
|
||
|
<NButton @click="inc()">
|
||
|
Inc
|
||
|
</NButton>
|
||
|
<NButton @click="dec()">
|
||
|
Dec
|
||
|
</NButton>
|
||
|
</div>
|
||
|
</div>
|
||
|
</NuxtExampleLayout>
|
||
|
</template>
|