mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(CellGroup): failed to inherit scopeId with title (#12328)
This commit is contained in:
parent
24e9176433
commit
0c4ecc93e5
@ -1,5 +1,6 @@
|
|||||||
import { defineComponent, type ExtractPropTypes } from 'vue';
|
import { defineComponent, type ExtractPropTypes } from 'vue';
|
||||||
import { truthProp, createNamespace, BORDER_TOP_BOTTOM } from '../utils';
|
import { truthProp, createNamespace, BORDER_TOP_BOTTOM } from '../utils';
|
||||||
|
import { useScopeId } from '../composables/use-scope-id';
|
||||||
|
|
||||||
const [name, bem] = createNamespace('cell-group');
|
const [name, bem] = createNamespace('cell-group');
|
||||||
|
|
||||||
@ -26,6 +27,7 @@ export default defineComponent({
|
|||||||
{ [BORDER_TOP_BOTTOM]: props.border && !props.inset },
|
{ [BORDER_TOP_BOTTOM]: props.border && !props.inset },
|
||||||
]}
|
]}
|
||||||
{...attrs}
|
{...attrs}
|
||||||
|
{...useScopeId()}
|
||||||
>
|
>
|
||||||
{slots.default?.()}
|
{slots.default?.()}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user