使用@sort-change监听排序变化,设置sortable='custom'
<el-table :data="tableData" @sort-change='sortChange'>
<el-table-column prop="startDate" sortable='custom' label="出票日期"></el-table-column>
</el-table>
函数sortChange会接受一个对象,能获取 需要排序的lable,排序方式和具体内容
sortChange(column){
console.log(column)
},