From 0c4ecc93e5bd4cd3729ab447fbabc9541e360b15 Mon Sep 17 00:00:00 2001 From: neverland Date: Fri, 29 Sep 2023 21:28:07 +0800 Subject: [PATCH] fix(CellGroup): failed to inherit scopeId with title (#12328) --- packages/vant/src/cell-group/CellGroup.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/vant/src/cell-group/CellGroup.tsx b/packages/vant/src/cell-group/CellGroup.tsx index 22bc1a247..d8b0306ee 100644 --- a/packages/vant/src/cell-group/CellGroup.tsx +++ b/packages/vant/src/cell-group/CellGroup.tsx @@ -1,5 +1,6 @@ import { defineComponent, type ExtractPropTypes } from 'vue'; import { truthProp, createNamespace, BORDER_TOP_BOTTOM } from '../utils'; +import { useScopeId } from '../composables/use-scope-id'; const [name, bem] = createNamespace('cell-group'); @@ -26,6 +27,7 @@ export default defineComponent({ { [BORDER_TOP_BOTTOM]: props.border && !props.inset }, ]} {...attrs} + {...useScopeId()} > {slots.default?.()}