diff --git a/components/common/CommonAlert.vue b/components/common/CommonAlert.vue index cc2bd0c1..f9381c9a 100644 --- a/components/common/CommonAlert.vue +++ b/components/common/CommonAlert.vue @@ -2,9 +2,7 @@ const emit = defineEmits<{ (event: 'close'): void }>() -const { modelValue: visible } = defineModels<{ - modelValue?: boolean -}>() +const visible = defineModel() function close() { emit('close') diff --git a/components/common/CommonCheckbox.vue b/components/common/CommonCheckbox.vue index 7cd7efcf..24e35855 100644 --- a/components/common/CommonCheckbox.vue +++ b/components/common/CommonCheckbox.vue @@ -5,9 +5,7 @@ defineProps<{ iconChecked?: string iconUnchecked?: string }>() -const { modelValue } = defineModels<{ - modelValue?: boolean | null -}>() +const modelValue = defineModel()