@douyinfe/semi-foundation 2.47.0-beta.0 → 2.47.0
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.
|
@@ -392,9 +392,9 @@ class TableFoundation extends _foundation.default {
|
|
|
392
392
|
}, pagination);
|
|
393
393
|
if (!this._pagerIsControlled()) {
|
|
394
394
|
const total = (0, _get2.default)(propPagination, 'total', dataSource.length);
|
|
395
|
-
const pageSize = (0, _get2.default)(propPagination, 'pageSize', pagination.pageSize);
|
|
396
395
|
const {
|
|
397
|
-
currentPage
|
|
396
|
+
currentPage,
|
|
397
|
+
pageSize
|
|
398
398
|
} = pagination;
|
|
399
399
|
const realTotalPage = Math.ceil(total / pageSize);
|
|
400
400
|
pagination.total = total;
|
|
@@ -385,9 +385,9 @@ class TableFoundation extends BaseFoundation {
|
|
|
385
385
|
}, pagination);
|
|
386
386
|
if (!this._pagerIsControlled()) {
|
|
387
387
|
const total = _get(propPagination, 'total', dataSource.length);
|
|
388
|
-
const pageSize = _get(propPagination, 'pageSize', pagination.pageSize);
|
|
389
388
|
const {
|
|
390
|
-
currentPage
|
|
389
|
+
currentPage,
|
|
390
|
+
pageSize
|
|
391
391
|
} = pagination;
|
|
392
392
|
const realTotalPage = Math.ceil(total / pageSize);
|
|
393
393
|
pagination.total = total;
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@douyinfe/semi-foundation",
|
|
3
|
-
"version": "2.47.0
|
|
3
|
+
"version": "2.47.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build:lib": "node ./scripts/compileLib.js",
|
|
7
7
|
"prepublishOnly": "npm run build:lib"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
|
-
"@douyinfe/semi-animation": "2.47.0
|
|
10
|
+
"@douyinfe/semi-animation": "2.47.0",
|
|
11
11
|
"async-validator": "^3.5.0",
|
|
12
12
|
"classnames": "^2.2.6",
|
|
13
13
|
"date-fns": "^2.29.3",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"*.scss",
|
|
24
24
|
"*.css"
|
|
25
25
|
],
|
|
26
|
-
"gitHead": "
|
|
26
|
+
"gitHead": "6ec26559221487884e981fe44daa300af1a336f6",
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
29
29
|
"@babel/preset-env": "^7.15.8",
|
package/table/foundation.ts
CHANGED
|
@@ -511,8 +511,7 @@ class TableFoundation<RecordType> extends BaseFoundation<TableAdapter<RecordType
|
|
|
511
511
|
|
|
512
512
|
if (!this._pagerIsControlled()) {
|
|
513
513
|
const total = get(propPagination, 'total', dataSource.length);
|
|
514
|
-
const
|
|
515
|
-
const { currentPage } = pagination;
|
|
514
|
+
const { currentPage, pageSize } = pagination;
|
|
516
515
|
|
|
517
516
|
const realTotalPage = Math.ceil(total / pageSize);
|
|
518
517
|
|