效果:
js:
columns : [
{ title: '材料内容',dataIndex: 'neirong',width: 200, ellipsis: true,
customCell : () => {
return {
style: {
width: '100px',
overflow: 'hidden',
whiteSpace: 'nowrap',
textOverflow:'ellipsis',
cursor:'pointer'
}
}
},
customRender: (text,record) => <a-tooltip placement="topLeft" title = {record.neirong} >{record.neirong}</a-tooltip>},
],