chore: prettier source code

This commit is contained in:
chenjiahan
2020-04-02 15:36:02 +08:00
parent 340c56b3b5
commit 2fb5cca49a
93 changed files with 272 additions and 283 deletions
+1 -1
View File
@@ -63,7 +63,7 @@ export default createComponent({
if (this.beforeClose) {
this.loading[action] = true;
this.beforeClose(action, state => {
this.beforeClose(action, (state) => {
if (state !== false && this.loading[action]) {
this.onClose(action);
}
+4 -4
View File
@@ -21,7 +21,7 @@ function initInstance() {
},
});
instance.$on('input', value => {
instance.$on('input', (value) => {
instance.value = value;
});
}
@@ -66,14 +66,14 @@ Dialog.defaultOptions = {
showCancelButton: false,
closeOnPopstate: false,
closeOnClickOverlay: false,
callback: action => {
callback: (action) => {
instance[action === 'confirm' ? 'resolve' : 'reject'](action);
},
};
Dialog.alert = Dialog;
Dialog.confirm = options =>
Dialog.confirm = (options) =>
Dialog({
showCancelButton: true,
...options,
@@ -85,7 +85,7 @@ Dialog.close = () => {
}
};
Dialog.setDefaultOptions = options => {
Dialog.setDefaultOptions = (options) => {
Object.assign(Dialog.currentOptions, options);
};