feat: use withDefaults for Done
This commit is contained in:
parent
142443c0a7
commit
01a4ad99ab
@ -9,18 +9,12 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<script lang="ts" setup>
|
||||||
import type {PropType} from 'vue'
|
withDefaults(defineProps<{
|
||||||
type Variants = 'default' | 'small'
|
isDone?: boolean
|
||||||
|
variant?: 'default' | 'small'
|
||||||
defineProps({
|
}>(), {
|
||||||
isDone: {
|
isDone: false,
|
||||||
type: Boolean,
|
variant: 'default',
|
||||||
default: false,
|
|
||||||
},
|
|
||||||
variant: {
|
|
||||||
type: String as PropType<Variants>,
|
|
||||||
default: 'default',
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user