Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rc-pagination

Package Overview
Dependencies
Maintainers
9
Versions
202
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-pagination - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

2

es/Options.js

@@ -190,4 +190,4 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

Options.defaultProps = {
pageSizeOptions: ['10', '25', '50', '100']
pageSizeOptions: ['10', '20', '50', '100']
};
export default Options;

@@ -327,3 +327,4 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }

showSizeChanger = _this$props2.showSizeChanger,
total = _this$props2.total;
total = _this$props2.total,
totalBoundaryShowSizeChanger = _this$props2.totalBoundaryShowSizeChanger;

@@ -334,3 +335,3 @@ if (typeof showSizeChanger !== 'undefined') {

return total >= 100;
return total > totalBoundaryShowSizeChanger;
}

@@ -469,3 +470,3 @@ }, {

if (allPages <= 5 + pageBufferSize * 2) {
if (allPages <= 3 + pageBufferSize * 2) {
var pagerProps = {

@@ -685,4 +686,5 @@ locale: locale,

style: {},
itemRender: defaultItemRender
itemRender: defaultItemRender,
totalBoundaryShowSizeChanger: 50
};
export default Pagination;

@@ -0,1 +1,7 @@

# 2.2.0
- Add prop `totalBoundaryShowSizeChanger`.
- Fix items count not being consistent. [#18201](https://github.com/ant-design/ant-design/issues/18201)
- Update default page size options from `10,25,30,40` to `10,20,50,100`.
# 2.1.0

@@ -2,0 +8,0 @@

@@ -199,5 +199,5 @@ "use strict";

Options.defaultProps = {
pageSizeOptions: ['10', '25', '50', '100']
pageSizeOptions: ['10', '20', '50', '100']
};
var _default = Options;
exports.default = _default;

@@ -344,3 +344,4 @@ "use strict";

showSizeChanger = _this$props2.showSizeChanger,
total = _this$props2.total;
total = _this$props2.total,
totalBoundaryShowSizeChanger = _this$props2.totalBoundaryShowSizeChanger;

@@ -351,3 +352,3 @@ if (typeof showSizeChanger !== 'undefined') {

return total >= 100;
return total > totalBoundaryShowSizeChanger;
}

@@ -486,3 +487,3 @@ }, {

if (allPages <= 5 + pageBufferSize * 2) {
if (allPages <= 3 + pageBufferSize * 2) {
var pagerProps = {

@@ -702,5 +703,6 @@ locale: locale,

style: {},
itemRender: defaultItemRender
itemRender: defaultItemRender,
totalBoundaryShowSizeChanger: 50
};
var _default = Pagination;
exports.default = _default;
{
"name": "rc-pagination",
"version": "2.1.0",
"version": "2.2.0",
"description": "pagination ui component for react",

@@ -5,0 +5,0 @@ "keywords": [

@@ -33,10 +33,6 @@ # rc-pagination

http://localhost:3000/examples/
http://localhost:9001
online example: http://react-component.github.io/pagination/examples/
online example: http://react-component.github.io/pagination/
## Feature
- support ie9,ie9+,chrome,firefox,safari
## Install

@@ -49,5 +45,5 @@

```js
var Pagination = require('rc-pagination');
var React = require('react');
React.render(<Pagination />, container);
import Pagination from 'rc-pagination';
ReactDOM.render(<Pagination />, container);
```

@@ -66,3 +62,4 @@

| onChange | page change callback | Function(current, pageSize) | - |
| showSizeChanger | show pageSize changer | Bool | `false` when total less then 100, `true` when otherwise |
| showSizeChanger | show pageSize changer | Bool | `false` when total less then `totalBoundaryShowSizeChanger`, `true` when otherwise |
| totalBoundaryShowSizeChanger | when total larger than it, `showSizeChanger` will be true | number | 50 |
| pageSizeOptions | specify the sizeChanger selections | Array<String> | ['10', '20', '30', '40'] |

@@ -69,0 +66,0 @@ | onShowSizeChange | pageSize change callback | Function(current, size) | - |

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc