perf: 适配最新版 pure-tableapi

This commit is contained in:
xiaoxian521 2023-03-30 12:22:10 +08:00
parent 40b7e12eaa
commit 638a95a4af
4 changed files with 7 additions and 7 deletions

View File

@ -37,7 +37,7 @@ const columns: TableColumnList = [
:data="tableData" :data="tableData"
:columns="columns" :columns="columns"
highlight-current-row highlight-current-row
@current-change="handleCurrentChange" @page-current-change="handleCurrentChange"
/> />
<div style="margin-top: 20px"> <div style="margin-top: 20px">
<el-button @click="setCurrent(tableData[1])">Select second row</el-button> <el-button @click="setCurrent(tableData[1])">Select second row</el-button>

View File

@ -66,8 +66,8 @@ const {
" "
:columns="columns" :columns="columns"
:pagination="pagination" :pagination="pagination"
@size-change="onSizeChange" @page-size-change="onSizeChange"
@current-change="onCurrentChange" @page-current-change="onCurrentChange"
/> />
</div> </div>
</template> </template>

View File

@ -109,8 +109,8 @@ const {
color: 'var(--el-text-color-primary)' color: 'var(--el-text-color-primary)'
}" }"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@size-change="handleSizeChange" @page-size-change="handleSizeChange"
@current-change="handleCurrentChange" @page-current-change="handleCurrentChange"
> >
<template #operation="{ row }"> <template #operation="{ row }">
<el-button <el-button

View File

@ -111,8 +111,8 @@ const {
color: 'var(--el-text-color-primary)' color: 'var(--el-text-color-primary)'
}" }"
@selection-change="handleSelectionChange" @selection-change="handleSelectionChange"
@size-change="handleSizeChange" @page-size-change="handleSizeChange"
@current-change="handleCurrentChange" @page-current-change="handleCurrentChange"
> >
<template #operation="{ row }"> <template #operation="{ row }">
<el-button <el-button