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
+3 -7
View File
@@ -330,17 +330,13 @@ export default createComponent({
resetScroll();
};
const onClickInput = (event: MouseEvent) => {
emit('click-input', event);
};
const onClickInput = (event: MouseEvent) => emit('click-input', event);
const onClickLeftIcon = (event: MouseEvent) => {
const onClickLeftIcon = (event: MouseEvent) =>
emit('click-left-icon', event);
};
const onClickRightIcon = (event: MouseEvent) => {
const onClickRightIcon = (event: MouseEvent) =>
emit('click-right-icon', event);
};
const onClear = (event: MouseEvent) => {
preventDefault(event);