// 修正前
{
title: '属性',
dataIndex: 'attributername',
},
// 修正后
{
title: '属性',
dataIndex: 'attributername',
render: (text) => (
<Tooltip placement="topLeft" title={text}>
{text && (
<div className="plConstruction flexRowYCenter">
<img
src="http://192.168.0.111:7001/localstorage/theme/flow/process.svg"
alt=""
className="plConstruction tableIcon"
></img>
<span className="plConstruction tableIconText">{text}</span>
</div>
)}
</Tooltip>
),
onCell: () => {
return {
style: {
maxWidth: 100,
overflow: 'hidden',
whiteSpace: 'nowrap',
textOverflow: 'ellipsis',
cursor: 'pointer',
},
};
},
},
效果展示:
修正前:
修正后: