chore: prefer arrow function shorthand
This commit is contained in:
@@ -29,9 +29,7 @@ export default createComponent({
|
||||
setup(props, { emit, slots }) {
|
||||
const swipeRef = ref<ComponentInstance>();
|
||||
|
||||
const onChange = (index: number) => {
|
||||
emit('change', index);
|
||||
};
|
||||
const onChange = (index: number) => emit('change', index);
|
||||
|
||||
const renderChildren = () => {
|
||||
const Content = slots.default?.();
|
||||
|
||||
+1
-2
@@ -438,9 +438,8 @@ export default createComponent({
|
||||
});
|
||||
};
|
||||
|
||||
const onRendered = (name: string | number, title?: string) => {
|
||||
const onRendered = (name: string | number, title?: string) =>
|
||||
emit('rendered', name, title);
|
||||
};
|
||||
|
||||
useExpose({
|
||||
resize: setLine,
|
||||
|
||||
Reference in New Issue
Block a user