mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 16:43:55 +00:00
15 lines
313 B
Vue
15 lines
313 B
Vue
|
<script setup lang="ts">
|
||
|
const { count } = defineProps<{
|
||
|
count: number,
|
||
|
}>()
|
||
|
// eslint-disable-next-line prefer-const
|
||
|
let multiplier = $ref(2)
|
||
|
const doubled = $computed(() => count * multiplier)
|
||
|
</script>
|
||
|
|
||
|
<template>
|
||
|
<div>
|
||
|
Sugar Counter {{ count }} x {{ multiplier }} = {{ doubled }}
|
||
|
</div>
|
||
|
</template>
|