@@ -29,6 +29,7 @@ import eagerComputed from '../_util/eagerComputed';
2929
3030// CSSINJS
3131import useStyle from './style' ;
32+ import useCSSVarCls from '../config-provider/hooks/useCssVarCls' ;
3233
3334export type { ListItemProps } from './Item' ;
3435export type { ListItemMetaProps } from './ItemMeta' ;
@@ -110,7 +111,8 @@ const List = defineComponent({
110111 const { prefixCls, direction, renderEmpty } = useConfigInject ( 'list' , props ) ;
111112
112113 // Style
113- const [ wrapSSR , hashId ] = useStyle ( prefixCls ) ;
114+ const rootCls = useCSSVarCls ( prefixCls ) ;
115+ const [ wrapSSR , hashId , cssVarCls ] = useStyle ( prefixCls , rootCls ) ;
114116
115117 const paginationObj = computed ( ( ) =>
116118 props . pagination && typeof props . pagination === 'object' ? props . pagination : { } ,
@@ -274,7 +276,9 @@ const List = defineComponent({
274276 [ `${ prefixCls . value } -something-after-last-item` ] : isSomethingAfterLastItem ,
275277 } ,
276278 attrs . class ,
279+ cssVarCls . value ,
277280 hashId . value ,
281+ rootCls . value ,
278282 ) ;
279283 const paginationContent = props . pagination ? (
280284 < div class = { `${ prefixCls . value } -pagination` } >
0 commit comments