✨(component): 回退
This commit is contained in:
parent
7932241c95
commit
70ef7649ac
@ -320,7 +320,7 @@ watch(
|
|||||||
beforeCloseSaveData();
|
beforeCloseSaveData();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{ deep: true }
|
{ deep: true, immediate: true }
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -338,7 +338,7 @@ watch(
|
|||||||
} else {
|
} else {
|
||||||
props.end();
|
props.end();
|
||||||
}
|
}
|
||||||
}
|
}, { immediate: true }
|
||||||
);
|
);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -447,8 +447,6 @@ const closeHandle = () => {
|
|||||||
emit("close");
|
emit("close");
|
||||||
emit("update:modelValue", false);
|
emit("update:modelValue", false);
|
||||||
props.destroy();
|
props.destroy();
|
||||||
|
|
||||||
//Notify 从队列中移除当前实例
|
|
||||||
if (type === 6) {
|
if (type === 6) {
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
removeNotifiyFromQueen(props.id);
|
removeNotifiyFromQueen(props.id);
|
||||||
|
@ -75,12 +75,12 @@ const layer = {
|
|||||||
_context: <AppContext | null>null,
|
_context: <AppContext | null>null,
|
||||||
|
|
||||||
// 页面
|
// 页面
|
||||||
open: (option: any, callback: Function) => {
|
open: (option: any, callback?: Function) => {
|
||||||
let defaultOption = {};
|
let defaultOption = {};
|
||||||
return layer.create(option, defaultOption, callback);
|
return layer.create(option, defaultOption, callback);
|
||||||
},
|
},
|
||||||
// 抽屉
|
// 抽屉
|
||||||
drawer: (option: any, callback: Function) => {
|
drawer: (option: any, callback?: Function) => {
|
||||||
let defaultOption = {
|
let defaultOption = {
|
||||||
type: "drawer",
|
type: "drawer",
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user