mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 06:05:11 +00:00
e38e1de740
Co-authored-by: Pooya Parsa <pooya@pi0.io>
14 lines
253 B
Vue
14 lines
253 B
Vue
<script setup lang="ts">
|
|
const props = defineProps<{
|
|
count: number,
|
|
}>()
|
|
const doubled = $computed(() => props.count * 2)
|
|
</script>
|
|
|
|
<template>
|
|
<div class="pb2">
|
|
Count <b>{{ count }}</b><br>
|
|
Doubled <b>{{ doubled }}</b>
|
|
</div>
|
|
</template>
|