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