本篇文章为大家展示了Antd中Table表头如何实现加Icon,内容简明扼要并且容易理解,绝对能使你眼前一亮,通过这篇文章的详细介绍希望你能有所收获。
对于Antd Table组件的columns数组来说,它需要接受2个属性(filterDropdown,filterIcon)才能在表头某个属性旁展示图标Icon:
columns: [{ title: '表达式', dataIndex: 'formulaTenderAmount', key: 'formulaTenderAmount', width: 150, placeholder: '请输入表达式', filterDropdown: (), filterIcon:, },{ title: '操作', dataIndex: 'operation', key: 'operation', width: 305, fixed: 'right', }, ],