perf:dashboard table 设置单独的pageSize

This commit is contained in:
wangwenrui
2020-03-13 10:52:36 +08:00
parent 43d3117b0a
commit a80325589e
2 changed files with 10 additions and 5 deletions

View File

@@ -7,7 +7,7 @@
@next-click="next"
@current-change="current"
:current-page="pageObj.pageNo"
:page-sizes="[20, 50, 100]"
:page-sizes="pageSizes?pageSizes:[20, 50, 100]"
:page-size="20"
layout="total, prev, pager, next,sizes,jumper"
:total="this.pageObj.total"
@@ -18,7 +18,7 @@
<script>
export default {
name: "pagination",
props: ['pageObj'],
props: ['pageObj','pageSizes'],
data() {
return {};
},