🎨 updateel-pagination config

This commit is contained in:
x ronger 2020-10-20 22:28:21 +08:00
parent 095cd0c90c
commit 89b4b74b9f
11 changed files with 13 additions and 9 deletions

View File

@ -41,11 +41,13 @@
</el-col> </el-col>
<el-col> <el-col>
<div class="vertical-container text-center"> <div class="vertical-container text-center">
<el-pagination v-show="articles.pagination.total > articles.pagination.pageSize" v-model="articles.pagination" <el-pagination :hide-on-single-page="true" v-model="articles.pagination"
layout="prev, pager, next" layout="prev, pager, next"
:page-size="articles.pagination.pageSize" :page-size="articles.pagination.pageSize"
:current-page="articles.pagination.currentPage" :current-page="articles.pagination.currentPage"
:total="articles.pagination.total" :total="articles.pagination.total"
prev-text="上一页"
next-text="下一页"
@current-change="currentChange"> @current-change="currentChange">
</el-pagination> </el-pagination>
</div> </div>

View File

@ -18,7 +18,7 @@
</el-col> </el-col>
<el-col> <el-col>
<div class="vertical-container text-center"> <div class="vertical-container text-center">
<el-pagination v-show="articles.pagination.total > 10" v-model="articles.pagination" <el-pagination :hide-on-single-page="true" v-model="articles.pagination"
layout="prev, pager, next" layout="prev, pager, next"
:current-page="articles.pagination.currentPage" :current-page="articles.pagination.currentPage"
:total="articles.pagination.total" :total="articles.pagination.total"

View File

@ -55,7 +55,7 @@
</el-col> </el-col>
<el-col> <el-col>
<div class="vertical-container text-center"> <div class="vertical-container text-center">
<el-pagination v-show="notifications.pagination.total > 10" v-model="notifications.pagination" <el-pagination :hide-on-single-page="true" v-model="notifications.pagination"
layout="prev, pager, next" layout="prev, pager, next"
:current-page="notifications.pagination.currentPage" :current-page="notifications.pagination.currentPage"
:total="notifications.pagination.total" :total="notifications.pagination.total"

View File

@ -33,7 +33,7 @@
</el-col> </el-col>
<el-col> <el-col>
<div class="vertical-container text-center"> <div class="vertical-container text-center">
<el-pagination v-show="portfolios.pagination.total > 10" v-model="portfolios.pagination" <el-pagination :hide-on-single-page="true" v-model="portfolios.pagination"
layout="prev, pager, next" layout="prev, pager, next"
:current-page="portfolios.pagination.currentPage" :current-page="portfolios.pagination.currentPage"
:total="portfolios.pagination.total" :total="portfolios.pagination.total"

View File

@ -15,7 +15,7 @@
</el-col> </el-col>
<el-col> <el-col>
<div class="vertical-container text-center"> <div class="vertical-container text-center">
<el-pagination v-show="articles.pagination.total > 10" v-model="articles.pagination" <el-pagination :hide-on-single-page="true" v-model="articles.pagination"
layout="prev, pager, next" layout="prev, pager, next"
:current-page="articles.pagination.currentPage" :current-page="articles.pagination.currentPage"
:total="articles.pagination.total" :total="articles.pagination.total"

View File

@ -34,7 +34,7 @@
</el-col> </el-col>
<el-col> <el-col>
<div class="vertical-container text-center"> <div class="vertical-container text-center">
<el-pagination v-show="articles.pagination.total > 10" v-model="articles.pagination" <el-pagination :hide-on-single-page="true" v-model="articles.pagination"
layout="prev, pager, next" layout="prev, pager, next"
:current-page="articles.pagination.currentPage" :current-page="articles.pagination.currentPage"
:total="articles.pagination.total" :total="articles.pagination.total"

View File

@ -54,6 +54,7 @@
</el-col> </el-col>
<el-col> <el-col>
<el-pagination <el-pagination
:hide-on-single-page="true"
@size-change="handleSizeChange" @size-change="handleSizeChange"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page="pagination.currentPage" :current-page="pagination.currentPage"

View File

@ -32,7 +32,7 @@
</el-col> </el-col>
<el-col> <el-col>
<div class="vertical-container text-center"> <div class="vertical-container text-center">
<el-pagination v-show="pagination.total > 10" v-model="pagination" <el-pagination :hide-on-single-page="true" v-model="pagination"
layout="prev, pager, next" layout="prev, pager, next"
:current-page="pagination.currentPage" :current-page="pagination.currentPage"
:total="pagination.total" :total="pagination.total"

View File

@ -54,7 +54,7 @@
</el-col> </el-col>
<el-col> <el-col>
<div class="vertical-container text-center"> <div class="vertical-container text-center">
<el-pagination v-show="pagination.total > 10" v-model="pagination" <el-pagination :hide-on-single-page="true" v-model="pagination"
layout="prev, pager, next" layout="prev, pager, next"
:current-page="pagination.currentPage" :current-page="pagination.currentPage"
:total="pagination.total" :total="pagination.total"

View File

@ -36,7 +36,7 @@
</el-col> </el-col>
<el-col> <el-col>
<div class="vertical-container text-center"> <div class="vertical-container text-center">
<el-pagination v-show="pagination.total > 10" v-model="pagination" <el-pagination :hide-on-single-page="true" v-model="pagination"
layout="prev, pager, next" layout="prev, pager, next"
:current-page="pagination.currentPage" :current-page="pagination.currentPage"
:total="pagination.total" :total="pagination.total"

View File

@ -72,6 +72,7 @@
</el-col> </el-col>
<el-col> <el-col>
<el-pagination <el-pagination
:hide-on-single-page="true"
@size-change="handleSizeChange" @size-change="handleSizeChange"
@current-change="handleCurrentChange" @current-change="handleCurrentChange"
:current-page="pagination.currentPage" :current-page="pagination.currentPage"