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
+5 -3
View File
@@ -41,7 +41,9 @@ export default createComponent({
return this.title;
}
const match = this.options.filter(option => option.value === this.value);
const match = this.options.filter(
(option) => option.value === this.value
);
return match.length ? match[0].text : '';
},
},
@@ -53,7 +55,7 @@ export default createComponent({
},
beforeCreate() {
const createEmitter = eventName => () => this.$emit(eventName);
const createEmitter = (eventName) => () => this.$emit(eventName);
this.onOpen = createEmitter('open');
this.onClose = createEmitter('close');
@@ -105,7 +107,7 @@ export default createComponent({
closeOnClickOverlay,
} = this.parent;
const Options = this.options.map(option => {
const Options = this.options.map((option) => {
const active = option.value === this.value;
return (
<Cell