<el-table v-loading="loading" :data="dataList" :defalut-sort="sortRule" @sort-change="sortChange"> <el-table-column :label="utilsTranslate('Project ID')" align="center" prop="projectID" sortable /> const sortRule = reactive({ prop: null, order: null}) const tabData = ref('') ...
*/exportconsttableSortChange= (tableData=[], column={}) => {// console.log('--tableSortChange--', tableData, column)if(column.order!==null) {letdata = [];letempData = [];//把空值和有值分两端放,table组件就可以处理排序了tableData.forEach((item, i) =>{if(item[column.prop]) {...
Element Plus Version:2.8.0 Browser / OS:UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36 Build Tool:Vite Reproduction Related Component el-table Reproduction Link ...