mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 16:44:21 +00:00
perf(Popup): reduce unused listener (#9896)
This commit is contained in:
@@ -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?.()}
|
||||
|
Reference in New Issue
Block a user