TOPVERSE_Official/components/Counter.vue

18 lines
398 B
Vue
Raw Normal View History

2023-04-23 14:19:03 +08:00
<script setup lang='ts'>
const { count, inc, dec } = useCount()
</script>
<template>
<div inline-flex m="y-3">
<button rounded-full p-2 btn @click="dec()">
<div i-carbon-subtract />
</button>
<div font="mono" w="15" m-auto inline-block>
{{ count }}
</div>
<button rounded-full p-2 btn @click="inc()">
<div i-carbon-add />
</button>
</div>
</template>