mirror of
https://github.com/youzan/vant.git
synced 2025-10-16 16:04:04 +00:00
fix(CellGroup): failed to inherit scopeId with title (#12328)
This commit is contained in:
@@ -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?.()}
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user