Antd 表 - 排序不适用于渲染 [英] Antd table - sort dosen't work with render
本文介绍了Antd 表 - 排序不适用于渲染的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在对表格中的数据进行排序时遇到问题,因为当我使用带有渲染功能的排序器时,排序只工作一次
I go problem with sorting data in table because when I using sorter with render function sort work only time
{
title: 'App',
dataIndex: 'location',
render: location => location.join(', '),
sorter: true
}, {
title: 'Priority',
dataIndex: 'priority',
sorter: true
}
列中的排序按钮不会改变,我从表句柄事件函数中获得了相同的数据.我不想在前端编写排序功能,因为我在后端执行此操作
Sorter buttons in column dosen't change and i got the same data from table handle event function. I dont want write sorter function on frontend because i do this on backend
推荐答案
您可以更新antd-3.11.0版本
you can update antd-3.11.0 version
这篇关于Antd 表 - 排序不适用于渲染的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文