问题:固定右侧两个操作框,但是因为有的表格内容过长导致错位现象
解决方法:
columns:[{
title: '操作',
dataIndex: 'action',
scopedSlots: { customRender: 'action' },
ellipsis: true, // 设置为true 可以隐藏超出部分
fixed: 'right'
}]
在表格中插槽,鼠标移入通过tooltip文字提示显示所有内容
<span slot="action" slot-scope="text,record,index">
<a-tooltip placement="rightTop">
<span :title="record.action">{{record.action}}</span>
</a-tooltip>
</span>
最后
以上就是飞快可乐最近收集整理的关于Ant design Vue表格使用fixed错位的全部内容,更多相关Ant内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复