feat: use withDefaults for PriorityLabel
This commit is contained in:
parent
5af908b2e5
commit
871e0acd8a
@ -30,19 +30,14 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import {PRIORITIES as priorities} from '@/constants/priorities'
|
import {PRIORITIES as priorities} from '@/constants/priorities'
|
||||||
|
|
||||||
defineProps({
|
withDefaults(defineProps<{
|
||||||
priority: {
|
priority: number,
|
||||||
default: 0,
|
showAll?: boolean,
|
||||||
type: Number,
|
done?: boolean
|
||||||
},
|
}>(), {
|
||||||
showAll: {
|
priority: priorities.UNSET,
|
||||||
type: Boolean,
|
showAll: false,
|
||||||
default: false,
|
done: false,
|
||||||
},
|
|
||||||
done: {
|
|
||||||
type: Boolean,
|
|
||||||
default: false,
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user