@pisell/materials 1.8.42 → 1.8.43

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.
@@ -49,7 +49,7 @@ const BasicTable = (props) => {
49
49
  let _page = formPagination.page;
50
50
  let _size = formPagination.size || 10;
51
51
  let list = [];
52
- let _total = total;
52
+ let _total = (pagination === null || pagination === void 0 ? void 0 : pagination.total) || (dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) || 0;
53
53
  if (localPagination) {
54
54
  list = calcFilterSort({
55
55
  dataSource,
@@ -71,7 +71,8 @@ const BasicTable = (props) => {
71
71
  formPagination === null || formPagination === void 0 ? void 0 : formPagination.size,
72
72
  filter,
73
73
  sort,
74
- other.columns
74
+ other.columns,
75
+ pagination === null || pagination === void 0 ? void 0 : pagination.total
75
76
  ]);
76
77
  const total = useMemo(() => {
77
78
  if (localPagination) return (_dataSource === null || _dataSource === void 0 ? void 0 : _dataSource.total) || 0;
@@ -51,7 +51,7 @@ const BasicTable = (props) => {
51
51
  let _page = formPagination.page;
52
52
  let _size = formPagination.size || 10;
53
53
  let list = [];
54
- let _total = total;
54
+ let _total = (pagination === null || pagination === void 0 ? void 0 : pagination.total) || (dataSource === null || dataSource === void 0 ? void 0 : dataSource.length) || 0;
55
55
  if (localPagination) {
56
56
  list = require_utils.calcFilterSort({
57
57
  dataSource,
@@ -73,7 +73,8 @@ const BasicTable = (props) => {
73
73
  formPagination === null || formPagination === void 0 ? void 0 : formPagination.size,
74
74
  filter,
75
75
  sort,
76
- other.columns
76
+ other.columns,
77
+ pagination === null || pagination === void 0 ? void 0 : pagination.total
77
78
  ]);
78
79
  const total = (0, react.useMemo)(() => {
79
80
  if (localPagination) return (_dataSource === null || _dataSource === void 0 ? void 0 : _dataSource.total) || 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pisell/materials",
3
- "version": "1.8.42",
3
+ "version": "1.8.43",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.js",
6
6
  "types": "./lib/index.d.ts",