chore: prefer arrow function shorthand

This commit is contained in:
chenjiahan
2021-03-02 17:45:12 +08:00
parent 2fd0d54da1
commit a0addef294
42 changed files with 98 additions and 249 deletions

View File

@@ -119,21 +119,13 @@ export default createComponent({
updateColumnValue();
};
const onConfirm = () => {
emit('confirm', currentDate.value);
};
const onCancel = () => {
emit('cancel');
};
const onConfirm = () => emit('confirm', currentDate.value);
const onCancel = () => emit('cancel');
const onChange = () => {
updateInnerValue();
nextTick(() => {
nextTick(() => {
emit('change', currentDate.value);
});
nextTick(() => emit('change', currentDate.value));
});
};
@@ -155,9 +147,7 @@ export default createComponent({
updateInnerValue
);
watch(currentDate, (value) => {
emit('update:modelValue', value);
});
watch(currentDate, (value) => emit('update:modelValue', value));
watch(
() => props.modelValue,