chore: prefer arrow function shorthand
This commit is contained in:
@@ -237,9 +237,7 @@ export default createComponent({
|
||||
color={props.color}
|
||||
offset={offset.value}
|
||||
rowHeight={rowHeight.value}
|
||||
onClick={(item) => {
|
||||
emit('click', item);
|
||||
}}
|
||||
onClick={(item) => emit('click', item)}
|
||||
/>
|
||||
);
|
||||
|
||||
|
||||
@@ -332,9 +332,7 @@ export default createComponent({
|
||||
return true;
|
||||
};
|
||||
|
||||
const onConfirm = () => {
|
||||
emit('confirm', copyDates(state.currentDate));
|
||||
};
|
||||
const onConfirm = () => emit('confirm', copyDates(state.currentDate));
|
||||
|
||||
const select = (date: Date | Date[], complete?: boolean) => {
|
||||
const setCurrentDate = (date: Date | Date[]) => {
|
||||
@@ -426,9 +424,7 @@ export default createComponent({
|
||||
}
|
||||
};
|
||||
|
||||
const togglePopup = (value: boolean) => {
|
||||
emit('update:show', value);
|
||||
};
|
||||
const togglePopup = (value: boolean) => emit('update:show', value);
|
||||
|
||||
const renderMonth = (date: Date, index: number) => {
|
||||
const showMonthTitle = index !== 0 || !props.showSubtitle;
|
||||
|
||||
Reference in New Issue
Block a user