perf(Popup): reduce unused listener (#9896)

This commit is contained in:
neverland 2021-11-18 13:13:05 +08:00 committed by GitHub
parent 8ee394e115
commit ee08a2611b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -71,7 +71,6 @@ export default defineComponent({
emits: [ emits: [
'open', 'open',
'close', 'close',
'click',
'opened', 'opened',
'closed', 'closed',
'update:show', 'update:show',
@ -176,7 +175,6 @@ export default defineComponent({
} }
}; };
const onClick = (event: MouseEvent) => emit('click', event);
const onOpened = () => emit('opened'); const onOpened = () => emit('opened');
const onClosed = () => emit('closed'); const onClosed = () => emit('closed');
@ -194,7 +192,6 @@ export default defineComponent({
}), }),
{ 'van-safe-area-bottom': safeAreaInsetBottom }, { 'van-safe-area-bottom': safeAreaInsetBottom },
]} ]}
onClick={onClick}
{...attrs} {...attrs}
> >
{slots.default?.()} {slots.default?.()}