File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -70,6 +70,8 @@ export default {
70
70
if ( isInvalidRenderCellText ( text ) ) {
71
71
tdProps . attrs = text . attrs || { } ;
72
72
tdProps . props = text . props || { } ;
73
+ tdProps . class = text . class ;
74
+ tdProps . style = text . style ;
73
75
colSpan = tdProps . attrs . colSpan ;
74
76
rowSpan = tdProps . attrs . rowSpan ;
75
77
text = text . children ;
@@ -99,7 +101,7 @@ export default {
99
101
tdProps . style = { textAlign : column . align , ...tdProps . style } ;
100
102
}
101
103
102
- const cellClassName = classNames ( className || column . class , {
104
+ const cellClassName = classNames ( className , column . class , {
103
105
[ `${ prefixCls } -cell-ellipsis` ] : ! ! column . ellipsis ,
104
106
// 如果有宽度,增加断行处理
105
107
// https://github.com/ant-design/ant-design/issues/13825#issuecomment-449889241
You can’t perform that action at this time.
0 commit comments