diff --git a/src/components/ab-popup.vue b/src/components/ab-popup.vue
index d569ff87..b7c036ed 100644
--- a/src/components/ab-popup.vue
+++ b/src/components/ab-popup.vue
@@ -8,22 +8,22 @@ import {
const props = withDefaults(
defineProps<{
- show: boolean;
title: string;
- maskClick: boolean;
+ maskClick?: boolean;
+ css?: string;
}>(),
{
- show: false,
title: 'title',
maskClick: true,
+ css: '',
}
);
-const emit = defineEmits(['update:show']);
+const show = defineModel('show', { default: false });
function close() {
if (props.maskClick) {
- emit('update:show', false);
+ show.value = false;
}
}
@@ -57,7 +57,7 @@ function close() {
leave-to="opacity-0 scale-95"
>