mirror of
				https://github.com/nsnail/NetAdmin.git
				synced 2025-10-31 19:35:26 +08:00 
			
		
		
		
	feat(frontend): ✨ 手机端分页控件显示总条数 (#124)
This commit is contained in:
		| @@ -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() | ||||||
|   | |||||||
| @@ -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; | ||||||
|   | |||||||
| @@ -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; | ||||||
| } | } | ||||||
|   | |||||||
| @@ -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; | ||||||
|         } |         } | ||||||
|     } |     } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 GitHub
						GitHub