feat: use withDefaults for AddTask
This commit is contained in:
parent
553fdeee6a
commit
7db9e64053
@ -67,11 +67,10 @@ import {useTaskStore} from '@/stores/tasks'
|
|||||||
|
|
||||||
import {useAutoHeightTextarea} from '@/composables/useAutoHeightTextarea'
|
import {useAutoHeightTextarea} from '@/composables/useAutoHeightTextarea'
|
||||||
|
|
||||||
const props = defineProps({
|
const props = withDefaults(defineProps<{
|
||||||
defaultPosition: {
|
defaultPosition?: number,
|
||||||
type: Number,
|
}>(), {
|
||||||
required: false,
|
defaultPosition: undefined,
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
const emit = defineEmits(['taskAdded'])
|
const emit = defineEmits(['taskAdded'])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user