Nuxt/examples/with-reactivity-transform/components/label.vue
2022-03-30 10:34:05 +02:00

14 lines
251 B
Vue

<script setup lang="ts">
const { count } = defineProps<{
count: number,
}>()
const doubled = $computed(() => count * 2)
</script>
<template>
<div class="pb2">
Count <b>{{ count }}</b><br>
Doubled <b>{{ doubled }}</b>
</div>
</template>