mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
perf(Popup): reduce unused listener (#9896)
This commit is contained in:
parent
8ee394e115
commit
ee08a2611b
@ -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?.()}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user