mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:58:07 +08:00
fix: tablView组件 表格属性padding设置无效问题 (#4526)
Co-authored-by: ”jiatianqi“ <”jiatianqi@baidu.com“>
This commit is contained in:
parent
2a264abaa1
commit
54c3446bf1
@ -173,7 +173,7 @@ export default class TableView extends React.Component<TableViewProps, object> {
|
||||
}
|
||||
|
||||
renderTd(td: TdObject, colIndex: number, rowIndex: number) {
|
||||
const {border, borderColor, render, style} = this.props;
|
||||
const {border, borderColor, render, style, padding} = this.props;
|
||||
const key = `td-${colIndex}`;
|
||||
let styleBorder;
|
||||
if (border) {
|
||||
@ -186,7 +186,7 @@ export default class TableView extends React.Component<TableViewProps, object> {
|
||||
color: td.color,
|
||||
fontWeight: td.bold ? 'bold' : 'normal',
|
||||
background: td.background,
|
||||
padding: td.padding || defaultPadding,
|
||||
padding: td.padding || padding,
|
||||
width: td.width || 'auto',
|
||||
textAlign: td.align || 'left',
|
||||
verticalAlign: td.valign || 'center',
|
||||
|
Loading…
Reference in New Issue
Block a user