feat: use withDefaults for ProgressBar
This commit is contained in:

committed by
konrad

parent
f586e51aad
commit
2f6338484b
@ -13,19 +13,13 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
defineProps({
|
withDefaults(defineProps<{
|
||||||
value: {
|
value: number
|
||||||
type: Number,
|
isSmall?: boolean
|
||||||
required: true,
|
isPrimary?: boolean
|
||||||
},
|
}>(), {
|
||||||
isSmall: {
|
isSmall: false,
|
||||||
type: Boolean,
|
isPrimary: false,
|
||||||
default: false,
|
|
||||||
},
|
|
||||||
isPrimary: {
|
|
||||||
type: Boolean,
|
|
||||||
required: false,
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user