关于使用 ant-design-vue a-table 超出部分 隐藏并显示省略号,

但有的时候 title的hover显示效果 满足不了我们的 需求 , 要求我们使用类似于tooltip的形式  对省略的字段进行显示 

columns = [
{
id: "1",
checked:true,
100,
title: '更新时间',
dataIndex: 'update_at',
customCell : () => {
return {
style: {
'100px',
overflow: 'hidden',
whiteSpace: 'nowrap',
textOverflow:'ellipsis',
cursor:'pointer'
}
}
},
customRender: (text,record) => <a-tooltip placement="topLeft" title = {record.create_at} >{record.create_at}</a-tooltip>
}

]

原文地址:https://www.cnblogs.com/chenlongsheng/p/15272245.html