feat: define prop and emit types for FilterPopup
This commit is contained in:
parent
85889fff56
commit
9d2e79f725
@ -32,8 +32,12 @@ import Filters from '@/components/project/partials/Filters.vue'
|
|||||||
|
|
||||||
import {type TaskFilterParams} from '@/services/taskCollection'
|
import {type TaskFilterParams} from '@/services/taskCollection'
|
||||||
|
|
||||||
const props = defineProps(['modelValue'])
|
const props = defineProps<{
|
||||||
const emit = defineEmits(['update:modelValue'])
|
modelValue: TaskFilterParams,
|
||||||
|
}>()
|
||||||
|
const emit = defineEmits<{
|
||||||
|
'update:modelValue': [value: TaskFilterParams]
|
||||||
|
}>()
|
||||||
|
|
||||||
const value = ref<TaskFilterParams>({})
|
const value = ref<TaskFilterParams>({})
|
||||||
|
|
||||||
@ -42,7 +46,10 @@ watch(
|
|||||||
(modelValue: TaskFilterParams) => {
|
(modelValue: TaskFilterParams) => {
|
||||||
value.value = modelValue
|
value.value = modelValue
|
||||||
},
|
},
|
||||||
{immediate: true},
|
{
|
||||||
|
immediate: true,
|
||||||
|
deep: true,
|
||||||
|
},
|
||||||
)
|
)
|
||||||
|
|
||||||
function emitChanges(newValue: TaskFilterParams) {
|
function emitChanges(newValue: TaskFilterParams) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user