-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs: update pagination #12168
docs: update pagination #12168
Conversation
jumtp
commented
Mar 23, 2023
- fix: missing sizes
* fix: missing sizes
👋 @jumtp, seems like this is your first time contribution to element-plus.
|
@@ -74,7 +74,7 @@ pagination/more-elements | |||
| pager-count | number of pagers. Pagination collapses when the total page count exceeds this value | ^[number]`5 \| 7 \| 9 \| 11 \| 13 \| 15 \| 17 \| 19 \| 21` | 7 | | |||
| current-page / v-model:current-page | current page number | ^[number] | 1 | | |||
| default-current-page | default initial value of current-page | ^[number] | - | | |||
| layout | layout of Pagination, elements separated with a comma | ^[string]`string (consists of sizes, prev, pager, next, jumper, ->, total, slot)` | prev, pager, next, jumper, ->, total | | |||
| layout | layout of Pagination, elements separated with a comma | ^[string]`string (consists of sizes, prev, pager, next, jumper, ->, total, slot)` | prev, sizes, pager, next, jumper, ->, total | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
export const paginationProps = buildProps({
layout: {
type: String,
default: (
['prev', 'pager', 'next', 'jumper', '->', 'total'] as LayoutKey[]
).join(', '),
},
});
Thank your contribution.
but props default information matches the documentation information, so no changes are required.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
was my fault, didn't notice that was the default value, I thought it was an optional parameter