diff --git a/examples/docs/en-US/pagination.md b/examples/docs/en-US/pagination.md index 5f182f5ac..61929ea2f 100644 --- a/examples/docs/en-US/pagination.md +++ b/examples/docs/en-US/pagination.md @@ -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 | diff --git a/examples/docs/zh-CN/pagination.md b/examples/docs/zh-CN/pagination.md index a5df7a7fa..8f70d1fa9 100644 --- a/examples/docs/zh-CN/pagination.md +++ b/examples/docs/zh-CN/pagination.md @@ -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 | 事件名称 | 说明 | 回调参数 | diff --git a/packages/pagination/src/pagination.js b/packages/pagination/src/pagination.js index 5f825fe34..351256655 100644 --- a/packages/pagination/src/pagination.js +++ b/packages/pagination/src/pagination.js @@ -32,7 +32,9 @@ export default { default() { return [10, 20, 30, 40, 50, 100]; } - } + }, + + popperClass: String }, data() { @@ -147,6 +149,7 @@ export default { { this.pageSizes.map(item =>