fix(Popover): failed to inherit scopedId (#12329)

This commit is contained in:
neverland
2023-09-29 21:35:17 +08:00
committed by GitHub
parent 0c4ecc93e5
commit 4900b2be28

View File

@@ -31,6 +31,7 @@ import {
// Composables
import { useClickAway } from '@vant/use';
import { useScopeId } from '../composables/use-scope-id';
import { useSyncPropRef } from '../composables/use-sync-prop-ref';
// Components
@@ -265,6 +266,7 @@ export default defineComponent({
lockScroll={false}
onUpdate:show={updateShow}
{...attrs}
{...useScopeId()}
{...pick(props, popupProps)}
>
{props.showArrow && <div class={bem('arrow')} />}