File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -152,8 +152,10 @@ export default defineComponent({
152
152
const breadcrumbClassName = {
153
153
[ prefixCls . value ] : true ,
154
154
[ `${ prefixCls . value } -rtl` ] : direction . value === 'rtl' ,
155
+ [ `${ attrs . class } ` ] : ! ! attrs . class ,
155
156
[ hashId . value ] : true ,
156
157
} ;
158
+
157
159
return wrapSSR (
158
160
< nav { ...attrs } class = { breadcrumbClassName } >
159
161
< ol > { crumbs } </ ol >
Original file line number Diff line number Diff line change @@ -162,10 +162,11 @@ export const descriptionsContext: InjectionKey<DescriptionsContextProp> =
162
162
const Descriptions = defineComponent ( {
163
163
compatConfig : { MODE : 3 } ,
164
164
name : 'ADescriptions' ,
165
+ inheritAttrs : false ,
165
166
props : descriptionsProps ( ) ,
166
167
slots : [ 'title' , 'extra' ] ,
167
168
Item : DescriptionsItem ,
168
- setup ( props , { slots } ) {
169
+ setup ( props , { slots, attrs } ) {
169
170
const { prefixCls, direction } = useConfigInject ( 'descriptions' , props ) ;
170
171
let token : number ;
171
172
const screens = ref < ScreenMap > ( { } ) ;
@@ -208,13 +209,15 @@ const Descriptions = defineComponent({
208
209
209
210
return wrapSSR (
210
211
< div
212
+ { ...attrs }
211
213
class = { [
212
214
prefixCls . value ,
213
215
{
214
216
[ `${ prefixCls . value } -${ size } ` ] : size !== 'default' ,
215
217
[ `${ prefixCls . value } -bordered` ] : ! ! bordered ,
216
218
[ `${ prefixCls . value } -rtl` ] : direction . value === 'rtl' ,
217
219
} ,
220
+ attrs . class ,
218
221
hashId . value ,
219
222
] }
220
223
>
Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ const Divider = defineComponent({
79
79
children . length
80
80
? `${ prefixClsRef . value } -with-text ${ prefixClsRef . value } -with-text${ orientationPrefix . value } `
81
81
: '' ,
82
+ attrs . class ,
82
83
] }
83
84
role = "separator"
84
85
>
You can’t perform that action at this time.
0 commit comments