chore: add trailingComma
This commit is contained in:
@@ -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 }}
|
||||
/>
|
||||
);
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user