@uiw/react-pagination
Advanced tools
Comparing version 4.9.11 to 4.10.0
@@ -22,6 +22,7 @@ "use strict"; | ||
var _excluded = ["className", "prefixCls", "alignment", "size", "total", "pageSize", "current", "onChange", "divider"]; | ||
var _excluded = ["className", "style", "prefixCls", "alignment", "size", "total", "pageSize", "current", "onChange", "divider"]; | ||
function Pagination(props) { | ||
var className = props.className, | ||
style = props.style, | ||
_props$prefixCls = props.prefixCls, | ||
@@ -171,3 +172,6 @@ prefixCls = _props$prefixCls === void 0 ? 'w-pagination' : _props$prefixCls, | ||
return /*#__PURE__*/(0, _jsxRuntime.jsx)("ul", (0, _objectSpread2["default"])((0, _objectSpread2["default"])({ | ||
className: cls | ||
className: cls, | ||
style: (0, _objectSpread2["default"])((0, _objectSpread2["default"])({}, style), {}, { | ||
textAlign: alignment | ||
}) | ||
}, other), {}, { | ||
@@ -174,0 +178,0 @@ children: initPageSoure.map(function (item, idx) { |
import _extends from "@babel/runtime/helpers/extends"; | ||
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose"; | ||
var _excluded = ["className", "prefixCls", "alignment", "size", "total", "pageSize", "current", "onChange", "divider"]; | ||
var _excluded = ["className", "style", "prefixCls", "alignment", "size", "total", "pageSize", "current", "onChange", "divider"]; | ||
import React, { useEffect, useMemo, useState } from 'react'; | ||
@@ -10,2 +10,3 @@ import "./style/index.css"; | ||
className, | ||
style, | ||
prefixCls = 'w-pagination', | ||
@@ -142,3 +143,6 @@ alignment = 'left', | ||
return /*#__PURE__*/_jsx("ul", _extends({ | ||
className: cls | ||
className: cls, | ||
style: _extends({}, style, { | ||
textAlign: alignment | ||
}) | ||
}, other, { | ||
@@ -145,0 +149,0 @@ children: initPageSoure.map((item, idx) => { |
{ | ||
"name": "@uiw/react-pagination", | ||
"version": "4.9.11", | ||
"version": "4.10.0", | ||
"description": "Pagination component", | ||
@@ -47,3 +47,3 @@ "author": "Kenny Wong <wowohoo@qq.com>", | ||
"dependencies": { | ||
"@uiw/utils": "^4.9.11" | ||
"@uiw/utils": "^4.10.0" | ||
}, | ||
@@ -50,0 +50,0 @@ "devDependencies": { |
@@ -27,3 +27,3 @@ Pagination 分页 | ||
<Divider /> | ||
<Pagination current={1} pageSize={10} total={50} /> | ||
<Pagination current={1} alignment="center" pageSize={10} total={50} /> | ||
<Divider /> | ||
@@ -30,0 +30,0 @@ <Pagination current={1} pageSize={10} total={60} divider /> |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
52232
732
Updated@uiw/utils@^4.10.0