import { Tooltip } from 'antd'
const columns = [
{
title: '名称',
dataIndex: 'name',
onCell: () => {
return {
style: { // 样式设置
maxWidth: 120,
overflow: 'hidden',
whiteSpace: 'nowrap',
textOverflow: 'ellipsis',
cursor: 'pointer',
},
};
},
render: v => (
<Tooltip placement="topLeft" title={v}> // 鼠标 pointer 提示
{v}
</Tooltip>
),
},
]
Table, too long omitted
Guess you like
Origin blog.csdn.net/JIANLI0123/article/details/104543215
Ranking