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