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
+10 -10
View File
@@ -9,18 +9,18 @@ export const sharedProps = {
filter: Function,
showToolbar: {
type: Boolean,
default: true
default: true,
},
formatter: {
type: Function,
default: (type, value) => value
}
default: (type, value) => value,
},
};
export const TimePickerMixin = {
data() {
return {
innerValue: this.formatValue(this.value)
innerValue: this.formatValue(this.value),
};
},
@@ -38,16 +38,16 @@ export const TimePickerMixin = {
return {
type,
values
values,
};
});
},
columns() {
return this.originColumns.map(column => ({
values: column.values.map(value => this.formatter(column.type, value))
values: column.values.map(value => this.formatter(column.type, value)),
}));
}
},
},
watch: {
@@ -55,7 +55,7 @@ export const TimePickerMixin = {
innerValue(val) {
this.$emit('input', val);
}
},
},
mounted() {
@@ -78,7 +78,7 @@ export const TimePickerMixin = {
onCancel() {
this.$emit('cancel');
}
},
},
render() {
@@ -97,5 +97,5 @@ export const TimePickerMixin = {
{...{ props }}
/>
);
}
},
};