mirror of
https://gitee.com/eolink_admin/postcat.git
synced 2024-12-02 19:57:45 +08:00
feat: update mask
This commit is contained in:
parent
7643b2a1c5
commit
d5960800f7
@ -26,6 +26,9 @@ export class ModalService {
|
||||
if (inOpts.nzOnOk) {
|
||||
inOpts.nzOnOk();
|
||||
} else {
|
||||
setTimeout(() => {
|
||||
window.eo.closeModal();
|
||||
}, 123);
|
||||
modal.destroy();
|
||||
}
|
||||
},
|
||||
@ -33,15 +36,21 @@ export class ModalService {
|
||||
{
|
||||
label: '取消',
|
||||
onClick: () =>{
|
||||
setTimeout(() => {
|
||||
window.eo.closeModal();
|
||||
}, 123);
|
||||
modal.destroy();
|
||||
}
|
||||
},
|
||||
],
|
||||
};
|
||||
Object.assign(modalOpts, inOpts);
|
||||
setTimeout(() => {
|
||||
window.eo.openModal();
|
||||
}, 123);
|
||||
const modal = this.modalService.create(modalOpts);
|
||||
modal.afterOpen.subscribe(() => window.eo.openModal());
|
||||
modal.afterClose.subscribe(() => window.eo.closeModal());
|
||||
//modal.afterOpen.subscribe(() => window.eo.openModal());
|
||||
//modal.afterClose.subscribe(() => window.eo.closeModal());
|
||||
return modal;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user