移动装修分页无效和pc装修分页样式

master
chc 2022-10-28 09:44:24 +08:00
parent 8095aa0d8e
commit c382f015f4
2 changed files with 9 additions and 3 deletions

View File

@ -42,7 +42,7 @@
</div>
<div class="no-more" v-if="list.length == 0"></div>
</div>
<Page show-total :total="total" show-sizer :page-size-opts="[10, 20, 50]" show-elevator style="float:right;overflow:hidden;" @on-change="changePageNum" @on-page-size-change="changePageSize" :page-size="searchForm.pageSize"/>
<Page show-total :total="total" show-sizer size="small" :page-size-opts="[10, 20, 50]" show-elevator style="float:right;overflow:hidden;" @on-change="changePageNum" @on-page-size-change="changePageSize" :page-size="searchForm.pageSize"/>
</Card>
<Modal
v-model="showModal"

View File

@ -40,7 +40,7 @@
<Page
:total="total"
size="small"
@on-change="(val) => {params.pageNumber = val; } "
@on-change="changePageNum"
:current="params.pageNumber"
:page-size="params.pageSize"
show-sizer
@ -139,6 +139,12 @@ export default {
this.init();
}
},
//
changePageNum (val) {
this.params.pageNumber = val;
this.init();
},
//
changeSwitch(item) {
this.loading = true;