iview实现table中的数据超出出现…然后鼠标上移内容展现
{
title: '审核备注',
key: 'auditRemark',
minWidth: 200,
render: (h, params) => {
return h(
'Tooltip',
{
props: {
content: params.row.auditRemark,
placement: 'top',
popperClass: 'tooltip-text',
maxWidth: 400,
transfer: true
},
style: {
}
},
[
h(
'div',
{
style: {
display: 'inline-block',
width: params.column._width * 0.8 + 'px',
overflow: 'hidden',
textOverflow: 'ellipsis',
whiteSpace: 'nowrap'
}
},
params.row.auditRemark
)
]
);
}
}