chore: prefer arrow function shorthand
This commit is contained in:
@@ -289,9 +289,7 @@ export default createComponent({
|
||||
disabled,
|
||||
selected: index === state.index,
|
||||
}),
|
||||
onClick: () => {
|
||||
onClickItem(index);
|
||||
},
|
||||
onClick: () => onClickItem(index),
|
||||
};
|
||||
|
||||
const childData = {
|
||||
|
||||
@@ -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)}
|
||||
/>
|
||||
));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user