diff --git a/build/config.js b/build/config.js index 711f8e157..e041cab95 100644 --- a/build/config.js +++ b/build/config.js @@ -1,5 +1,5 @@ module.exports = { dev: { - componentName: 'notification', // dev components + componentName: 'pagination', // dev components }, }; diff --git a/components/pagination/Pagination.jsx b/components/pagination/Pagination.jsx index c3fbd049a..a4df55765 100644 --- a/components/pagination/Pagination.jsx +++ b/components/pagination/Pagination.jsx @@ -11,6 +11,7 @@ import { ConfigConsumerProps } from '../config-provider'; export const PaginationProps = () => ({ total: PropTypes.number, defaultCurrent: PropTypes.number, + disabled: PropTypes.bool, current: PropTypes.number, defaultPageSize: PropTypes.number, pageSize: PropTypes.number, @@ -19,7 +20,7 @@ export const PaginationProps = () => ({ pageSizeOptions: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string])), buildOptionText: PropTypes.func, showSizeChange: PropTypes.func, - showQuickJumper: PropTypes.bool, + showQuickJumper: PropTypes.oneOfType([PropTypes.bool, PropTypes.object]), showTotal: PropTypes.any, size: PropTypes.string, simple: PropTypes.bool, @@ -28,6 +29,7 @@ export const PaginationProps = () => ({ selectPrefixCls: PropTypes.string, itemRender: PropTypes.any, role: PropTypes.string, + showLessItems: PropTypes.bool, }); export const PaginationConfig = () => ({ diff --git a/components/pagination/__tests__/__snapshots__/demo.test.js.snap b/components/pagination/__tests__/__snapshots__/demo.test.js.snap index 074576555..a61e5256e 100644 --- a/components/pagination/__tests__/__snapshots__/demo.test.js.snap +++ b/components/pagination/__tests__/__snapshots__/demo.test.js.snap @@ -47,7 +47,7 @@ exports[`renders ./components/pagination/demo/changer.md correctly 1`] = `
-