fix: table ssr has invaild style #231
parent
90d33b019b
commit
4b24c13544
|
@ -34,7 +34,7 @@ export default {
|
||||||
return (
|
return (
|
||||||
<col
|
<col
|
||||||
key={c.key || c.dataIndex}
|
key={c.key || c.dataIndex}
|
||||||
style={{ width, minWidth: width }}
|
style={width ? { width, minWidth: width } : {}}
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
|
@ -21,7 +21,9 @@ const TableHeaderRow = {
|
||||||
const rowProps = customHeaderRow(row.map(cell => cell.column), index)
|
const rowProps = customHeaderRow(row.map(cell => cell.column), index)
|
||||||
const customStyle = rowProps ? rowProps.style : {}
|
const customStyle = rowProps ? rowProps.style : {}
|
||||||
const style = { height, ...customStyle }
|
const style = { height, ...customStyle }
|
||||||
|
if (style.height === null) {
|
||||||
|
delete style.height
|
||||||
|
}
|
||||||
return (
|
return (
|
||||||
<HeaderRow {...rowProps} style={style}>
|
<HeaderRow {...rowProps} style={style}>
|
||||||
{row.map((cell, i) => {
|
{row.map((cell, i) => {
|
||||||
|
|
Loading…
Reference in New Issue