chore: add trailingComma
This commit is contained in:
+5
-5
@@ -17,8 +17,8 @@ function initInstance() {
|
||||
el: document.createElement('div'),
|
||||
// avoid missing animation when first rendered
|
||||
propsData: {
|
||||
lazyRender: false
|
||||
}
|
||||
lazyRender: false,
|
||||
},
|
||||
});
|
||||
|
||||
instance.$on('input', value => {
|
||||
@@ -39,7 +39,7 @@ function Dialog(options) {
|
||||
|
||||
Object.assign(instance, Dialog.currentOptions, options, {
|
||||
resolve,
|
||||
reject
|
||||
reject,
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -68,14 +68,14 @@ Dialog.defaultOptions = {
|
||||
closeOnClickOverlay: false,
|
||||
callback: action => {
|
||||
instance[action === 'confirm' ? 'resolve' : 'reject'](action);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
Dialog.alert = Dialog;
|
||||
|
||||
Dialog.confirm = options => Dialog({
|
||||
showCancelButton: true,
|
||||
...options
|
||||
...options,
|
||||
});
|
||||
|
||||
Dialog.close = () => {
|
||||
|
||||
Reference in New Issue
Block a user