解决antdesigntable表格fixed后出现空白列

本文探讨如何在表格设计中使用fixed属性保持'设备编号'和'设备名称'列固定宽度,同时保持其他列如硬件ID和操作栏的灵活性。通过调整宽高和定制render,确保数据展示一致性。

解决方案

fixed列设置固定width空白列就没了

{title: '设备编号', dataIndex: 'meterCode', align: 'center',width: 200,fixed: 'left'},
{title: '设备名称', dataIndex: 'meterName', align: 'center',width: 200,fixed: 'left'},
{title: '硬件ID', dataIndex: 'meterId', align: 'center'},
{title: '绑定账号', dataIndex: 'meterUser', align: 'center'},
{title: '设备状态', dataIndex: 'meterState', align: 'center'},
{title: '操作', scopedSlots: {customRender: 'action'}, align: 'center',width:80,fixed:'right'},
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值