1
0

feat: use withDefaults for Done

This commit is contained in:
Dominik Pschenitschni 2024-06-26 20:05:06 +02:00 committed by konrad
parent 142443c0a7
commit 01a4ad99ab

View File

@ -9,18 +9,12 @@
</template>
<script lang="ts" setup>
import type {PropType} from 'vue'
type Variants = 'default' | 'small'
defineProps({
isDone: {
type: Boolean,
default: false,
},
variant: {
type: String as PropType<Variants>,
default: 'default',
},
withDefaults(defineProps<{
isDone?: boolean
variant?: 'default' | 'small'
}>(), {
isDone: false,
variant: 'default',
})
</script>