src/components/BaseModal.vue
@@ -36,11 +36,12 @@ }) const emit = defineEmits<{ 'update:modelValue': [show: boolean] close: [] }>() const modelData = useVModel(props, 'modelValue', emit) function closeModal() { modelData.value = false emit('close') } </script> <style scoped lang="scss"> @@ -74,6 +75,7 @@ font-weight: 600; } &-close { cursor: pointer; height: 36px; width: 36px; border-radius: 50%;