We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b7481e commit 34ab34aCopy full SHA for 34ab34a
components/vc-table/src/TableCell.jsx
@@ -70,6 +70,8 @@ export default {
70
if (isInvalidRenderCellText(text)) {
71
tdProps.attrs = text.attrs || {};
72
tdProps.props = text.props || {};
73
+ tdProps.class = text.class;
74
+ tdProps.style = text.style;
75
colSpan = tdProps.attrs.colSpan;
76
rowSpan = tdProps.attrs.rowSpan;
77
text = text.children;
@@ -99,7 +101,7 @@ export default {
99
101
tdProps.style = { textAlign: column.align, ...tdProps.style };
100
102
}
103
- const cellClassName = classNames(className || column.class, {
104
+ const cellClassName = classNames(className, column.class, {
105
[`${prefixCls}-cell-ellipsis`]: !!column.ellipsis,
106
// 如果有宽度,增加断行处理
107
// https://github.com/ant-design/ant-design/issues/13825#issuecomment-449889241
0 commit comments