@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.
- package/build/lowcode/assets-daily.json +11 -11
- package/build/lowcode/assets-dev.json +2 -2
- package/build/lowcode/assets-prod.json +11 -11
- package/build/lowcode/meta.js +1 -1
- package/build/lowcode/render/default/view.js +1 -1
- package/build/lowcode/view.js +1 -1
- package/es/components/table/BasicTable/index.js +3 -2
- package/lib/components/table/BasicTable/index.js +3 -2
- package/package.json +1 -1
|
@@ -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;
|