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

View File

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

View File

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

View File

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