我的排序功能是后端排序,是整個(gè)數(shù)據(jù)庫(kù)的排序,而element表格本身也自帶了排序功能。也就是這兩個(gè)排序混在一起了。我查了element文檔:sortable為custom,便可取消排序但不起作用<el-table class="table" :data="infoData" stripe style="width: 100%" sortable="custom" //不起作用,我要吐血了。sortable=custom也是一樣 @sort-change="changeSort"> <el-table-column prop="id" label="ID" sortable></el-table-column> <el-table-column prop="name" label="NAME" sortable></el-table-column> </el-table>
element表格如何取消排序?
12345678_0001
2019-03-14 16:15:45