mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-11-30 11:17:38 +08:00
MessageBox: fix multi alert bug
This commit is contained in:
parent
d96b585363
commit
d5f4603f59
@ -87,6 +87,12 @@ const showNextMsg = () => {
|
||||
if (options.callback === undefined) {
|
||||
instance.callback = defaultCallback;
|
||||
}
|
||||
|
||||
let oldCb = instance.callback;
|
||||
instance.callback = action => {
|
||||
oldCb(action);
|
||||
showNextMsg();
|
||||
};
|
||||
['modal', 'showClose', 'closeOnClickModal', 'closeOnPressEscape'].forEach(prop => {
|
||||
if (instance[prop] === undefined) {
|
||||
instance[prop] = true;
|
||||
|
Loading…
Reference in New Issue
Block a user