mirror of
https://gitee.com/yiming_chang/vue-pure-admin.git
synced 2024-12-02 11:17:39 +08:00
perf: 适配最新版 pure-table
的 api
This commit is contained in:
parent
40b7e12eaa
commit
638a95a4af
@ -37,7 +37,7 @@ const columns: TableColumnList = [
|
||||
:data="tableData"
|
||||
:columns="columns"
|
||||
highlight-current-row
|
||||
@current-change="handleCurrentChange"
|
||||
@page-current-change="handleCurrentChange"
|
||||
/>
|
||||
<div style="margin-top: 20px">
|
||||
<el-button @click="setCurrent(tableData[1])">Select second row</el-button>
|
||||
|
@ -66,8 +66,8 @@ const {
|
||||
"
|
||||
:columns="columns"
|
||||
:pagination="pagination"
|
||||
@size-change="onSizeChange"
|
||||
@current-change="onCurrentChange"
|
||||
@page-size-change="onSizeChange"
|
||||
@page-current-change="onCurrentChange"
|
||||
/>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -109,8 +109,8 @@ const {
|
||||
color: 'var(--el-text-color-primary)'
|
||||
}"
|
||||
@selection-change="handleSelectionChange"
|
||||
@size-change="handleSizeChange"
|
||||
@current-change="handleCurrentChange"
|
||||
@page-size-change="handleSizeChange"
|
||||
@page-current-change="handleCurrentChange"
|
||||
>
|
||||
<template #operation="{ row }">
|
||||
<el-button
|
||||
|
@ -111,8 +111,8 @@ const {
|
||||
color: 'var(--el-text-color-primary)'
|
||||
}"
|
||||
@selection-change="handleSelectionChange"
|
||||
@size-change="handleSizeChange"
|
||||
@current-change="handleCurrentChange"
|
||||
@page-size-change="handleSizeChange"
|
||||
@page-current-change="handleCurrentChange"
|
||||
>
|
||||
<template #operation="{ row }">
|
||||
<el-button
|
||||
|
Loading…
Reference in New Issue
Block a user