Files
vue-tippy/playground/Counter.vue
T
Georges KABBOUCHI 44b21b2866 wip
2020-09-16 23:55:44 +03:00

21 lines
304 B
Vue

<template>
<button @click="count++">{{ count }}</button>
</template>
<script lang="ts">
import { defineComponent } from 'vue'
export default defineComponent({
props: {
initialValue: {
default: 0,
},
},
data() {
return {
count: this.initialValue,
}
},
})
</script>