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?.()}