Commit 833ac54a2f425224da38ebd886f774234fcecc8b
1 parent
7bf9a852
v3.6.0 分页组件新增pagerCount属性
Showing
3 changed files
with
16 additions
and
1 deletions
yudao-ui-admin/src/assets/styles/ruoyi.scss
| @@ -105,6 +105,15 @@ | @@ -105,6 +105,15 @@ | ||
| 105 | position: absolute; | 105 | position: absolute; |
| 106 | } | 106 | } |
| 107 | 107 | ||
| 108 | +@media ( max-width : 768px) { | ||
| 109 | + .pagination-container .el-pagination > .el-pagination__jump { | ||
| 110 | + display: none !important; | ||
| 111 | + } | ||
| 112 | + .pagination-container .el-pagination > .el-pagination__sizes { | ||
| 113 | + display: none !important; | ||
| 114 | + } | ||
| 115 | +} | ||
| 116 | + | ||
| 108 | .el-table .fixed-width .el-button--mini { | 117 | .el-table .fixed-width .el-button--mini { |
| 109 | padding-left: 0; | 118 | padding-left: 0; |
| 110 | padding-right: 0; | 119 | padding-right: 0; |
yudao-ui-admin/src/components/Pagination/index.vue
| @@ -38,6 +38,11 @@ export default { | @@ -38,6 +38,11 @@ export default { | ||
| 38 | return [10, 20, 30, 50] | 38 | return [10, 20, 30, 50] |
| 39 | } | 39 | } |
| 40 | }, | 40 | }, |
| 41 | + // 移动端页码按钮的数量端默认值5 | ||
| 42 | + pagerCount: { | ||
| 43 | + type: Number, | ||
| 44 | + default: document.body.clientWidth < 992 ? 5 : 7 | ||
| 45 | + }, | ||
| 41 | layout: { | 46 | layout: { |
| 42 | type: String, | 47 | type: String, |
| 43 | default: 'total, sizes, prev, pager, next, jumper' | 48 | default: 'total, sizes, prev, pager, next, jumper' |
更新日志.md
| @@ -32,7 +32,8 @@ TODO | @@ -32,7 +32,8 @@ TODO | ||
| 32 | * 【优化】使用 Lombok 简化 JsonUtils 工具类 [#73](https://github.com/YunaiV/ruoyi-vue-pro/pull/73) | 32 | * 【优化】使用 Lombok 简化 JsonUtils 工具类 [#73](https://github.com/YunaiV/ruoyi-vue-pro/pull/73) |
| 33 | * 【新增】兼容 Node 16 版本,通过升级 BPMN-JS 相关库 [commit](https://gitee.com/zhijiantianya/ruoyi-vue-pro/commit/4c169cbc58eb0d0cc4aead73ca127a2957e6a3aa) | 33 | * 【新增】兼容 Node 16 版本,通过升级 BPMN-JS 相关库 [commit](https://gitee.com/zhijiantianya/ruoyi-vue-pro/commit/4c169cbc58eb0d0cc4aead73ca127a2957e6a3aa) |
| 34 | * 【新增】前端的表格右侧工具栏组件支持显隐列,具体可见【用户管理】功能 [commit](https://gitee.com/zhijiantianya/ruoyi-vue-pro/commit/20e34e35a3bdc48e6a4c58e3849aa729bd18efe5) | 34 | * 【新增】前端的表格右侧工具栏组件支持显隐列,具体可见【用户管理】功能 [commit](https://gitee.com/zhijiantianya/ruoyi-vue-pro/commit/20e34e35a3bdc48e6a4c58e3849aa729bd18efe5) |
| 35 | -* 【新增】菜单导航显示风格 TopNav(false 为 左侧导航菜单,true 为顶部导航菜单),支持布局的保存与重置 [commit1](https://gitee.com/zhijiantianya/ruoyi-vue-pro/commit/4bf5b04d542014a49c5a41b20935cef35033a518) [commit2](https://gitee.com/zhijiantianya/ruoyi-vue-pro/commit/cff4391f2d7830770731c0034085c0f77ea8c68e) | 35 | +* 【新增】前端的菜单导航显示风格 TopNav(false 为 左侧导航菜单,true 为顶部导航菜单),支持布局的保存与重置 [commit1](https://gitee.com/zhijiantianya/ruoyi-vue-pro/commit/4bf5b04d542014a49c5a41b20935cef35033a518) [commit2](https://gitee.com/zhijiantianya/ruoyi-vue-pro/commit/cff4391f2d7830770731c0034085c0f77ea8c68e) |
| 36 | +* 【新增】前端的网页标题支持根据选择的菜单,动态展示标题 [commit](https://gitee.com/zhijiantianya/ruoyi-vue-pro/commit/7bf9a85263e0c44b2bc88485b83557c129583f5c) | ||
| 36 | * 【新增】跟进 ruoyi-vue 3.4.0、3.5.0 版本,感谢这么优秀的开源项目! | 37 | * 【新增】跟进 ruoyi-vue 3.4.0、3.5.0 版本,感谢这么优秀的开源项目! |
| 37 | 38 | ||
| 38 | ### 🐞 Bug Fixes | 39 | ### 🐞 Bug Fixes |