mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-16 10:54:49 +00:00
f69126e8f4
Co-authored-by: pooya parsa <pyapar@gmail.com> Co-authored-by: Daniel Roe <daniel@roe.dev>
14 lines
251 B
Vue
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>
|