chore: add trailingComma

This commit is contained in:
陈嘉涵
2020-01-19 11:57:09 +08:00
parent e841175fe8
commit 389d68884d
269 changed files with 2706 additions and 2702 deletions
+5 -5
View File
@@ -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 = () => {