mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-22 21:55:11 +00:00
e31c604ac4
Co-authored-by: pooya parsa <pyapar@gmail.com>
27 lines
461 B
Vue
27 lines
461 B
Vue
<script setup lang="ts">
|
|
const count = ref(0)
|
|
|
|
function inc () {
|
|
count.value++
|
|
}
|
|
function dec () {
|
|
count.value--
|
|
}
|
|
</script>
|
|
|
|
<template>
|
|
<NuxtExampleLayout example="experimental/vite-node">
|
|
<div>
|
|
{{ count }}
|
|
<div class="flex gap-1 justify-center">
|
|
<NButton @click="inc()">
|
|
Inc
|
|
</NButton>
|
|
<NButton @click="dec()">
|
|
Dec
|
|
</NButton>
|
|
</div>
|
|
</div>
|
|
</NuxtExampleLayout>
|
|
</template>
|