mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Popover): failed to inherit scopedId (#12329)
This commit is contained in:
parent
0c4ecc93e5
commit
4900b2be28
@ -31,6 +31,7 @@ import {
|
|||||||
|
|
||||||
// Composables
|
// Composables
|
||||||
import { useClickAway } from '@vant/use';
|
import { useClickAway } from '@vant/use';
|
||||||
|
import { useScopeId } from '../composables/use-scope-id';
|
||||||
import { useSyncPropRef } from '../composables/use-sync-prop-ref';
|
import { useSyncPropRef } from '../composables/use-sync-prop-ref';
|
||||||
|
|
||||||
// Components
|
// Components
|
||||||
@ -265,6 +266,7 @@ export default defineComponent({
|
|||||||
lockScroll={false}
|
lockScroll={false}
|
||||||
onUpdate:show={updateShow}
|
onUpdate:show={updateShow}
|
||||||
{...attrs}
|
{...attrs}
|
||||||
|
{...useScopeId()}
|
||||||
{...pick(props, popupProps)}
|
{...pick(props, popupProps)}
|
||||||
>
|
>
|
||||||
{props.showArrow && <div class={bem('arrow')} />}
|
{props.showArrow && <div class={bem('arrow')} />}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user