ds-web-all 1.0.1-beta.91 → 1.0.1-beta.92
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.
|
@@ -98,10 +98,7 @@ var ComposeManage = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
98
98
|
emptyText = _ref$emptyText === void 0 ? '暂无数据' : _ref$emptyText,
|
|
99
99
|
_ref$staticDataSource = _ref.staticDataSource,
|
|
100
100
|
staticDataSource = _ref$staticDataSource === void 0 ? [] : _ref$staticDataSource,
|
|
101
|
-
|
|
102
|
-
staticFilter = _ref$staticFilter === void 0 ? function () {
|
|
103
|
-
return true;
|
|
104
|
-
} : _ref$staticFilter,
|
|
101
|
+
staticFilter = _ref.staticFilter,
|
|
105
102
|
_ref$staticSearch = _ref.staticSearch,
|
|
106
103
|
staticSearch = _ref$staticSearch === void 0 ? function () {} : _ref$staticSearch,
|
|
107
104
|
_ref$outerLoading = _ref.outerLoading,
|
|
@@ -646,7 +643,7 @@ var ComposeManage = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
|
646
643
|
return staticFilter(search, el, i);
|
|
647
644
|
});
|
|
648
645
|
setTableSource(_toConsumableArray(newData));
|
|
649
|
-
setTotal(newData.length);
|
|
646
|
+
setTotal(newTotal !== null && newTotal !== void 0 ? newTotal : newData.length);
|
|
650
647
|
} else {
|
|
651
648
|
setTableSource(dataSorce);
|
|
652
649
|
setTotal(newTotal !== null && newTotal !== void 0 ? newTotal : dataSorce.length);
|