mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[bufix] Dialog: default options (#2208)
This commit is contained in:
parent
ccf37b9a76
commit
5493dd3aee
@ -30,6 +30,7 @@ const Dialog = options => {
|
||||
Object.assign(instance, {
|
||||
resolve,
|
||||
reject,
|
||||
...Dialog.currentOptions,
|
||||
...options
|
||||
});
|
||||
});
|
||||
@ -53,13 +54,9 @@ Dialog.defaultOptions = {
|
||||
}
|
||||
};
|
||||
|
||||
Dialog.alert = options => Dialog({
|
||||
...Dialog.currentOptions,
|
||||
...options
|
||||
});
|
||||
Dialog.alert = Dialog;
|
||||
|
||||
Dialog.confirm = options => Dialog({
|
||||
...Dialog.currentOptions,
|
||||
showCancelButton: true,
|
||||
...options
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user