@daoyi/nmtl-ui 2.0.1-beta.60 → 2.0.1-beta.62
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.
|
@@ -9,7 +9,7 @@ import './withTheme-4417822c.js';
|
|
|
9
9
|
import * as ReactDOM from 'react-dom';
|
|
10
10
|
import ReactDOM__default from 'react-dom';
|
|
11
11
|
import { c as classNames } from './index-66babe67.js';
|
|
12
|
-
import {
|
|
12
|
+
import { IconButton } from '@material-ui/core';
|
|
13
13
|
import { s as styleInject } from './style-inject.es-1f59c1d0.js';
|
|
14
14
|
import './_commonjsHelpers-70de2c37.js';
|
|
15
15
|
|
|
@@ -3615,7 +3615,6 @@ var NmtlPagination = function NmtlPagination(_ref) {
|
|
|
3615
3615
|
pageSize = _ref.pageSize,
|
|
3616
3616
|
total = _ref.total,
|
|
3617
3617
|
_onChange = _ref.onChange;
|
|
3618
|
-
var isMobile = useMediaQuery('(max-width:480px)');
|
|
3619
3618
|
var count = Math.ceil(total / pageSize);
|
|
3620
3619
|
var pages = Array.from(Array(count).keys(), function (x) {
|
|
3621
3620
|
return x + 1;
|
|
@@ -3640,9 +3639,7 @@ var NmtlPagination = function NmtlPagination(_ref) {
|
|
|
3640
3639
|
}
|
|
3641
3640
|
}, /*#__PURE__*/React__default.createElement(default_1$1, {
|
|
3642
3641
|
color: "secondary"
|
|
3643
|
-
})),
|
|
3644
|
-
className: "ntmlPagination__center-page"
|
|
3645
|
-
}, current) : /*#__PURE__*/React__default.createElement(Pagination$1, {
|
|
3642
|
+
})), /*#__PURE__*/React__default.createElement(Pagination$1, {
|
|
3646
3643
|
color: "secondary",
|
|
3647
3644
|
count: count,
|
|
3648
3645
|
boundaryCount: 1,
|
|
@@ -3668,9 +3665,10 @@ var NmtlPagination = function NmtlPagination(_ref) {
|
|
|
3668
3665
|
}, /*#__PURE__*/React__default.createElement("span", null, "\u76EE\u524D\u5728\u7B2C"), /*#__PURE__*/React__default.createElement(NativeSelect$1, {
|
|
3669
3666
|
value: current,
|
|
3670
3667
|
onChange: handlePageSelected
|
|
3671
|
-
}, pages.map(function (page) {
|
|
3668
|
+
}, pages.map(function (page, idx) {
|
|
3672
3669
|
return /*#__PURE__*/React__default.createElement("option", {
|
|
3673
|
-
value: page
|
|
3670
|
+
value: page,
|
|
3671
|
+
key: idx.toString()
|
|
3674
3672
|
}, page);
|
|
3675
3673
|
})), /*#__PURE__*/React__default.createElement("span", null, "\u9801\uFF0C\u5171"), count, /*#__PURE__*/React__default.createElement("span", null, "\u9801"))));
|
|
3676
3674
|
};
|
package/package.json
CHANGED