Skip to content

Commit 30b7491

Browse files
DDDDD12138cexbrayat
authored andcommitted
fix: resolve warnings in docs:dev
1 parent 54862a2 commit 30b7491

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/components/PropWithSymbol.vue

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
<template>
2-
<div>Symbol: {{ $props.sym }}</div>
2+
<div>Symbol: {{ sym }}</div>
33
</template>
44

55
<script lang="ts" setup>
66
interface Props {
77
sym?: Symbol
88
}
99
10-
withDefaults(defineProps<Props>(), {
11-
sym: () => Symbol()
12-
})
10+
const { sym = Symbol() } = defineProps<Props>()
1311
</script>

0 commit comments

Comments
 (0)