rc-pagination
Advanced tools
Comparing version 5.0.0 to 5.1.0
@@ -6,3 +6,2 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; | ||
var Pager = function Pager(props) { | ||
var _classNames; | ||
var rootPrefixCls = props.rootPrefixCls, | ||
@@ -17,3 +16,3 @@ page = props.page, | ||
var prefixCls = "".concat(rootPrefixCls, "-item"); | ||
var cls = classNames(prefixCls, "".concat(prefixCls, "-").concat(page), (_classNames = {}, _defineProperty(_classNames, "".concat(prefixCls, "-active"), active), _defineProperty(_classNames, "".concat(prefixCls, "-disabled"), !page), _classNames), className); | ||
var cls = classNames(prefixCls, "".concat(prefixCls, "-").concat(page), _defineProperty(_defineProperty({}, "".concat(prefixCls, "-active"), active), "".concat(prefixCls, "-disabled"), !page), className); | ||
var handleClick = function handleClick() { | ||
@@ -20,0 +19,0 @@ onClick(page); |
@@ -28,3 +28,2 @@ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; | ||
var Pagination = function Pagination(props) { | ||
var _classNames5; | ||
var _props$prefixCls = props.prefixCls, | ||
@@ -304,2 +303,3 @@ prefixCls = _props$prefixCls === void 0 ? 'rc-pagination' : _props$prefixCls, | ||
type: "text", | ||
"aria-label": locale.jump_to, | ||
value: internalInputVal, | ||
@@ -429,3 +429,3 @@ disabled: disabled, | ||
} | ||
var cls = classNames(prefixCls, className, (_classNames5 = {}, _defineProperty(_classNames5, "".concat(prefixCls, "-start"), align === 'start'), _defineProperty(_classNames5, "".concat(prefixCls, "-center"), align === 'center'), _defineProperty(_classNames5, "".concat(prefixCls, "-end"), align === 'end'), _defineProperty(_classNames5, "".concat(prefixCls, "-simple"), simple), _defineProperty(_classNames5, "".concat(prefixCls, "-disabled"), disabled), _classNames5)); | ||
var cls = classNames(prefixCls, className, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(prefixCls, "-start"), align === 'start'), "".concat(prefixCls, "-center"), align === 'center'), "".concat(prefixCls, "-end"), align === 'end'), "".concat(prefixCls, "-simple"), simple), "".concat(prefixCls, "-disabled"), disabled)); | ||
return /*#__PURE__*/React.createElement("ul", _extends({ | ||
@@ -432,0 +432,0 @@ className: cls, |
@@ -14,3 +14,2 @@ "use strict"; | ||
var Pager = function Pager(props) { | ||
var _classNames; | ||
var rootPrefixCls = props.rootPrefixCls, | ||
@@ -25,3 +24,3 @@ page = props.page, | ||
var prefixCls = "".concat(rootPrefixCls, "-item"); | ||
var cls = (0, _classnames.default)(prefixCls, "".concat(prefixCls, "-").concat(page), (_classNames = {}, (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-active"), active), (0, _defineProperty2.default)(_classNames, "".concat(prefixCls, "-disabled"), !page), _classNames), className); | ||
var cls = (0, _classnames.default)(prefixCls, "".concat(prefixCls, "-").concat(page), (0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(prefixCls, "-active"), active), "".concat(prefixCls, "-disabled"), !page), className); | ||
var handleClick = function handleClick() { | ||
@@ -28,0 +27,0 @@ onClick(page); |
@@ -38,3 +38,2 @@ "use strict"; | ||
var Pagination = function Pagination(props) { | ||
var _classNames5; | ||
var _props$prefixCls = props.prefixCls, | ||
@@ -314,2 +313,3 @@ prefixCls = _props$prefixCls === void 0 ? 'rc-pagination' : _props$prefixCls, | ||
type: "text", | ||
"aria-label": locale.jump_to, | ||
value: internalInputVal, | ||
@@ -439,3 +439,3 @@ disabled: disabled, | ||
} | ||
var cls = (0, _classnames.default)(prefixCls, className, (_classNames5 = {}, (0, _defineProperty2.default)(_classNames5, "".concat(prefixCls, "-start"), align === 'start'), (0, _defineProperty2.default)(_classNames5, "".concat(prefixCls, "-center"), align === 'center'), (0, _defineProperty2.default)(_classNames5, "".concat(prefixCls, "-end"), align === 'end'), (0, _defineProperty2.default)(_classNames5, "".concat(prefixCls, "-simple"), simple), (0, _defineProperty2.default)(_classNames5, "".concat(prefixCls, "-disabled"), disabled), _classNames5)); | ||
var cls = (0, _classnames.default)(prefixCls, className, (0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)((0, _defineProperty2.default)({}, "".concat(prefixCls, "-start"), align === 'start'), "".concat(prefixCls, "-center"), align === 'center'), "".concat(prefixCls, "-end"), align === 'end'), "".concat(prefixCls, "-simple"), simple), "".concat(prefixCls, "-disabled"), disabled)); | ||
return /*#__PURE__*/_react.default.createElement("ul", (0, _extends2.default)({ | ||
@@ -442,0 +442,0 @@ className: cls, |
{ | ||
"name": "rc-pagination", | ||
"version": "5.0.0", | ||
"version": "5.1.0", | ||
"description": "pagination ui component for react", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
165737
4685