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
+2 -7
View File
@@ -34,13 +34,8 @@ export default createComponent({
const navBarRef = ref<HTMLElement>();
const renderPlaceholder = usePlaceholder(navBarRef, bem);
const onClickLeft = (event: MouseEvent) => {
emit('click-left', event);
};
const onClickRight = (event: MouseEvent) => {
emit('click-right', event);
};
const onClickLeft = (event: MouseEvent) => emit('click-left', event);
const onClickRight = (event: MouseEvent) => emit('click-right', event);
const renderLeft = () => {
if (slots.left) {