@gmfe/react 2.14.14 → 2.14.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gmfe/react",
3
- "version": "2.14.14",
3
+ "version": "2.14.15",
4
4
  "description": "",
5
5
  "author": "liyatang <liyatang@qq.com>",
6
6
  "homepage": "https://github.com/gmfe/gmfe#readme",
@@ -27,7 +27,7 @@
27
27
  },
28
28
  "dependencies": {
29
29
  "@gm-common/tool": "^1.0.0",
30
- "@gmfe/locales": "^2.14.14",
30
+ "@gmfe/locales": "^2.14.15",
31
31
  "big.js": "^5.2.2",
32
32
  "classnames": "^2.2.5",
33
33
  "lodash": "^4.17.14",
@@ -35,5 +35,5 @@
35
35
  "prop-types": "^15.7.2",
36
36
  "react-window": "^1.8.5"
37
37
  },
38
- "gitHead": "ecec41e60a1f8cb7646adf6728b1a7c5286e9711"
38
+ "gitHead": "401ac9cfdb462013b32b742120ce4bf26694e0a8"
39
39
  }
@@ -14,7 +14,7 @@ const PaginationBase = props => {
14
14
  showCount,
15
15
  _peekInfo,
16
16
  className,
17
- limitData = [],
17
+ limitData,
18
18
  ...rest
19
19
  } = props
20
20
 
@@ -2,7 +2,7 @@ import React from 'react'
2
2
  import PropTypes from 'prop-types'
3
3
  import PaginationBase from './base'
4
4
 
5
- const Pagination = ({ data, toPage, nextDisabled, ...rest }) => {
5
+ const Pagination = ({ data, toPage, nextDisabled, limitData, ...rest }) => {
6
6
  if (data.count !== undefined && data.count !== null) {
7
7
  return (
8
8
  <PaginationBase
@@ -47,7 +47,8 @@ Pagination.propTypes = {
47
47
  /** data without count 才有效 */
48
48
  nextDisabled: PropTypes.bool,
49
49
  className: PropTypes.string,
50
- style: PropTypes.object
50
+ style: PropTypes.object,
51
+ limitData: PropTypes.array
51
52
  }
52
53
 
53
54
  export default Pagination