chore: prefer arrow function shorthand
This commit is contained in:
@@ -51,9 +51,7 @@ export default createComponent({
|
||||
emits: ['select', 'cancel', 'update:show'],
|
||||
|
||||
setup(props, { slots, emit }) {
|
||||
const onUpdateShow = (show: boolean) => {
|
||||
emit('update:show', show);
|
||||
};
|
||||
const onUpdateShow = (show: boolean) => emit('update:show', show);
|
||||
|
||||
const onCancel = () => {
|
||||
onUpdateShow(false);
|
||||
|
||||
Reference in New Issue
Block a user