@zat-design/sisyphus-react 3.6.5-beta.1 → 3.6.5-beta.11
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/es/ProAction/index.js +4 -4
- package/es/ProDownload/index.d.ts +1 -1
- package/es/ProEditTable/components/ActionButton/index.d.ts +1 -1
- package/es/ProEditTable/components/RcTable/BaseTable.d.ts +6 -0
- package/es/ProEditTable/components/RcTable/BaseTable.js +75 -0
- package/es/ProEditTable/components/RcTable/DraggableTable.d.ts +7 -0
- package/es/ProEditTable/components/RcTable/DraggableTable.js +90 -0
- package/es/ProEditTable/components/RcTable/VirtualTable1.d.ts +6 -0
- package/es/ProEditTable/components/RcTable/VirtualTable1.js +86 -0
- package/es/ProEditTable/components/RcTable/index.d.ts +6 -0
- package/es/ProEditTable/components/RcTable/index.js +6 -0
- package/es/ProEditTable/components/RenderField/index.d.ts +1 -1
- package/es/ProEditTable/components/RenderField/index.js +26 -18
- package/es/ProEditTable/components/RenderToolbar/index.d.ts +3 -2
- package/es/ProEditTable/components/RenderToolbar/index.js +2 -2
- package/es/ProEditTable/components/Summary/index.d.ts +1 -1
- package/es/ProEditTable/index.js +33 -55
- package/es/ProEditTable/propsType.d.ts +6 -0
- package/es/ProEditTable/utils/config.d.ts +1 -1
- package/es/ProEditTable/utils/config.js +2 -2
- package/es/ProEditTable/utils/tools.js +3 -3
- package/es/ProEnum/components/Group.d.ts +1 -1
- package/es/ProEnum/components/Tag.d.ts +1 -1
- package/es/ProEnum/index.d.ts +2 -2
- package/es/ProEnum/utils/eventCenter.js +1 -2
- package/es/ProEnum/utils/getEnumLabel.d.ts +1 -1
- package/es/ProForm/components/base/Input/index.d.ts +1 -1
- package/es/ProForm/components/combination/ProCascader/index.d.ts +1 -1
- package/es/ProForm/components/combination/ProCascader/index.js +7 -7
- package/es/ProForm/components/old/InputRange/index.d.ts +1 -1
- package/es/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
- package/es/ProForm/components/old/ProAddress/index.d.ts +1 -2
- package/es/ProForm/components/old/ProRangeBox/index.d.ts +1 -2
- package/es/ProForm/index.d.ts +3 -2
- package/es/ProForm/index.js +3 -17
- package/es/ProForm/utils/index.js +14 -10
- package/es/ProForm/utils/useShouldUpdate.js +9 -1
- package/es/ProForm/utils/useWatch.d.ts +7 -0
- package/es/ProForm/utils/useWatch.js +77 -0
- package/es/ProIcon/utils/index.js +4 -3
- package/es/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +1 -1
- package/es/ProLayout/components/Layout/Menu/OpenMenu/index.js +3 -3
- package/es/ProLayout/components/ProCollapse/index.d.ts +1 -1
- package/es/ProLayout/components/ProFooter/index.d.ts +1 -1
- package/es/ProLayout/components/ProHeader/components/Copy/index.d.ts +1 -1
- package/es/ProLayout/components/ProHeader/index.d.ts +1 -1
- package/es/ProLayout/index.d.ts +4 -4
- package/es/ProLayout/utils/index.js +9 -9
- package/es/ProSelect/components/AdaptiveTooltip.d.ts +1 -1
- package/es/ProSelect/index.d.ts +1 -1
- package/es/ProStep/components/Anchor/index.d.ts +1 -1
- package/es/ProStep/components/Item/index.d.ts +1 -1
- package/es/ProStep/components/Step/index.d.ts +1 -1
- package/es/ProStep/index.d.ts +2 -2
- package/es/ProTable/components/ResizableLine/index.d.ts +1 -1
- package/es/ProTable/components/TableResizable/index.d.ts +1 -1
- package/es/ProTable/index.d.ts +1 -1
- package/es/ProTable/utils.js +4 -4
- package/es/ProTabs/components/Card/index.d.ts +1 -1
- package/es/ProThemeTools/component/PrdTools/index.d.ts +1 -1
- package/es/ProThemeTools/index.d.ts +1 -1
- package/es/ProTooltip/index.d.ts +1 -1
- package/es/ProTree/components/CloseIcon.d.ts +1 -2
- package/es/ProTree/components/List.d.ts +1 -1
- package/es/ProTree/components/ProTree.d.ts +1 -1
- package/es/ProTree/components/ProTreeSelect/index.d.ts +1 -1
- package/es/ProTree/components/ProTreeSelect/index.js +33 -22
- package/es/ProTree/components/SearchTitle.d.ts +1 -1
- package/es/ProTree/components/Tree.d.ts +1 -1
- package/es/ProTree/components/Tree.js +3 -3
- package/es/ProTree/index.d.ts +1 -1
- package/es/ProTree/utils.js +12 -11
- package/es/ProTreeModal/components/Cascader.d.ts +1 -1
- package/es/ProTreeModal/components/CloseIcon.d.ts +1 -2
- package/es/ProTreeModal/components/SearchTitle.d.ts +1 -1
- package/es/ProTreeModal/components/Tree.js +6 -6
- package/es/ProTreeModal/components/Trigger.d.ts +1 -1
- package/es/ProTreeModal/index.d.ts +1 -1
- package/es/ProTreeModal/utils.js +12 -11
- package/es/ProUpload/components/DraggableUploadListItem.d.ts +1 -1
- package/lib/ProAction/index.js +4 -4
- package/lib/ProDownload/index.d.ts +1 -1
- package/lib/ProEditTable/components/ActionButton/index.d.ts +1 -1
- package/lib/ProEditTable/components/RcTable/BaseTable.d.ts +6 -0
- package/lib/ProEditTable/components/RcTable/BaseTable.js +81 -0
- package/lib/ProEditTable/components/RcTable/DraggableTable.d.ts +7 -0
- package/lib/ProEditTable/components/RcTable/DraggableTable.js +96 -0
- package/lib/ProEditTable/components/RcTable/VirtualTable1.d.ts +6 -0
- package/lib/ProEditTable/components/RcTable/VirtualTable1.js +93 -0
- package/lib/ProEditTable/components/RcTable/index.d.ts +6 -0
- package/lib/ProEditTable/components/RcTable/index.js +27 -0
- package/lib/ProEditTable/components/RenderField/index.d.ts +1 -1
- package/lib/ProEditTable/components/RenderField/index.js +26 -18
- package/lib/ProEditTable/components/RenderToolbar/index.d.ts +3 -2
- package/lib/ProEditTable/components/RenderToolbar/index.js +3 -2
- package/lib/ProEditTable/components/Summary/index.d.ts +1 -1
- package/lib/ProEditTable/index.js +32 -52
- package/lib/ProEditTable/propsType.d.ts +6 -0
- package/lib/ProEditTable/utils/config.d.ts +1 -1
- package/lib/ProEditTable/utils/config.js +2 -2
- package/lib/ProEditTable/utils/tools.js +3 -3
- package/lib/ProEnum/components/Group.d.ts +1 -1
- package/lib/ProEnum/components/Tag.d.ts +1 -1
- package/lib/ProEnum/index.d.ts +2 -2
- package/lib/ProEnum/utils/eventCenter.js +1 -2
- package/lib/ProEnum/utils/getEnumLabel.d.ts +1 -1
- package/lib/ProForm/components/base/Input/index.d.ts +1 -1
- package/lib/ProForm/components/combination/ProCascader/index.d.ts +1 -1
- package/lib/ProForm/components/combination/ProCascader/index.js +7 -7
- package/lib/ProForm/components/old/InputRange/index.d.ts +1 -1
- package/lib/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
- package/lib/ProForm/components/old/ProAddress/index.d.ts +1 -2
- package/lib/ProForm/components/old/ProRangeBox/index.d.ts +1 -2
- package/lib/ProForm/index.d.ts +3 -2
- package/lib/ProForm/index.js +2 -16
- package/lib/ProForm/utils/index.js +10 -10
- package/lib/ProForm/utils/useShouldUpdate.js +9 -1
- package/lib/ProForm/utils/useWatch.d.ts +7 -0
- package/lib/ProForm/utils/useWatch.js +87 -0
- package/lib/ProIcon/utils/index.js +3 -3
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +1 -1
- package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.js +3 -3
- package/lib/ProLayout/components/ProCollapse/index.d.ts +1 -1
- package/lib/ProLayout/components/ProFooter/index.d.ts +1 -1
- package/lib/ProLayout/components/ProHeader/components/Copy/index.d.ts +1 -1
- package/lib/ProLayout/components/ProHeader/index.d.ts +1 -1
- package/lib/ProLayout/index.d.ts +4 -4
- package/lib/ProLayout/utils/index.js +9 -9
- package/lib/ProSelect/components/AdaptiveTooltip.d.ts +1 -1
- package/lib/ProSelect/index.d.ts +1 -1
- package/lib/ProStep/components/Anchor/index.d.ts +1 -1
- package/lib/ProStep/components/Item/index.d.ts +1 -1
- package/lib/ProStep/components/Step/index.d.ts +1 -1
- package/lib/ProStep/index.d.ts +2 -2
- package/lib/ProTable/components/ResizableLine/index.d.ts +1 -1
- package/lib/ProTable/components/TableResizable/index.d.ts +1 -1
- package/lib/ProTable/index.d.ts +1 -1
- package/lib/ProTable/utils.js +4 -4
- package/lib/ProTabs/components/Card/index.d.ts +1 -1
- package/lib/ProThemeTools/component/PrdTools/index.d.ts +1 -1
- package/lib/ProThemeTools/index.d.ts +1 -1
- package/lib/ProTooltip/index.d.ts +1 -1
- package/lib/ProTree/components/CloseIcon.d.ts +1 -2
- package/lib/ProTree/components/List.d.ts +1 -1
- package/lib/ProTree/components/ProTree.d.ts +1 -1
- package/lib/ProTree/components/ProTreeSelect/index.d.ts +1 -1
- package/lib/ProTree/components/ProTreeSelect/index.js +33 -22
- package/lib/ProTree/components/SearchTitle.d.ts +1 -1
- package/lib/ProTree/components/Tree.d.ts +1 -1
- package/lib/ProTree/components/Tree.js +3 -3
- package/lib/ProTree/index.d.ts +1 -1
- package/lib/ProTree/utils.js +11 -11
- package/lib/ProTreeModal/components/Cascader.d.ts +1 -1
- package/lib/ProTreeModal/components/CloseIcon.d.ts +1 -2
- package/lib/ProTreeModal/components/SearchTitle.d.ts +1 -1
- package/lib/ProTreeModal/components/Tree.js +6 -6
- package/lib/ProTreeModal/components/Trigger.d.ts +1 -1
- package/lib/ProTreeModal/index.d.ts +1 -1
- package/lib/ProTreeModal/utils.js +11 -11
- package/lib/ProUpload/components/DraggableUploadListItem.d.ts +1 -1
- package/package.json +3 -2
package/es/ProTreeModal/utils.js
CHANGED
|
@@ -57,7 +57,7 @@ export function getAllKeys(data, fieldNames) {
|
|
|
57
57
|
* @param fieldNames
|
|
58
58
|
* @returns
|
|
59
59
|
*/
|
|
60
|
-
|
|
60
|
+
var _getParentKey = function getParentKey(key, tree, fieldNames) {
|
|
61
61
|
var parentKey;
|
|
62
62
|
for (var i = 0; i < tree.length; i++) {
|
|
63
63
|
var node = tree[i];
|
|
@@ -66,16 +66,17 @@ export var getParentKey = function getParentKey(key, tree, fieldNames) {
|
|
|
66
66
|
return item[fieldNames.value] === key;
|
|
67
67
|
})) {
|
|
68
68
|
parentKey = node[fieldNames.value];
|
|
69
|
-
} else if (
|
|
70
|
-
parentKey =
|
|
69
|
+
} else if (_getParentKey(key, node[fieldNames.children], fieldNames)) {
|
|
70
|
+
parentKey = _getParentKey(key, node[fieldNames.children], fieldNames);
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
return parentKey;
|
|
75
75
|
};
|
|
76
|
+
export { _getParentKey as getParentKey };
|
|
76
77
|
export function findTreeNodeByKey(treeData, key, fieldNames) {
|
|
77
78
|
var result = [];
|
|
78
|
-
var
|
|
79
|
+
var _traverse = function traverse(node, parents) {
|
|
79
80
|
if (node[fieldNames.value] === key) {
|
|
80
81
|
result.push.apply(result, [node].concat(_toConsumableArray(parents)));
|
|
81
82
|
return true;
|
|
@@ -86,7 +87,7 @@ export function findTreeNodeByKey(treeData, key, fieldNames) {
|
|
|
86
87
|
try {
|
|
87
88
|
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
88
89
|
var child = _step.value;
|
|
89
|
-
if (
|
|
90
|
+
if (_traverse(child, [node].concat(_toConsumableArray(parents)))) {
|
|
90
91
|
return true;
|
|
91
92
|
}
|
|
92
93
|
}
|
|
@@ -102,7 +103,7 @@ export function findTreeNodeByKey(treeData, key, fieldNames) {
|
|
|
102
103
|
try {
|
|
103
104
|
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
104
105
|
var node = _step2.value;
|
|
105
|
-
|
|
106
|
+
_traverse(node, []);
|
|
106
107
|
}
|
|
107
108
|
} catch (err) {
|
|
108
109
|
_iterator2.e(err);
|
|
@@ -121,23 +122,23 @@ export function filterCheckedNodes(data, checkedKeys) {
|
|
|
121
122
|
var searchStr = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';
|
|
122
123
|
var fieldNames = arguments.length > 3 ? arguments[3] : undefined;
|
|
123
124
|
var result = [];
|
|
124
|
-
var
|
|
125
|
+
var _traverse2 = function traverse(node) {
|
|
125
126
|
var _node$fieldNames$chil3;
|
|
126
127
|
var title = node[fieldNames.value] + node[fieldNames.label];
|
|
127
128
|
if (!searchStr) {
|
|
128
129
|
if (checkedKeys.includes(node[fieldNames.value])) {
|
|
129
130
|
var _node$fieldNames$chil;
|
|
130
|
-
var _children = (node === null || node === void 0 ? void 0 : (_node$fieldNames$chil = node[fieldNames.children]) === null || _node$fieldNames$chil === void 0 ? void 0 : _node$fieldNames$chil.map(
|
|
131
|
+
var _children = (node === null || node === void 0 ? void 0 : (_node$fieldNames$chil = node[fieldNames.children]) === null || _node$fieldNames$chil === void 0 ? void 0 : _node$fieldNames$chil.map(_traverse2).filter(Boolean)) || [];
|
|
131
132
|
return _objectSpread(_objectSpread({}, node), {}, _defineProperty({}, fieldNames.children, _children));
|
|
132
133
|
}
|
|
133
134
|
} else if (title.indexOf(searchStr) > -1) {
|
|
134
135
|
var _node$fieldNames$chil2;
|
|
135
|
-
var _children2 = ((_node$fieldNames$chil2 = node[fieldNames.children]) === null || _node$fieldNames$chil2 === void 0 ? void 0 : _node$fieldNames$chil2.map(
|
|
136
|
+
var _children2 = ((_node$fieldNames$chil2 = node[fieldNames.children]) === null || _node$fieldNames$chil2 === void 0 ? void 0 : _node$fieldNames$chil2.map(_traverse2).filter(Boolean)) || [];
|
|
136
137
|
return _objectSpread(_objectSpread({}, node), {}, {
|
|
137
138
|
children: _children2
|
|
138
139
|
});
|
|
139
140
|
}
|
|
140
|
-
var children = (_node$fieldNames$chil3 = node[fieldNames.children]) === null || _node$fieldNames$chil3 === void 0 ? void 0 : _node$fieldNames$chil3.map(
|
|
141
|
+
var children = (_node$fieldNames$chil3 = node[fieldNames.children]) === null || _node$fieldNames$chil3 === void 0 ? void 0 : _node$fieldNames$chil3.map(_traverse2).filter(Boolean);
|
|
141
142
|
if (children && children.length > 0) {
|
|
142
143
|
return _objectSpread(_objectSpread({}, node), {}, _defineProperty({}, fieldNames.children, children));
|
|
143
144
|
}
|
|
@@ -149,7 +150,7 @@ export function filterCheckedNodes(data, checkedKeys) {
|
|
|
149
150
|
try {
|
|
150
151
|
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
|
|
151
152
|
var node = _step3.value;
|
|
152
|
-
var filtered =
|
|
153
|
+
var filtered = _traverse2(node);
|
|
153
154
|
if (filtered) {
|
|
154
155
|
result.push(filtered);
|
|
155
156
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DraggableUploadListItemProps } from '../propsType';
|
|
2
|
-
export declare const DraggableUploadListItem: ({ file, children }: DraggableUploadListItemProps) => JSX.Element;
|
|
2
|
+
export declare const DraggableUploadListItem: ({ file, children }: DraggableUploadListItemProps) => import("react/jsx-runtime").JSX.Element;
|
package/lib/ProAction/index.js
CHANGED
|
@@ -43,7 +43,7 @@ var ProAction = function ProAction(props) {
|
|
|
43
43
|
var index = state.index,
|
|
44
44
|
servicesArray = state.servicesArray;
|
|
45
45
|
var length = config.length;
|
|
46
|
-
var
|
|
46
|
+
var _onActionRun = /*#__PURE__*/function () {
|
|
47
47
|
var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(currentIndex, array) {
|
|
48
48
|
var _actionProps$useReque, _options$onSuccess, _newServicesArray$cur, _newServicesArray$cur2, _newServicesArray$cur3, _actionProps$onAction, _actionProps$continue;
|
|
49
49
|
var actionProps, newServicesArray, _ref2, service, options, transformResponse, res, data, open, _newServicesArray$cur4, _newServicesArray$cur5, _newServicesArray$cur6, list, errorTitle, isContinue;
|
|
@@ -140,7 +140,7 @@ var ProAction = function ProAction(props) {
|
|
|
140
140
|
return _context.abrupt("return", false);
|
|
141
141
|
case 44:
|
|
142
142
|
if (currentIndex + 1 < length) {
|
|
143
|
-
|
|
143
|
+
_onActionRun(currentIndex + 1, newServicesArray);
|
|
144
144
|
} else {
|
|
145
145
|
setState({
|
|
146
146
|
loading: false
|
|
@@ -158,7 +158,7 @@ var ProAction = function ProAction(props) {
|
|
|
158
158
|
}();
|
|
159
159
|
var ChildContent = /*#__PURE__*/_react.default.cloneElement(children, {
|
|
160
160
|
onClick: function onClick() {
|
|
161
|
-
|
|
161
|
+
_onActionRun(0, []);
|
|
162
162
|
},
|
|
163
163
|
loading: state.loading
|
|
164
164
|
});
|
|
@@ -170,7 +170,7 @@ var ProAction = function ProAction(props) {
|
|
|
170
170
|
return (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
171
171
|
children: [((_config$ = config[0]) === null || _config$ === void 0 ? void 0 : _config$.mode) === 'confirm' ? (0, _jsxRuntime.jsx)(_antd.Popconfirm, {
|
|
172
172
|
onConfirm: function onConfirm() {
|
|
173
|
-
return
|
|
173
|
+
return _onActionRun(0, []);
|
|
174
174
|
},
|
|
175
175
|
title: ((_config$2 = config[0]) === null || _config$2 === void 0 ? void 0 : _config$2.title) || (_locale.default === null || _locale.default === void 0 ? void 0 : (_locale$ProAction2 = _locale.default.ProAction) === null || _locale$ProAction2 === void 0 ? void 0 : _locale$ProAction2.defaultTitle),
|
|
176
176
|
children: children
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { IProDownloadProps } from './propsType';
|
|
2
2
|
declare const ProDownload: {
|
|
3
|
-
(props: IProDownloadProps): JSX.Element;
|
|
3
|
+
(props: IProDownloadProps): import("react/jsx-runtime").JSX.Element;
|
|
4
4
|
downLoadRequest: import("./utils").DownloadRequestProps;
|
|
5
5
|
};
|
|
6
6
|
export default ProDownload;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const ActionButton: ({ record, index, config, btnConfig }: any) => JSX.Element;
|
|
1
|
+
declare const ActionButton: ({ record, index, config, btnConfig }: any) => import("react/jsx-runtime").JSX.Element;
|
|
2
2
|
export default ActionButton;
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
9
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
var _antd = require("antd");
|
|
12
|
+
var _react = require("react");
|
|
13
|
+
var _excluded = ["tableProps"];
|
|
14
|
+
var BaseTable = function BaseTable(_ref) {
|
|
15
|
+
var _value$;
|
|
16
|
+
var tableProps = _ref.tableProps,
|
|
17
|
+
resetProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
18
|
+
var value = tableProps.value,
|
|
19
|
+
headerRender = tableProps.headerRender,
|
|
20
|
+
tableRef = tableProps.tableRef,
|
|
21
|
+
className = tableProps.className,
|
|
22
|
+
columns = tableProps.columns,
|
|
23
|
+
renderRowSelection = tableProps.renderRowSelection,
|
|
24
|
+
rowClassName = tableProps.rowClassName,
|
|
25
|
+
disabled = tableProps.disabled,
|
|
26
|
+
virtualKey = tableProps.virtualKey,
|
|
27
|
+
editingKeys = tableProps.editingKeys,
|
|
28
|
+
isHideCheckBox = tableProps.isHideCheckBox,
|
|
29
|
+
rowDraggable = tableProps.rowDraggable,
|
|
30
|
+
pagination = tableProps.pagination,
|
|
31
|
+
scroll = tableProps.scroll,
|
|
32
|
+
summary = tableProps.summary,
|
|
33
|
+
page = tableProps.page,
|
|
34
|
+
formatMessage = tableProps.formatMessage,
|
|
35
|
+
locale = tableProps.locale,
|
|
36
|
+
handlePageChange = tableProps.handlePageChange;
|
|
37
|
+
return (0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
38
|
+
children: [headerRender ? (0, _jsxRuntime.jsx)("div", {
|
|
39
|
+
className: "pro-edit-table-header",
|
|
40
|
+
children: typeof headerRender === 'function' ? headerRender() : headerRender
|
|
41
|
+
}) : null, (0, _jsxRuntime.jsx)(_antd.Table, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
42
|
+
ref: tableRef,
|
|
43
|
+
className: className,
|
|
44
|
+
dataSource: (value === null || value === void 0 ? void 0 : (_value$ = value[0]) === null || _value$ === void 0 ? void 0 : _value$.rowKey) ? value : undefined,
|
|
45
|
+
columns: columns,
|
|
46
|
+
rowSelection: renderRowSelection(),
|
|
47
|
+
rowClassName: rowClassName,
|
|
48
|
+
onRow: function onRow() {
|
|
49
|
+
return {
|
|
50
|
+
disabled: disabled || virtualKey && !!editingKeys.length,
|
|
51
|
+
'data-hide': isHideCheckBox,
|
|
52
|
+
onClick: function onClick() {},
|
|
53
|
+
rowDraggable: rowDraggable
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
}, resetProps), {}, {
|
|
57
|
+
pagination: pagination ? (0, _objectSpread2.default)({
|
|
58
|
+
current: page.pageNum,
|
|
59
|
+
pageSize: page.pageSize,
|
|
60
|
+
showSizeChanger: false,
|
|
61
|
+
showQuickJumper: true,
|
|
62
|
+
total: value === null || value === void 0 ? void 0 : value.length,
|
|
63
|
+
showTotal: function showTotal(total) {
|
|
64
|
+
var _locale$ProEditTable;
|
|
65
|
+
if (!total) return;
|
|
66
|
+
return formatMessage(locale === null || locale === void 0 ? void 0 : (_locale$ProEditTable = locale.ProEditTable) === null || _locale$ProEditTable === void 0 ? void 0 : _locale$ProEditTable.total, {
|
|
67
|
+
total: total
|
|
68
|
+
});
|
|
69
|
+
},
|
|
70
|
+
onChange: handlePageChange
|
|
71
|
+
}, pagination) : false,
|
|
72
|
+
rowKey: "rowKey",
|
|
73
|
+
scroll: {
|
|
74
|
+
x: scroll === null || scroll === void 0 ? void 0 : scroll.x,
|
|
75
|
+
y: (value === null || value === void 0 ? void 0 : value.length) ? scroll === null || scroll === void 0 ? void 0 : scroll.y : undefined
|
|
76
|
+
},
|
|
77
|
+
summary: summary
|
|
78
|
+
}))]
|
|
79
|
+
});
|
|
80
|
+
};
|
|
81
|
+
var _default = exports.default = /*#__PURE__*/(0, _react.memo)(BaseTable);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
declare const _default: import("react").MemoExoticComponent<({ tableProps, draggableProps, ...resetProps }: {
|
|
3
|
+
[x: string]: any;
|
|
4
|
+
tableProps: any;
|
|
5
|
+
draggableProps: any;
|
|
6
|
+
}) => import("react/jsx-runtime").JSX.Element>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
9
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
var _antd = require("antd");
|
|
12
|
+
var _react = require("react");
|
|
13
|
+
var _index = require("../index");
|
|
14
|
+
var _excluded = ["tableProps", "draggableProps"];
|
|
15
|
+
var DraggableTable = function DraggableTable(_ref) {
|
|
16
|
+
var _value$;
|
|
17
|
+
var tableProps = _ref.tableProps,
|
|
18
|
+
draggableProps = _ref.draggableProps,
|
|
19
|
+
resetProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
20
|
+
var value = tableProps.value,
|
|
21
|
+
headerRender = tableProps.headerRender,
|
|
22
|
+
tableRef = tableProps.tableRef,
|
|
23
|
+
className = tableProps.className,
|
|
24
|
+
columns = tableProps.columns,
|
|
25
|
+
renderRowSelection = tableProps.renderRowSelection,
|
|
26
|
+
rowClassName = tableProps.rowClassName,
|
|
27
|
+
disabled = tableProps.disabled,
|
|
28
|
+
virtualKey = tableProps.virtualKey,
|
|
29
|
+
editingKeys = tableProps.editingKeys,
|
|
30
|
+
isHideCheckBox = tableProps.isHideCheckBox,
|
|
31
|
+
rowDraggable = tableProps.rowDraggable,
|
|
32
|
+
pagination = tableProps.pagination,
|
|
33
|
+
scroll = tableProps.scroll,
|
|
34
|
+
summary = tableProps.summary,
|
|
35
|
+
page = tableProps.page,
|
|
36
|
+
formatMessage = tableProps.formatMessage,
|
|
37
|
+
locale = tableProps.locale,
|
|
38
|
+
handlePageChange = tableProps.handlePageChange;
|
|
39
|
+
var onChange = draggableProps.onChange,
|
|
40
|
+
onDrag = draggableProps.onDrag,
|
|
41
|
+
draggable = draggableProps.draggable;
|
|
42
|
+
return (0, _jsxRuntime.jsxs)(_index.DndWrapper, {
|
|
43
|
+
value: value,
|
|
44
|
+
onChange: onChange,
|
|
45
|
+
onDrag: onDrag,
|
|
46
|
+
disabled: disabled,
|
|
47
|
+
draggable: draggable,
|
|
48
|
+
children: [headerRender ? (0, _jsxRuntime.jsx)("div", {
|
|
49
|
+
className: "pro-edit-table-header",
|
|
50
|
+
children: typeof headerRender === 'function' ? headerRender() : headerRender
|
|
51
|
+
}) : null, (0, _jsxRuntime.jsx)(_antd.Table, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
52
|
+
ref: tableRef,
|
|
53
|
+
className: className,
|
|
54
|
+
dataSource: (value === null || value === void 0 ? void 0 : (_value$ = value[0]) === null || _value$ === void 0 ? void 0 : _value$.rowKey) ? value : undefined,
|
|
55
|
+
columns: columns,
|
|
56
|
+
rowSelection: renderRowSelection(),
|
|
57
|
+
rowClassName: rowClassName,
|
|
58
|
+
components: {
|
|
59
|
+
body: {
|
|
60
|
+
row: _index.Row
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
onRow: function onRow() {
|
|
64
|
+
return {
|
|
65
|
+
disabled: disabled || virtualKey && !!editingKeys.length,
|
|
66
|
+
'data-hide': isHideCheckBox,
|
|
67
|
+
onClick: function onClick() {},
|
|
68
|
+
rowDraggable: rowDraggable
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
}, resetProps), {}, {
|
|
72
|
+
pagination: pagination ? (0, _objectSpread2.default)({
|
|
73
|
+
current: page.pageNum,
|
|
74
|
+
pageSize: page.pageSize,
|
|
75
|
+
showSizeChanger: false,
|
|
76
|
+
showQuickJumper: true,
|
|
77
|
+
total: value === null || value === void 0 ? void 0 : value.length,
|
|
78
|
+
showTotal: function showTotal(total) {
|
|
79
|
+
var _locale$ProEditTable;
|
|
80
|
+
if (!total) return;
|
|
81
|
+
return formatMessage(locale === null || locale === void 0 ? void 0 : (_locale$ProEditTable = locale.ProEditTable) === null || _locale$ProEditTable === void 0 ? void 0 : _locale$ProEditTable.total, {
|
|
82
|
+
total: total
|
|
83
|
+
});
|
|
84
|
+
},
|
|
85
|
+
onChange: handlePageChange
|
|
86
|
+
}, pagination) : false,
|
|
87
|
+
rowKey: "rowKey",
|
|
88
|
+
scroll: {
|
|
89
|
+
x: scroll === null || scroll === void 0 ? void 0 : scroll.x,
|
|
90
|
+
y: (value === null || value === void 0 ? void 0 : value.length) ? scroll === null || scroll === void 0 ? void 0 : scroll.y : undefined
|
|
91
|
+
},
|
|
92
|
+
summary: summary
|
|
93
|
+
}))]
|
|
94
|
+
});
|
|
95
|
+
};
|
|
96
|
+
var _default = exports.default = /*#__PURE__*/(0, _react.memo)(DraggableTable);
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
9
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
|
+
var _antd = require("antd5");
|
|
12
|
+
var _react = require("react");
|
|
13
|
+
var _excluded = ["tableProps"];
|
|
14
|
+
var VirtualTable1 = function VirtualTable1(_ref) {
|
|
15
|
+
var _value$;
|
|
16
|
+
var tableProps = _ref.tableProps,
|
|
17
|
+
resetProps = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
18
|
+
var value = tableProps.value,
|
|
19
|
+
headerRender = tableProps.headerRender,
|
|
20
|
+
tableRef = tableProps.tableRef,
|
|
21
|
+
className = tableProps.className,
|
|
22
|
+
columns = tableProps.columns,
|
|
23
|
+
renderRowSelection = tableProps.renderRowSelection,
|
|
24
|
+
rowClassName = tableProps.rowClassName,
|
|
25
|
+
disabled = tableProps.disabled,
|
|
26
|
+
virtualKey = tableProps.virtualKey,
|
|
27
|
+
editingKeys = tableProps.editingKeys,
|
|
28
|
+
isHideCheckBox = tableProps.isHideCheckBox,
|
|
29
|
+
rowDraggable = tableProps.rowDraggable,
|
|
30
|
+
pagination = tableProps.pagination,
|
|
31
|
+
scroll = tableProps.scroll,
|
|
32
|
+
summary = tableProps.summary,
|
|
33
|
+
page = tableProps.page,
|
|
34
|
+
formatMessage = tableProps.formatMessage,
|
|
35
|
+
locale = tableProps.locale,
|
|
36
|
+
handlePageChange = tableProps.handlePageChange,
|
|
37
|
+
empty = tableProps.empty;
|
|
38
|
+
return (0, _jsxRuntime.jsxs)(_antd.ConfigProvider, {
|
|
39
|
+
renderEmpty: (value === null || value === void 0 ? void 0 : value.length) ? undefined : empty,
|
|
40
|
+
children: [headerRender ? (0, _jsxRuntime.jsx)("div", {
|
|
41
|
+
className: "pro-edit-table-header",
|
|
42
|
+
children: typeof headerRender === 'function' ? headerRender() : headerRender
|
|
43
|
+
}) : null, (0, _jsxRuntime.jsx)(_antd.Table, (0, _objectSpread2.default)((0, _objectSpread2.default)({
|
|
44
|
+
virtual: true,
|
|
45
|
+
ref: tableRef,
|
|
46
|
+
className: className,
|
|
47
|
+
dataSource: (value === null || value === void 0 ? void 0 : (_value$ = value[0]) === null || _value$ === void 0 ? void 0 : _value$.rowKey) ? value : undefined,
|
|
48
|
+
columns: columns.map(function (item) {
|
|
49
|
+
if (!(item === null || item === void 0 ? void 0 : item.width) || typeof item.width === 'number') {
|
|
50
|
+
return item;
|
|
51
|
+
}
|
|
52
|
+
return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, item), {}, {
|
|
53
|
+
width: parseInt(item === null || item === void 0 ? void 0 : item.width, 10)
|
|
54
|
+
});
|
|
55
|
+
}),
|
|
56
|
+
rowSelection: (0, _objectSpread2.default)((0, _objectSpread2.default)({}, renderRowSelection()), {}, {
|
|
57
|
+
columnWidth: 40
|
|
58
|
+
}),
|
|
59
|
+
rowClassName: rowClassName,
|
|
60
|
+
onRow: function onRow() {
|
|
61
|
+
return {
|
|
62
|
+
disabled: disabled || virtualKey && !!editingKeys.length,
|
|
63
|
+
'data-hide': isHideCheckBox,
|
|
64
|
+
onClick: function onClick() {},
|
|
65
|
+
rowDraggable: rowDraggable
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
}, resetProps), {}, {
|
|
69
|
+
pagination: pagination ? (0, _objectSpread2.default)({
|
|
70
|
+
current: page.pageNum,
|
|
71
|
+
pageSize: page.pageSize,
|
|
72
|
+
showSizeChanger: false,
|
|
73
|
+
showQuickJumper: true,
|
|
74
|
+
total: value === null || value === void 0 ? void 0 : value.length,
|
|
75
|
+
showTotal: function showTotal(total) {
|
|
76
|
+
var _locale$ProEditTable;
|
|
77
|
+
if (!total) return;
|
|
78
|
+
return formatMessage(locale === null || locale === void 0 ? void 0 : (_locale$ProEditTable = locale.ProEditTable) === null || _locale$ProEditTable === void 0 ? void 0 : _locale$ProEditTable.total, {
|
|
79
|
+
total: total
|
|
80
|
+
});
|
|
81
|
+
},
|
|
82
|
+
onChange: handlePageChange
|
|
83
|
+
}, pagination) : false,
|
|
84
|
+
rowKey: "rowKey",
|
|
85
|
+
scroll: {
|
|
86
|
+
x: scroll === null || scroll === void 0 ? void 0 : scroll.x,
|
|
87
|
+
y: (value === null || value === void 0 ? void 0 : value.length) ? scroll === null || scroll === void 0 ? void 0 : scroll.y : undefined
|
|
88
|
+
},
|
|
89
|
+
summary: summary
|
|
90
|
+
}))]
|
|
91
|
+
});
|
|
92
|
+
};
|
|
93
|
+
var _default = exports.default = /*#__PURE__*/(0, _react.memo)(VirtualTable1);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
Object.defineProperty(exports, "BaseTable", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function get() {
|
|
10
|
+
return _BaseTable.default;
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
Object.defineProperty(exports, "DraggableTable", {
|
|
14
|
+
enumerable: true,
|
|
15
|
+
get: function get() {
|
|
16
|
+
return _DraggableTable.default;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports, "VirtualTable1", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function get() {
|
|
22
|
+
return _VirtualTable.default;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
var _BaseTable = _interopRequireDefault(require("./BaseTable"));
|
|
26
|
+
var _DraggableTable = _interopRequireDefault(require("./DraggableTable"));
|
|
27
|
+
var _VirtualTable = _interopRequireDefault(require("./VirtualTable1"));
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const RenderField: ({ text: value, record, index, column, config }: any) => JSX.Element;
|
|
1
|
+
declare const RenderField: ({ text: value, record, index, column, config }: any) => import("react/jsx-runtime").JSX.Element;
|
|
2
2
|
export default RenderField;
|
|
@@ -30,7 +30,7 @@ var _useListChanged3 = require("../../../ProForm/utils/useListChanged");
|
|
|
30
30
|
var _useRules = _interopRequireDefault(require("../../../ProForm/utils/useRules"));
|
|
31
31
|
var _utils = require("../../../ProForm/utils");
|
|
32
32
|
var _ConfirmWrapper = _interopRequireDefault(require("../../../ProForm/components/render/ConfirmWrapper"));
|
|
33
|
-
var _excluded = ["type", "valueType", "names", "fieldProps", "labelRequired", "editRender", "component", "viewRender", "title", "originTitle", "label", "dataIndex", "formItemProps", "isEditable", "required", "rules", "equalWith", "className", "trim", "confirm"];
|
|
33
|
+
var _excluded = ["type", "valueType", "names", "fieldProps", "labelRequired", "editRender", "component", "viewRender", "title", "originTitle", "label", "dataIndex", "formItemProps", "isEditable", "required", "rules", "equalWith", "className", "trim", "confirm", "validateTrigger"];
|
|
34
34
|
/* eslint-disable prefer-destructuring */
|
|
35
35
|
/* eslint-disable prefer-const */
|
|
36
36
|
var RenderField = function RenderField(_ref) {
|
|
@@ -63,6 +63,8 @@ var RenderField = function RenderField(_ref) {
|
|
|
63
63
|
className = column.className,
|
|
64
64
|
trim = column.trim,
|
|
65
65
|
confirm = column.confirm,
|
|
66
|
+
_column$validateTrigg = column.validateTrigger,
|
|
67
|
+
validateTrigger = _column$validateTrigg === void 0 ? ['onChange', 'onBlur', 'onSumbit'] : _column$validateTrigg,
|
|
66
68
|
resetProps = (0, _objectWithoutProperties2.default)(column, _excluded);
|
|
67
69
|
// editRender弃用使用component同ProForm
|
|
68
70
|
var _editRender = component || editRender;
|
|
@@ -161,7 +163,9 @@ var RenderField = function RenderField(_ref) {
|
|
|
161
163
|
// 分离form item参数,防止对于参数透传(如onChange,防止重复触发)并优先级高于 _fieldProps 内部参数
|
|
162
164
|
var formItemChildProps = (0, _objectSpread2.default)({}, _fieldProps);
|
|
163
165
|
// 允许formItem的属性放在column最外层
|
|
164
|
-
var _formItemProps = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, resetProps), internalRule)
|
|
166
|
+
var _formItemProps = (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, resetProps), internalRule), {}, {
|
|
167
|
+
validateTrigger: validateTrigger
|
|
168
|
+
});
|
|
165
169
|
if (['Switch', 'SwitchCheckbox'].includes(type)) {
|
|
166
170
|
_formItemProps.valuePropName = 'checked';
|
|
167
171
|
valueType = 'switch';
|
|
@@ -378,15 +382,17 @@ var RenderField = function RenderField(_ref) {
|
|
|
378
382
|
case 29:
|
|
379
383
|
// 判断属性是否变动
|
|
380
384
|
form.setFieldValue(rowPath, row);
|
|
381
|
-
if (
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
385
|
+
if (validateTrigger && validateTrigger.includes('onChange')) {
|
|
386
|
+
if (!(0, _lodash.isEqual)(orgRow, row)) {
|
|
387
|
+
diff = (0, _tools.difference)(row, orgRow) || {};
|
|
388
|
+
validateFieldKeys = (_Object$keys = Object.keys(diff)) === null || _Object$keys === void 0 ? void 0 : (_Object$keys$map = _Object$keys.map) === null || _Object$keys$map === void 0 ? void 0 : _Object$keys$map.call(_Object$keys, function (key) {
|
|
389
|
+
return [].concat((0, _toConsumableArray2.default)(rowPath), [key]);
|
|
390
|
+
});
|
|
391
|
+
if (validateFieldKeys === null || validateFieldKeys === void 0 ? void 0 : validateFieldKeys.length) {
|
|
392
|
+
setTimeout(function () {
|
|
393
|
+
form.validateFields(validateFieldKeys);
|
|
394
|
+
}, 100);
|
|
395
|
+
}
|
|
390
396
|
}
|
|
391
397
|
}
|
|
392
398
|
setState({
|
|
@@ -450,13 +456,15 @@ var RenderField = function RenderField(_ref) {
|
|
|
450
456
|
case 16:
|
|
451
457
|
// 判断属性是否变动
|
|
452
458
|
form.setFieldValue(rowPath, row);
|
|
453
|
-
if (
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
459
|
+
if (validateTrigger && validateTrigger.includes('onBlur')) {
|
|
460
|
+
if (!(0, _lodash.isEqual)(orgRow, row)) {
|
|
461
|
+
diff = (0, _tools.difference)(row, orgRow) || {};
|
|
462
|
+
validateFieldKeys = (_Object$keys2 = Object.keys(diff)) === null || _Object$keys2 === void 0 ? void 0 : (_Object$keys2$map = _Object$keys2.map) === null || _Object$keys2$map === void 0 ? void 0 : _Object$keys2$map.call(_Object$keys2, function (key) {
|
|
463
|
+
return [].concat((0, _toConsumableArray2.default)(rowPath), [key]);
|
|
464
|
+
});
|
|
465
|
+
if (validateFieldKeys === null || validateFieldKeys === void 0 ? void 0 : validateFieldKeys.length) {
|
|
466
|
+
debounceValidate(validateFieldKeys);
|
|
467
|
+
}
|
|
460
468
|
}
|
|
461
469
|
}
|
|
462
470
|
if (!isCell) {
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: React.MemoExoticComponent<(config: any) => import("react/jsx-runtime").JSX.Element>;
|
|
3
|
+
export default _default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
3
|
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
5
|
Object.defineProperty(exports, "__esModule", {
|
|
5
6
|
value: true
|
|
6
7
|
});
|
|
@@ -11,7 +12,7 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
|
|
|
11
12
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
12
13
|
var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers/toConsumableArray"));
|
|
13
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
-
var _react =
|
|
15
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
15
16
|
var _antd = require("antd");
|
|
16
17
|
var _config = require("../../utils/config");
|
|
17
18
|
var _ActionButton = _interopRequireDefault(require("../ActionButton"));
|
|
@@ -140,4 +141,4 @@ var RenderToolbar = function RenderToolbar(config) {
|
|
|
140
141
|
}) : renderToolbarBtns()
|
|
141
142
|
});
|
|
142
143
|
};
|
|
143
|
-
var _default = exports.default = RenderToolbar;
|
|
144
|
+
var _default = exports.default = /*#__PURE__*/(0, _react.memo)(RenderToolbar);
|
|
@@ -8,5 +8,5 @@ interface SummaryProps<T = any> {
|
|
|
8
8
|
};
|
|
9
9
|
rowSelection: any;
|
|
10
10
|
}
|
|
11
|
-
declare const Summary: ({ data, summary, rowSelection, }: SummaryProps) => JSX.Element;
|
|
11
|
+
declare const Summary: ({ data, summary, rowSelection, }: SummaryProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
12
|
export default Summary;
|