|
@@ -56,7 +56,7 @@ export const component = (componentName: string) => {
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
const close = () => {
|
|
const close = () => {
|
|
|
- if (!props.visible) return; //避免重复调用
|
|
|
|
|
|
|
+ // if (!props.visible) return; //避免重复调用
|
|
|
emit('update:visible', false);
|
|
emit('update:visible', false);
|
|
|
emit('close');
|
|
emit('close');
|
|
|
if (props.destroyOnClose) {
|
|
if (props.destroyOnClose) {
|
|
@@ -79,7 +79,8 @@ export const component = (componentName: string) => {
|
|
|
const onClickOverlay = (e: Event) => {
|
|
const onClickOverlay = (e: Event) => {
|
|
|
if (props.closeOnClickOverlay) {
|
|
if (props.closeOnClickOverlay) {
|
|
|
emit('click-overlay', e);
|
|
emit('click-overlay', e);
|
|
|
- close();
|
|
|
|
|
|
|
+ emit('update:visible', false);
|
|
|
|
|
+ // close();
|
|
|
}
|
|
}
|
|
|
};
|
|
};
|
|
|
|
|
|