弃用fixed方法,手动实现。
配置文件:
{
title: '操作',
slot: 'operate',
width: 100,
//fixed: 'right',
className: 'tableSlotRight'
}
css:
// 解决iview右定位错行问题
/deep/.ivu-table {
position: relative;
.tableSlotRight {
position: sticky;
right: 0;
.ivu-table-cell {
border-left: 1px solid #e8eaec;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
}
}`