mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-30 09:24:46 +08:00
perf: 适配最新版 pure-table
的 api
This commit is contained in:
parent
40b7e12eaa
commit
638a95a4af
@ -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>
|
||||||
|
@ -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>
|
||||||
|
@ -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
|
||||||
|
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user