feat(frontend): 手机端分页控件显示总条数 (#124)

This commit is contained in:
nsnail 2024-05-17 16:23:30 +08:00 committed by GitHub
parent 169ab08b88
commit e0d15f8039
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 22 additions and 6 deletions

View File

@ -60,6 +60,7 @@
:layout="paginationLayout"
:page-size="scPageSize"
:page-sizes="pageSizes"
:pager-count="pagerCount"
:small="true"
:total="total"
@current-change="paginationChange"
@ -230,6 +231,7 @@ export default {
},
data() {
return {
pagerCount: 10,
current: {
row: null,
column: null,
@ -258,6 +260,7 @@ export default {
}
},
mounted() {
this.pagerCount = document.body.clientWidth < 1000 ? 3 : 10
//
if (this.column) {
this.getCustomColumn()

View File

@ -132,14 +132,13 @@ export default {
<style scoped>
.mobile-nav-button {
position: fixed;
bottom: 1rem;
left: 1rem;
top: 0;
left: 0;
z-index: 10;
width: 4rem;
height: 4rem;
background: #409eff;
box-shadow: 0 0.2rem 1rem 0 rgba(64, 158, 255, 1);
border-radius: 50%;
background: var(--el-color-primary);
box-shadow: 0 0.2rem 1rem 0 var(--el-color-primary);
display: flex;
align-items: center;
justify-content: center;

View File

@ -25,6 +25,10 @@
--el-menu-horizontal-height: 4rem;
}
.el-menu--inline {
--el-menu-active-color: var(--el-color-primary) !important;
}
.el-form-item--default {
--font-size: 1rem;
}

View File

@ -47,10 +47,20 @@
padding: 0 0.4rem !important;
}
.el-pagination__jump {
display: none;
}
.el-pagination__total,
.el-pagination__jump,
.el-pagination__sizes {
display: none !important;
.el-select {
display: none;
}
}
.scTable-do {
display: none;
}
}