[英]Antd table - sort dosen't work with render
我在對表中的數據進行排序時遇到問題,因為當我使用帶有渲染功能的排序器時,排序只工作一次
{
title: 'App',
dataIndex: 'location',
render: location => location.join(', '),
sorter: true
}, {
title: 'Priority',
dataIndex: 'priority',
sorter: true
}
列中的排序按鈕不會改變,我從表句柄事件函數中獲得了相同的數據。 我不想在前端編寫排序器功能,因為我在后端執行此操作
您可以更新antd-3.11.0版本
如果您想在排序時發送 api 調用,您將為此使用 onChange 函數。 詳情可以在antd表的api中找到。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.