feat: use withDefaults for Done
This commit is contained in:
parent
142443c0a7
commit
01a4ad99ab
@ -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>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user