ant design vue 按列排序 前端實現

在ant design vue 組件庫中,<a-table>表格對某一列數據進行排序,經過指定列的sorter函數便可啓動排序按鈕;vue sorter: function(rowA,rowB){},函數 rowA/rowB是比較的兩個行數據prototype 字符串的比較使用String.prototype.localCompare()方法進行排序。排序 columns:[字符串       {
相關文章
相關標籤/搜索