1. table table-layout去控制
table {
table-layout: fixed;
}
2. 使用columns的render属性去控制
const columns = [
{
title: '参数',
key: 'params',
dataIndex: 'params',
render: (text) => {
return (<span style={{ wordWrap: 'break-word', wordBreak: 'break-word' }}>
{text}
</span>)
}
}
]