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
+1 -3
View File
@@ -289,9 +289,7 @@ export default createComponent({
disabled,
selected: index === state.index,
}),
onClick: () => {
onClickItem(index);
},
onClick: () => onClickItem(index),
};
const childData = {
+2 -6
View File
@@ -286,9 +286,7 @@ export default createComponent({
emitAction('confirm');
};
const cancel = () => {
emitAction('cancel');
};
const cancel = () => emitAction('cancel');
const renderTitle = () => {
if (slots.title) {
@@ -342,9 +340,7 @@ export default createComponent({
swipeDuration={props.swipeDuration}
initialOptions={item[valuesKey]}
visibleItemCount={props.visibleItemCount}
onChange={() => {
onChange(columnIndex);
}}
onChange={() => onChange(columnIndex)}
/>
));