Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
finance-manage
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
finance-oa
finance-manage
Commits
a209b395
Commit
a209b395
authored
Jun 10, 2021
by
RuoYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
分页组件新增pagerCount属性
parent
557672ba
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
0 deletions
+15
-0
ruoyi-ui/src/assets/styles/ruoyi.scss
ruoyi-ui/src/assets/styles/ruoyi.scss
+9
-0
ruoyi-ui/src/components/Pagination/index.vue
ruoyi-ui/src/components/Pagination/index.vue
+6
-0
No files found.
ruoyi-ui/src/assets/styles/ruoyi.scss
View file @
a209b395
...
...
@@ -105,6 +105,15 @@
position
:
absolute
;
}
@media
(
max-width
:
768px
)
{
.pagination-container
.el-pagination
>
.el-pagination__jump
{
display
:
none
!
important
;
}
.pagination-container
.el-pagination
>
.el-pagination__sizes
{
display
:
none
!
important
;
}
}
.el-table
.fixed-width
.el-button--mini
{
padding-left
:
0
;
padding-right
:
0
;
...
...
ruoyi-ui/src/components/Pagination/index.vue
View file @
a209b395
...
...
@@ -6,6 +6,7 @@
:page-size.sync=
"pageSize"
:layout=
"layout"
:page-sizes=
"pageSizes"
:pager-count=
"pagerCount"
:total=
"total"
v-bind=
"$attrs"
@
size-change=
"handleSizeChange"
...
...
@@ -38,6 +39,11 @@ export default {
return
[
10
,
20
,
30
,
50
]
}
},
// 移动端页码按钮的数量端默认值5
pagerCount
:
{
type
:
Number
,
default
:
document
.
body
.
clientWidth
<
992
?
5
:
7
},
layout
:
{
type
:
String
,
default
:
'
total, sizes, prev, pager, next, jumper
'
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment