1
0

feat: define prop and emit types for FilterPopup

This commit is contained in:
Dominik Pschenitschni 2024-07-06 13:10:30 +02:00 committed by konrad
parent 85889fff56
commit 9d2e79f725

View File

@ -32,8 +32,12 @@ import Filters from '@/components/project/partials/Filters.vue'
import {type TaskFilterParams} from '@/services/taskCollection'
const props = defineProps(['modelValue'])
const emit = defineEmits(['update:modelValue'])
const props = defineProps<{
modelValue: TaskFilterParams,
}>()
const emit = defineEmits<{
'update:modelValue': [value: TaskFilterParams]
}>()
const value = ref<TaskFilterParams>({})
@ -42,7 +46,10 @@ watch(
(modelValue: TaskFilterParams) => {
value.value = modelValue
},
{immediate: true},
{
immediate: true,
deep: true,
},
)
function emitChanges(newValue: TaskFilterParams) {