Hi FE !
Ai
git
前端面试题
前端小tip
  • vite
  • webpack
npm
  • vue2
  • vue3
react
GitHub
Ai
git
前端面试题
前端小tip
  • vite
  • webpack
npm
  • vue2
  • vue3
react
GitHub
  • elementPlus中table自定接口排序

elementPlus中table自定接口排序

 <el-table :data="tableData" @sort-change="sortTime"  class="header-bg"  style="width: 100%">
    <el-table-column label="提交兑换申请时间" width="150" prop="applyTime"   sortable="custom" >
       <template #default="scope">
         {{formatTime(scope.row.applyTime)}}
       </template>
    </el-table-column>
    </el-table>

<script lang="ts">
export default defineComponent({
  name: "User",
  components:{
    deliveryOrder,
    receiptInfomation
  },
  setup() {
    const data = reactive({

      sortTime:(prop: string, order: string) => {
        console.log(prop,order);
      },
     
    })
    const refData = toRefs(data);
    return {
        ...refData,
    }
  }
});
</script>
Edit this page
最近更新: 2025/12/2 01:46
Contributors: qdleader
qdleader
本站总访问量 129823次 | 本站访客数 12人