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
+1 -1
View File
@@ -12,5 +12,5 @@ export const context = {
get top(): StackItem {
return this.stack[this.stack.length - 1];
}
},
};
+11 -11
View File
@@ -22,13 +22,13 @@ export const popupMixinProps = {
// prevent body scroll
lockScroll: {
type: Boolean,
default: true
default: true,
},
// whether to lazy render
lazyRender: {
type: Boolean,
default: true
}
default: true,
},
};
export function PopupMixin(options = {}) {
@@ -41,22 +41,22 @@ export function PopupMixin(options = {}) {
if (this.overlay) {
updateOverlay();
}
}
})
},
}),
],
props: popupMixinProps,
data() {
return {
inited: this.value
inited: this.value,
};
},
computed: {
shouldRender() {
return this.inited || !this.lazyRender;
}
},
},
watch: {
@@ -70,7 +70,7 @@ export function PopupMixin(options = {}) {
}
},
overlay: 'renderOverlay'
overlay: 'renderOverlay',
},
mounted() {
@@ -186,7 +186,7 @@ export function PopupMixin(options = {}) {
zIndex: context.zIndex++,
duration: this.duration,
className: this.overlayClass,
customStyle: this.overlayStyle
customStyle: this.overlayStyle,
});
} else {
closeOverlay(this);
@@ -196,7 +196,7 @@ export function PopupMixin(options = {}) {
updateZIndex(value = 0) {
this.$el.style.zIndex = ++context.zIndex + value;
}
}
},
},
};
}
+4 -4
View File
@@ -10,7 +10,7 @@ export type OverlayConfig = {
const defaultConfig: OverlayConfig = {
className: '',
customStyle: {}
customStyle: {},
};
let overlay: any;
@@ -34,8 +34,8 @@ function onClickOverlay(): void {
function mountOverlay() {
overlay = mount(Overlay, {
on: {
click: onClickOverlay
}
click: onClickOverlay,
},
});
}
@@ -55,7 +55,7 @@ export function updateOverlay(): void {
}
Object.assign(overlay, defaultConfig, config, {
show: true
show: true,
});
} else {
overlay.show = false;