Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
Element
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
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
林焕东
Element
Commits
a5e5be3d
Commit
a5e5be3d
authored
Aug 06, 2017
by
Leopoldthecoder
Committed by
杨奕
Aug 13, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pagination: add popperClass
parent
1f2ee02b
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
1 deletion
+6
-1
examples/docs/en-US/pagination.md
examples/docs/en-US/pagination.md
+1
-0
examples/docs/zh-CN/pagination.md
examples/docs/zh-CN/pagination.md
+1
-0
packages/pagination/src/pagination.js
packages/pagination/src/pagination.js
+4
-1
No files found.
examples/docs/en-US/pagination.md
View file @
a5e5be3d
...
...
@@ -205,6 +205,7 @@ Add more modules based on your scenario.
| current-page | current page number, supports the .sync modifier | number | — | 1 |
| layout | layout of Pagination, elements separated with a comma | string |
`sizes`
,
`prev`
,
`pager`
,
`next`
,
`jumper`
,
`->`
,
`total`
,
`slot`
| 'prev, pager, next, jumper, ->, total' |
| page-sizes | options of item count per page | number
[]
| — |
[
10, 20, 30, 40, 50, 100
]
|
| popper-class | custom class name for the page size Select's dropdown | string | — | — |
### Events
| Event Name | Description | Parameters |
...
...
examples/docs/zh-CN/pagination.md
View file @
a5e5be3d
...
...
@@ -205,6 +205,7 @@
| current-page | 当前页数,支持 .sync 修饰符 | Number | — | 1 |
| layout | 组件布局,子组件名用逗号分隔| String |
`sizes`
,
`prev`
,
`pager`
,
`next`
,
`jumper`
,
`->`
,
`total`
,
`slot`
| 'prev, pager, next, jumper, ->, total' |
| page-sizes | 每页显示个数选择器的选项设置 | Number
[]
| — |
[
10, 20, 30, 40, 50, 100
]
|
| popper-class | 每页显示个数选择器的下拉框类名 | string | — | — |
### Events
| 事件名称 | 说明 | 回调参数 |
...
...
packages/pagination/src/pagination.js
View file @
a5e5be3d
...
...
@@ -32,7 +32,9 @@ export default {
default
()
{
return
[
10
,
20
,
30
,
40
,
50
,
100
];
}
}
},
popperClass
:
String
},
data
()
{
...
...
@@ -147,6 +149,7 @@ export default {
<
span
class
=
"
el-pagination__sizes
"
>
<
el
-
select
value
=
{
this
.
$parent
.
internalPageSize
}
popperClass
=
{
this
.
$parent
.
popperClass
}
on
-
input
=
{
this
.
handleChange
}
>
{
this
.
pageSizes
.
map
(
item
=>
...
...
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