chore: remove object spead (#8514)
This commit is contained in:
@@ -14,6 +14,7 @@ import { Instance, createPopper, offsetModifier } from '@vant/popperjs';
|
||||
// Utils
|
||||
import {
|
||||
pick,
|
||||
extend,
|
||||
UnknownProp,
|
||||
createNamespace,
|
||||
ComponentInstance,
|
||||
@@ -129,12 +130,11 @@ export default defineComponent({
|
||||
gpuAcceleration: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
...offsetModifier,
|
||||
extend({}, offsetModifier, {
|
||||
options: {
|
||||
offset: props.offset,
|
||||
},
|
||||
},
|
||||
}),
|
||||
],
|
||||
});
|
||||
};
|
||||
@@ -228,11 +228,9 @@ export default defineComponent({
|
||||
transition="van-popover-zoom"
|
||||
lockScroll={false}
|
||||
onTouchstart={onTouchstart}
|
||||
{...{
|
||||
...attrs,
|
||||
...pick(props, popupProps),
|
||||
'onUpdate:show': updateShow,
|
||||
}}
|
||||
{...attrs}
|
||||
{...pick(props, popupProps)}
|
||||
{...{ 'onUpdate:show': updateShow }}
|
||||
>
|
||||
<div class={bem('arrow')} />
|
||||
<div role="menu" class={bem('content')}>
|
||||
|
||||
Reference in New Issue
Block a user