@zat-design/sisyphus-react 3.7.3 → 3.8.0-beat.2

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.
Files changed (229) hide show
  1. package/coverage/lcov-report/src/.umi/core/devScripts.ts.html +241 -0
  2. package/coverage/lcov-report/src/.umi/core/history.ts.html +148 -0
  3. package/coverage/lcov-report/src/.umi/core/index.html +206 -0
  4. package/coverage/lcov-report/src/.umi/core/plugin.ts.html +109 -0
  5. package/coverage/lcov-report/src/.umi/core/pluginRegister.ts.html +160 -0
  6. package/coverage/lcov-report/src/.umi/core/polyfill.ts.html +97 -0
  7. package/coverage/lcov-report/src/.umi/core/routes.ts.html +26050 -0
  8. package/coverage/lcov-report/src/.umi/core/umiExports.ts.html +112 -0
  9. package/coverage/lcov-report/src/.umi/dumi/demos/index.html +116 -0
  10. package/coverage/lcov-report/src/.umi/dumi/demos/index.ts.html +6340 -0
  11. package/coverage/lcov-report/src/.umi/dumi/index.html +116 -0
  12. package/coverage/lcov-report/src/.umi/dumi/layout.tsx.html +109 -0
  13. package/coverage/lcov-report/src/.umi/index.html +116 -0
  14. package/coverage/lcov-report/src/.umi/plugin-antd/index.html +116 -0
  15. package/coverage/lcov-report/src/.umi/plugin-antd/runtime.tsx.html +172 -0
  16. package/coverage/lcov-report/src/.umi/plugin-helmet/exports.ts.html +94 -0
  17. package/coverage/lcov-report/src/.umi/plugin-helmet/index.html +116 -0
  18. package/coverage/lcov-report/src/.umi/plugin-initial-state/Provider.tsx.html +196 -0
  19. package/coverage/lcov-report/src/.umi/plugin-initial-state/exports.ts.html +106 -0
  20. package/coverage/lcov-report/src/.umi/plugin-initial-state/index.html +146 -0
  21. package/coverage/lcov-report/src/.umi/plugin-initial-state/models/index.html +116 -0
  22. package/coverage/lcov-report/src/.umi/plugin-initial-state/models/initialState.ts.html +88 -0
  23. package/coverage/lcov-report/src/.umi/plugin-initial-state/runtime.tsx.html +124 -0
  24. package/coverage/lcov-report/src/.umi/plugin-locale/SelectLang.tsx.html +1246 -0
  25. package/coverage/lcov-report/src/.umi/plugin-locale/index.html +161 -0
  26. package/coverage/lcov-report/src/.umi/plugin-locale/locale.tsx.html +268 -0
  27. package/coverage/lcov-report/src/.umi/plugin-locale/localeExports.ts.html +778 -0
  28. package/coverage/lcov-report/src/.umi/plugin-locale/runtime.tsx.html +115 -0
  29. package/coverage/lcov-report/src/.umi/plugin-model/Provider.tsx.html +202 -0
  30. package/coverage/lcov-report/src/.umi/plugin-model/helpers/constant.tsx.html +97 -0
  31. package/coverage/lcov-report/src/.umi/plugin-model/helpers/dispatcher.tsx.html +142 -0
  32. package/coverage/lcov-report/src/.umi/plugin-model/helpers/executor.tsx.html +334 -0
  33. package/coverage/lcov-report/src/.umi/plugin-model/helpers/index.html +146 -0
  34. package/coverage/lcov-report/src/.umi/plugin-model/index.html +146 -0
  35. package/coverage/lcov-report/src/.umi/plugin-model/runtime.tsx.html +121 -0
  36. package/coverage/lcov-report/src/.umi/plugin-model/useModel.tsx.html +298 -0
  37. package/coverage/lcov-report/src/.umi/plugin-request/index.html +116 -0
  38. package/coverage/lcov-report/src/.umi/plugin-request/request.ts.html +919 -0
  39. package/coverage/lcov-report/src/.umi/umi.ts.html +268 -0
  40. package/dist/index.esm.css +100 -4
  41. package/dist/less.esm.css +97 -4
  42. package/es/ProAction/index.js +1 -1
  43. package/es/ProDownload/index.js +3 -3
  44. package/es/ProDownload/utils.js +3 -3
  45. package/es/ProDrawerForm/components/ProDrawer/index.js +4 -4
  46. package/es/ProDrawerForm/components/ProModal/index.js +3 -3
  47. package/es/ProEditLabel/index.js +3 -3
  48. package/es/ProEditTable/components/ActionButton/index.js +3 -3
  49. package/es/ProEditTable/components/RenderField/{ListChanged.d.ts → ListChangedWrapper.d.ts} +4 -3
  50. package/es/ProEditTable/components/RenderField/{ListChanged.js → ListChangedWrapper.js} +22 -10
  51. package/es/ProEditTable/components/RenderField/index.js +8 -8
  52. package/es/ProEditTable/components/RenderToolbar/index.js +1 -1
  53. package/es/ProEditTable/utils/config.js +2 -2
  54. package/es/ProEditTable/utils/index.js +5 -5
  55. package/es/ProEditTable/utils/tools.js +1 -1
  56. package/es/ProEnum/components/Group.js +10 -2
  57. package/es/ProEnum/hooks/useEnumRequest.js +2 -2
  58. package/es/ProEnum/index.js +6 -5
  59. package/es/ProEnum/style/index.less +14 -4
  60. package/es/ProEnum/utils/index.d.ts +1 -1
  61. package/es/ProEnum/utils/index.js +4 -0
  62. package/es/ProForm/components/combination/Container/index.js +5 -3
  63. package/es/ProForm/components/combination/Container/propsType.d.ts +2 -1
  64. package/es/ProForm/components/combination/FormList/components/ActionButton.js +2 -2
  65. package/es/ProForm/components/combination/FormList/components/BlockTitle.js +1 -1
  66. package/es/ProForm/components/combination/FormList/components/ToolbarButton.js +1 -1
  67. package/es/ProForm/components/combination/FormList/utils.js +6 -5
  68. package/es/ProForm/components/combination/Group/component/ComRender.js +1 -1
  69. package/es/ProForm/components/combination/Group/utils.js +8 -1
  70. package/es/ProForm/components/combination/ProCascader/index.js +1 -1
  71. package/es/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +1 -1
  72. package/es/ProForm/components/combination/ProModalSelect/index.js +50 -45
  73. package/es/ProForm/components/combination/ProNumberRange/index.js +14 -5
  74. package/es/ProForm/components/combination/ProNumberRange/style/index.less +5 -1
  75. package/es/ProForm/components/old/ProAddress/index.js +1 -1
  76. package/es/ProForm/components/render/ChangedWrapper.d.ts +17 -0
  77. package/es/ProForm/components/render/ChangedWrapper.js +108 -0
  78. package/es/ProForm/components/render/ConfirmWrapper.js +1 -1
  79. package/es/ProForm/components/render/Render.js +10 -11
  80. package/es/ProForm/components/render/RenderFields.d.ts +2 -3
  81. package/es/ProForm/components/render/RenderFields.js +3 -4
  82. package/es/ProForm/components/render/propsType.d.ts +5 -4
  83. package/es/ProForm/index.js +4 -7
  84. package/es/ProForm/propsType.d.ts +13 -2
  85. package/es/ProForm/style/index.less +103 -5
  86. package/es/ProForm/utils/diffOriginal.d.ts +4 -4
  87. package/es/ProForm/utils/diffOriginal.js +18 -7
  88. package/es/ProForm/utils/transformValue.js +17 -11
  89. package/es/ProForm/utils/useForm.js +1 -1
  90. package/es/ProForm/utils/useShouldUpdate.d.ts +2 -2
  91. package/es/ProForm/utils/useShouldUpdate.js +1 -1
  92. package/es/ProSelect/index.js +12 -11
  93. package/es/ProSelect/propsType.d.ts +4 -0
  94. package/es/ProSelect/utils/index.js +5 -4
  95. package/es/ProStep/components/Listener/index.d.ts +1 -1
  96. package/es/ProStep/components/Listener/index.js +6 -3
  97. package/es/ProStep/index.d.ts +1 -1
  98. package/es/ProStep/index.js +25 -18
  99. package/es/ProTable/components/FormatColumn/index.d.ts +7 -1
  100. package/es/ProTable/components/FormatColumn/index.js +14 -8
  101. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +2 -2
  102. package/es/ProTable/hooks/useAntdTable.js +3 -3
  103. package/es/ProTable/index.js +30 -13
  104. package/es/ProTable/propsType.d.ts +14 -1
  105. package/es/ProTable/style/index.less +1 -1
  106. package/es/ProTree/components/AdaptiveTooltip.d.ts +4 -0
  107. package/es/ProTree/components/AdaptiveTooltip.js +55 -0
  108. package/es/ProTree/components/List.js +15 -3
  109. package/es/ProTree/components/ProTree.js +1 -1
  110. package/es/ProTree/components/ProTreeSelect/index.js +28 -8
  111. package/es/ProTree/components/ProTreeSelect/propsType.d.ts +2 -0
  112. package/es/ProTree/components/ProTreeSelect/style/index.less +2 -2
  113. package/es/ProTree/components/SearchTitle.d.ts +2 -0
  114. package/es/ProTree/components/SearchTitle.js +17 -8
  115. package/es/ProTree/components/Tree.js +1 -1
  116. package/es/ProTree/style/index.less +14 -0
  117. package/es/ProTreeModal/components/Tree.js +15 -17
  118. package/es/ProTreeModal/index.js +62 -7
  119. package/es/ProTreeModal/utils.d.ts +1 -0
  120. package/es/ProTreeModal/utils.js +21 -1
  121. package/es/ProUpload/components/ImageRender.js +1 -1
  122. package/es/ProViewer/index.js +2 -2
  123. package/es/old/ProEditableTable/index.js +4 -4
  124. package/es/style/theme/antd.less +5 -0
  125. package/es/style/theme/index.less +2 -1
  126. package/es/style/theme/tokens.less +1 -0
  127. package/es/utils/index.d.ts +2 -0
  128. package/es/utils/index.js +13 -0
  129. package/lib/ProAction/index.js +1 -1
  130. package/lib/ProDownload/index.js +3 -3
  131. package/lib/ProDownload/utils.js +3 -3
  132. package/lib/ProDrawerForm/components/ProDrawer/index.js +4 -4
  133. package/lib/ProDrawerForm/components/ProModal/index.js +3 -3
  134. package/lib/ProEditLabel/index.js +3 -3
  135. package/lib/ProEditTable/components/ActionButton/index.js +3 -3
  136. package/lib/ProEditTable/components/RenderField/{ListChanged.d.ts → ListChangedWrapper.d.ts} +4 -3
  137. package/lib/ProEditTable/components/RenderField/{ListChanged.js → ListChangedWrapper.js} +25 -11
  138. package/lib/ProEditTable/components/RenderField/index.js +8 -8
  139. package/lib/ProEditTable/components/RenderToolbar/index.js +1 -1
  140. package/lib/ProEditTable/utils/config.js +2 -2
  141. package/lib/ProEditTable/utils/index.js +5 -5
  142. package/lib/ProEditTable/utils/tools.js +1 -1
  143. package/lib/ProEnum/components/Group.js +10 -2
  144. package/lib/ProEnum/hooks/useEnumRequest.js +2 -2
  145. package/lib/ProEnum/index.js +6 -5
  146. package/lib/ProEnum/style/index.less +14 -4
  147. package/lib/ProEnum/utils/index.d.ts +1 -1
  148. package/lib/ProEnum/utils/index.js +4 -0
  149. package/lib/ProForm/components/combination/Container/index.js +5 -3
  150. package/lib/ProForm/components/combination/Container/propsType.d.ts +2 -1
  151. package/lib/ProForm/components/combination/FormList/components/ActionButton.js +2 -2
  152. package/lib/ProForm/components/combination/FormList/components/BlockTitle.js +1 -1
  153. package/lib/ProForm/components/combination/FormList/components/ToolbarButton.js +1 -1
  154. package/lib/ProForm/components/combination/FormList/utils.js +5 -4
  155. package/lib/ProForm/components/combination/Group/component/ComRender.js +1 -1
  156. package/lib/ProForm/components/combination/Group/utils.js +8 -1
  157. package/lib/ProForm/components/combination/ProCascader/index.js +1 -1
  158. package/lib/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +1 -1
  159. package/lib/ProForm/components/combination/ProModalSelect/index.js +49 -44
  160. package/lib/ProForm/components/combination/ProNumberRange/index.js +14 -5
  161. package/lib/ProForm/components/combination/ProNumberRange/style/index.less +5 -1
  162. package/lib/ProForm/components/old/ProAddress/index.js +1 -1
  163. package/lib/ProForm/components/render/ChangedWrapper.d.ts +17 -0
  164. package/lib/ProForm/components/render/ChangedWrapper.js +113 -0
  165. package/lib/ProForm/components/render/ConfirmWrapper.js +1 -1
  166. package/lib/ProForm/components/render/Render.js +10 -11
  167. package/lib/ProForm/components/render/RenderFields.d.ts +2 -3
  168. package/lib/ProForm/components/render/RenderFields.js +3 -4
  169. package/lib/ProForm/components/render/propsType.d.ts +5 -4
  170. package/lib/ProForm/index.js +4 -7
  171. package/lib/ProForm/propsType.d.ts +13 -2
  172. package/lib/ProForm/style/index.less +103 -5
  173. package/lib/ProForm/utils/diffOriginal.d.ts +4 -4
  174. package/lib/ProForm/utils/diffOriginal.js +18 -7
  175. package/lib/ProForm/utils/transformValue.js +17 -11
  176. package/lib/ProForm/utils/useForm.js +1 -1
  177. package/lib/ProForm/utils/useShouldUpdate.d.ts +2 -2
  178. package/lib/ProForm/utils/useShouldUpdate.js +1 -1
  179. package/lib/ProSelect/index.js +12 -11
  180. package/lib/ProSelect/propsType.d.ts +4 -0
  181. package/lib/ProSelect/utils/index.js +5 -4
  182. package/lib/ProStep/components/Listener/index.d.ts +1 -1
  183. package/lib/ProStep/components/Listener/index.js +6 -3
  184. package/lib/ProStep/index.d.ts +1 -1
  185. package/lib/ProStep/index.js +25 -18
  186. package/lib/ProTable/components/FormatColumn/index.d.ts +7 -1
  187. package/lib/ProTable/components/FormatColumn/index.js +14 -8
  188. package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +2 -2
  189. package/lib/ProTable/hooks/useAntdTable.js +3 -3
  190. package/lib/ProTable/index.js +30 -13
  191. package/lib/ProTable/propsType.d.ts +14 -1
  192. package/lib/ProTable/style/index.less +1 -1
  193. package/lib/ProTree/components/AdaptiveTooltip.d.ts +4 -0
  194. package/lib/ProTree/components/AdaptiveTooltip.js +61 -0
  195. package/lib/ProTree/components/List.js +15 -3
  196. package/lib/ProTree/components/ProTree.js +1 -1
  197. package/lib/ProTree/components/ProTreeSelect/index.js +28 -8
  198. package/lib/ProTree/components/ProTreeSelect/propsType.d.ts +2 -0
  199. package/lib/ProTree/components/ProTreeSelect/style/index.less +2 -2
  200. package/lib/ProTree/components/SearchTitle.d.ts +2 -0
  201. package/lib/ProTree/components/SearchTitle.js +19 -7
  202. package/lib/ProTree/components/Tree.js +1 -1
  203. package/lib/ProTree/style/index.less +14 -0
  204. package/lib/ProTreeModal/components/Tree.js +15 -17
  205. package/lib/ProTreeModal/index.js +61 -6
  206. package/lib/ProTreeModal/utils.d.ts +1 -0
  207. package/lib/ProTreeModal/utils.js +20 -0
  208. package/lib/ProUpload/components/ImageRender.js +1 -1
  209. package/lib/ProViewer/index.js +2 -2
  210. package/lib/old/ProEditableTable/index.js +4 -4
  211. package/lib/style/theme/antd.less +5 -0
  212. package/lib/style/theme/index.less +2 -1
  213. package/lib/style/theme/tokens.less +1 -0
  214. package/lib/utils/index.d.ts +2 -0
  215. package/lib/utils/index.js +19 -0
  216. package/package.json +3 -1
  217. package/patches/rc-table+7.26.0.patch +49 -0
  218. package/es/ProForm/components/render/Changed.d.ts +0 -14
  219. package/es/ProForm/components/render/Changed.js +0 -64
  220. package/lib/ProForm/components/render/Changed.d.ts +0 -14
  221. package/lib/ProForm/components/render/Changed.js +0 -69
  222. /package/es/ProForm/utils/{useChanged.d.ts → _useChanged.d.ts} +0 -0
  223. /package/es/ProForm/utils/{useChanged.js → _useChanged.js} +0 -0
  224. /package/es/ProForm/utils/{useListChanged.d.ts → _useListChanged.d.ts} +0 -0
  225. /package/es/ProForm/utils/{useListChanged.js → _useListChanged.js} +0 -0
  226. /package/lib/ProForm/utils/{useChanged.d.ts → _useChanged.d.ts} +0 -0
  227. /package/lib/ProForm/utils/{useChanged.js → _useChanged.js} +0 -0
  228. /package/lib/ProForm/utils/{useListChanged.d.ts → _useListChanged.d.ts} +0 -0
  229. /package/lib/ProForm/utils/{useListChanged.js → _useListChanged.js} +0 -0
@@ -1,13 +1,24 @@
1
- import "antd/es/tooltip/style";
2
- import _Tooltip from "antd/es/tooltip";
3
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ /*
3
+ * @Author: za-xuwenli xuwenli@zhongan.io
4
+ * @Date: 2024-09-26 14:37:00
5
+ * @LastEditors: za-xuwenli xuwenli@zhongan.io
6
+ * @LastEditTime: 2024-09-26 17:50:59
7
+ * @FilePath: /za-material-warehouse/src/ProTree/components/SearchTitle.tsx
8
+ * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
9
+ */
4
10
  import { memo } from 'react';
11
+ import AdaptiveTooltip from './AdaptiveTooltip';
5
12
  function SearchTitle(props) {
6
13
  var label = props.label,
7
14
  _props$searchStr = props.searchStr,
8
15
  searchStr = _props$searchStr === void 0 ? '' : _props$searchStr,
9
16
  showEllipse = props.showEllipse,
10
- ellipseWidth = props.ellipseWidth;
17
+ ellipseWidth = props.ellipseWidth,
18
+ otherProps = props.otherProps;
19
+ var _ref = otherProps !== null && otherProps !== void 0 ? otherProps : {},
20
+ _ref$isDiffChange = _ref.isDiffChange,
21
+ isDiffChange = _ref$isDiffChange === void 0 ? false : _ref$isDiffChange;
11
22
  var strTitle = label;
12
23
  var index = strTitle === null || strTitle === void 0 ? void 0 : strTitle.indexOf(searchStr);
13
24
  var beforeStr = strTitle === null || strTitle === void 0 ? void 0 : strTitle.substring(0, index);
@@ -40,11 +51,9 @@ function SearchTitle(props) {
40
51
  style: style,
41
52
  children: strTitle
42
53
  });
43
- if (classEllipse) {
44
- return _jsx(_Tooltip, {
45
- title: titleTips,
46
- placement: "rightTop",
47
- children: title
54
+ if (classEllipse && !isDiffChange) {
55
+ return _jsx(AdaptiveTooltip, {
56
+ children: titleTips
48
57
  });
49
58
  }
50
59
  return title;
@@ -110,7 +110,7 @@ function List(props) {
110
110
  }
111
111
  }, [selectedKey]);
112
112
  var onSelect = /*#__PURE__*/function () {
113
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(value, item) {
113
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(value, item) {
114
114
  var _props$onSelect;
115
115
  var val;
116
116
  return _regeneratorRuntime().wrap(function _callee$(_context) {
@@ -1,6 +1,15 @@
1
1
  @root-entry-name: 'default';
2
2
  @import (reference) '~antd/es/style/themes/index.less';
3
3
 
4
+ .pro-tree-wrap-ellipse {
5
+ display: block;
6
+ width: 100%;
7
+ overflow: hidden;
8
+ white-space: nowrap;
9
+ text-overflow: ellipsis;
10
+ word-break: keep-all;
11
+ }
12
+
4
13
  .pro-tree {
5
14
  height: 100%; // tree auto css
6
15
  .@{ant-prefix}-tree-iconEle{
@@ -368,3 +377,8 @@
368
377
  }
369
378
 
370
379
 
380
+ .@{ant-prefix}-select-tree-node-content-wrapper {
381
+ &:has(.pro-tree-wrap-ellipse){
382
+ overflow: hidden;
383
+ }
384
+ }
@@ -177,23 +177,21 @@ function List(props, ref) {
177
177
  setAutoExpandParent(false);
178
178
  };
179
179
  if (mode === 'render') {
180
- return _jsx(_Fragment, {
181
- children: _jsx(_Tree, {
182
- disabled: disabled,
183
- style: {
184
- width: '100%'
185
- },
186
- checkable: true,
187
- treeData: _treeData,
188
- onExpand: onExpand,
189
- expandedKeys: expandedKeys,
190
- autoExpandParent: autoExpandParent,
191
- selectable: false,
192
- onCheck: onCheck,
193
- checkedKeys: checkedValues,
194
- checkStrictly: checkStrictly,
195
- height: 432
196
- })
180
+ return _jsx(_Tree, {
181
+ disabled: disabled,
182
+ style: {
183
+ width: '100%'
184
+ },
185
+ checkable: true,
186
+ treeData: _treeData,
187
+ onExpand: onExpand,
188
+ expandedKeys: expandedKeys,
189
+ autoExpandParent: autoExpandParent,
190
+ selectable: false,
191
+ onCheck: onCheck,
192
+ checkedKeys: checkedValues,
193
+ checkStrictly: searchStr ? true : checkStrictly,
194
+ height: 432
197
195
  });
198
196
  }
199
197
  return _jsx(_Fragment, {
@@ -15,7 +15,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
15
15
  * @Author: za-xuwenli xuwenli@zhongan.io
16
16
  * @Date: 2024-06-04 10:01:18
17
17
  * @LastEditors: za-xuwenli xuwenli@zhongan.io
18
- * @LastEditTime: 2024-06-25 17:56:33
18
+ * @LastEditTime: 2024-09-27 11:49:28
19
19
  * @FilePath: /za-material-warehouse/src/ProTreeModal/index.tsx
20
20
  * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
21
21
  */
@@ -26,7 +26,8 @@ import { ReactSVG } from 'react-svg';
26
26
  import classNames from 'classnames';
27
27
  import { ProDrawerForm, useProConfig } from '../index';
28
28
  import { Trigger, ListView, TreeView, Cascader } from './components';
29
- import { getFlatTreeData, filterCheckedNodes, getChildrenKeys, findTreeNodeByKey, getAllKeys, transformMessage } from './utils';
29
+ import { getFlatTreeData, filterCheckedNodes, getChildrenKeys, findTreeNodeByKey, getAllKeys, transformMessage, addLevelAndParentId } from './utils';
30
+ import { transformTreeToArray, treeNodeFind } from '../ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/index';
30
31
  import searchSVG from '../assets/input-search.svg';
31
32
  import locale, { formatMessage } from '../locale';
32
33
  import './style/index.less';
@@ -98,7 +99,8 @@ var ProTreeModal = function ProTreeModal(props) {
98
99
  flatTreeData: [],
99
100
  searchStr: '',
100
101
  checkAll: false,
101
- allKeys: []
102
+ allKeys: [],
103
+ transformedTree: []
102
104
  }),
103
105
  _useSetState2 = _slicedToArray(_useSetState, 2),
104
106
  state = _useSetState2[0],
@@ -220,6 +222,12 @@ var ProTreeModal = function ProTreeModal(props) {
220
222
  });
221
223
  }
222
224
  }, [value, state.allKeys, state.open]);
225
+ useDeepCompareEffect(function () {
226
+ var transformedTree = addLevelAndParentId(state.treeData, fieldNames);
227
+ setState({
228
+ transformedTree: transformedTree
229
+ });
230
+ }, [state.treeData]);
223
231
  var handleClick = function handleClick() {
224
232
  setState({
225
233
  open: true
@@ -360,8 +368,55 @@ var ProTreeModal = function ProTreeModal(props) {
360
368
  var onCheck = function onCheck(checkedKeys, info) {
361
369
  var checkedValues = _toConsumableArray(state.checkedValues);
362
370
  var originalTreeData = state.originalTreeData;
371
+ // 如果有检索则自管理
372
+ if (state.searchStr) {
373
+ var _transformTreeToArray;
374
+ var node = info.node;
375
+ // 从完整树中找到当前节点
376
+ var activeNode = treeNodeFind(state.transformedTree, function (t) {
377
+ return t[fieldNameValue] === node[fieldNameValue];
378
+ }, {
379
+ childrenKey: fieldNames.children
380
+ });
381
+ var allChildren = (_transformTreeToArray = transformTreeToArray([activeNode], {
382
+ childrenKey: fieldNames.children
383
+ })) === null || _transformTreeToArray === void 0 ? void 0 : _transformTreeToArray.map(function (item) {
384
+ return item[fieldNameValue];
385
+ });
386
+ // 子项合并勾选
387
+ checkedValues = checkedValues.concat(allChildren);
388
+ // 从完整树中拿到父节点 只要存在父节点,那么就判断当前children是否全被勾选 若全被勾选就合并当前key到勾选队列
389
+ var _recourse2 = function _recourse(findNode) {
390
+ if (findNode.parentId) {
391
+ var _transformTreeToArray2;
392
+ var parentNode = treeNodeFind(state.transformedTree, function (t) {
393
+ return t[fieldNameValue] === findNode.parentId;
394
+ }, {
395
+ childrenKey: fieldNames.children
396
+ });
397
+ var parentChildrenKeys = (_transformTreeToArray2 = transformTreeToArray([parentNode], {
398
+ childrenKey: fieldNames.children
399
+ })) === null || _transformTreeToArray2 === void 0 ? void 0 : _transformTreeToArray2.map(function (item) {
400
+ return item[fieldNameValue];
401
+ });
402
+ var parentChildrenAllChecked = parentChildrenKeys.every(function (key) {
403
+ return checkedValues.includes(key);
404
+ });
405
+ if (parentChildrenAllChecked) {
406
+ // 把当前父节点追加进来
407
+ checkedValues = checkedValues.concat([parentNode[fieldNameValue]]);
408
+ // 继续向上查找
409
+ if (parentNode.parentId) {
410
+ _recourse2(parentNode);
411
+ }
412
+ }
413
+ }
414
+ };
415
+ _recourse2(activeNode);
416
+ }
417
+ var _checkStrictly = state.searchStr ? true : checkStrictly;
363
418
  // 此时应该取消掉自身并包含它所有的子集
364
- if (!info.checked && !checkStrictly) {
419
+ if (!info.checked && !_checkStrictly) {
365
420
  // 1. 取消自身
366
421
  // 2. 把所有的子节点也要取消
367
422
  var childrenkeys = [];
@@ -378,8 +433,8 @@ var ProTreeModal = function ProTreeModal(props) {
378
433
  return !parentKeys.includes(key);
379
434
  });
380
435
  } else {
381
- // checkStrictly 模式下取 checkedKeys.checked 或者自身的 key
382
- if (checkStrictly) {
436
+ // _checkStrictly 模式下取 checkedKeys.checked 或者自身的 key
437
+ if (_checkStrictly) {
383
438
  if (!info.checked) {
384
439
  checkedValues = checkedValues.filter(function (key) {
385
440
  return key !== info.node.key;
@@ -618,7 +673,7 @@ var ProTreeModal = function ProTreeModal(props) {
618
673
  });
619
674
  case TREE:
620
675
  return _jsx(TreeView, {
621
- treeData: state.treeData,
676
+ treeData: state.transformedTree,
622
677
  originalTreeData: state.originalTreeData,
623
678
  flatTreeData: state.flatTreeData,
624
679
  checkedValues: state.checkedValues,
@@ -36,3 +36,4 @@ export declare function filterCheckedNodes(data: any, checkedKeys: any, searchSt
36
36
  */
37
37
  export declare function getChildrenKeys(node: TreeDataProps, childrenKeys: string[], fieldNames: FieldNamesType, type: 'treeClose' | 'treeCheck'): void;
38
38
  export declare const transformMessage: (obj: any, message: string) => string;
39
+ export declare const addLevelAndParentId: (tree: any[], fieldNames: any, currentLevel?: number, currentParentId?: any) => any[];
@@ -197,4 +197,24 @@ export var transformMessage = function transformMessage(obj, message) {
197
197
  _message = message.replaceAll("{".concat(key, "}"), obj[key]);
198
198
  });
199
199
  return _message;
200
- };
200
+ };
201
+ var _addLevelAndParentId = function addLevelAndParentId() {
202
+ var tree = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
203
+ var fieldNames = arguments.length > 1 ? arguments[1] : undefined;
204
+ var currentLevel = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 0;
205
+ var currentParentId = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : null;
206
+ var _fieldNames$children = fieldNames.children,
207
+ children = _fieldNames$children === void 0 ? 'children' : _fieldNames$children,
208
+ _fieldNames$value = fieldNames.value,
209
+ value = _fieldNames$value === void 0 ? 'value' : _fieldNames$value;
210
+ return tree.map(function (node) {
211
+ var newNode = _objectSpread({}, node);
212
+ newNode.level = currentLevel;
213
+ newNode.parentId = currentParentId;
214
+ if (node[children]) {
215
+ newNode[children] = _addLevelAndParentId(node[children], fieldNames, currentLevel + 1, newNode[value]);
216
+ }
217
+ return newNode;
218
+ });
219
+ };
220
+ export { _addLevelAndParentId as addLevelAndParentId };
@@ -168,7 +168,7 @@ var ImageRender = function ImageRender(props) {
168
168
  disabled: isView || disabled,
169
169
  className: "action-item",
170
170
  onClick: function () {
171
- var _onClick = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
171
+ var _onClick = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
172
172
  var res;
173
173
  return _regeneratorRuntime().wrap(function _callee$(_context) {
174
174
  while (1) switch (_context.prev = _context.next) {
@@ -109,8 +109,8 @@ var ProViewer = /*#__PURE__*/React.forwardRef(function (_ref, ref) {
109
109
  useEffect(function () {
110
110
  if (previewFile) {
111
111
  try {
112
- previewFile().then( /*#__PURE__*/function () {
113
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
112
+ previewFile().then(/*#__PURE__*/function () {
113
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
114
114
  var res, blob, blobUrl;
115
115
  return _regeneratorRuntime().wrap(function _callee$(_context) {
116
116
  while (1) switch (_context.prev = _context.next) {
@@ -172,7 +172,7 @@ var ProEditableTable = /*#__PURE__*/forwardRef(function (props, ref) {
172
172
  * @returns {Promise<{nextList: IRowDataPropsType[], list: IRowDataPropsType[], rowData: IRowDataPropsType, rowIndex: number}>}
173
173
  */
174
174
  var onMultipleDelete = /*#__PURE__*/function () {
175
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
175
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
176
176
  var res, values, nextList, resetFieldsIndex;
177
177
  return _regeneratorRuntime().wrap(function _callee$(_context) {
178
178
  while (1) switch (_context.prev = _context.next) {
@@ -278,7 +278,7 @@ var ProEditableTable = /*#__PURE__*/forwardRef(function (props, ref) {
278
278
  * @returns {Promise<{nextList: IRowDataPropsType[], list: IRowDataPropsType[], rowData: IRowDataPropsType, rowIndex: number}>}
279
279
  */
280
280
  var onSave = /*#__PURE__*/function () {
281
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(rowIndex, callback) {
281
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(rowIndex, callback) {
282
282
  var _form$getFieldsValue$, _form$getFieldsValue, nextValues, res, values;
283
283
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
284
284
  while (1) switch (_context2.prev = _context2.next) {
@@ -404,12 +404,12 @@ var ProEditableTable = /*#__PURE__*/forwardRef(function (props, ref) {
404
404
  }, antButtonProps), {}, {
405
405
  children: buttonText
406
406
  }))]
407
- }) : ( /*#__PURE__*/cloneElement(buttonText, antButtonProps))
407
+ }) : (/*#__PURE__*/cloneElement(buttonText, antButtonProps))
408
408
  }) : null
409
409
  });
410
410
  };
411
411
  var validateFields = /*#__PURE__*/function () {
412
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
412
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee3() {
413
413
  var values, nextValues, nextList, isEditing;
414
414
  return _regeneratorRuntime().wrap(function _callee3$(_context3) {
415
415
  while (1) switch (_context3.prev = _context3.next) {
@@ -749,3 +749,8 @@
749
749
  }
750
750
  }
751
751
  }
752
+
753
+ .@{ant-prefix}-picker.@{ant-prefix}-picker-disabled {
754
+ background: var(--zaui-disabled-bg);
755
+ }
756
+
@@ -8,7 +8,7 @@
8
8
  --zaui-brand : #006aff;
9
9
  --zaui-brand-hover : #3387ff;
10
10
  --zaui-brand-active : #005ad9;
11
- --zaui-brand-disabled : #99c3ff;
11
+ --zaui-brand-disabled : color-mix(in srgb, var(--zaui-brand) 70%, white);
12
12
  --zaui-text : #343434;
13
13
  --zaui-text-weak : #616161;
14
14
  --zaui-aide-text : #909090;
@@ -55,6 +55,7 @@
55
55
  --zaui-table-selected-hover-bg : var(--zaui-table-hover-bg); // 默认同悬停
56
56
  --zaui-table-nested-bg : #fafcfe;
57
57
  --zaui-contract-bg : #fffaa1; // 对比背景色
58
+ --zaui-contract-bg-add : #d2fff4; // 新增对比背景色
58
59
  --zaui-form-label-width : 130px; // 8个全角字符宽度
59
60
  --zaui-border-radius : 8px;
60
61
  --zaui-border-radius-card : 4px;
@@ -53,6 +53,7 @@
53
53
  @zaui-table-selected-hover-bg: var(--zaui-table-hover-bg #fafafa);
54
54
  @zaui-table-nested-bg: var(--zaui-table-nested-bg #FAFCFE);
55
55
  @zaui-contract-bg: var(--zaui-contract-bg; #fffaa1); // 对比背景色
56
+ @zaui-contract-bg-add: var(--zaui-contract-bg-add; #d2fff4); // 新增对比背景色
56
57
  @zaui-form-required-after: var(--zaui-form-required-after; inline);
57
58
  @zaui-form-required-before: var(--zaui-form-required-before; none);
58
59
  @zaui-form-label-width: var(--zaui-form-label-width; 130px);
@@ -0,0 +1,2 @@
1
+ /** 判断一个值是否是空值 */
2
+ export declare const isEmpty: (value: any) => boolean;
@@ -0,0 +1,13 @@
1
+ var EMPTY_VALUE = [undefined, null, ''];
2
+ /** 判断一个值是否是空值 */
3
+ export var isEmpty = function isEmpty(value) {
4
+ if (EMPTY_VALUE.includes(value)) {
5
+ return true;
6
+ }
7
+ if (Array.isArray(value)) {
8
+ return !(value === null || value === void 0 ? void 0 : value.length) || value.every(function (item) {
9
+ return EMPTY_VALUE.includes(item);
10
+ });
11
+ }
12
+ return false;
13
+ };
@@ -44,7 +44,7 @@ var ProAction = function ProAction(props) {
44
44
  servicesArray = state.servicesArray;
45
45
  var length = config.length;
46
46
  var _onActionRun = /*#__PURE__*/function () {
47
- var _ref = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(currentIndex, array) {
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;
50
50
  return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
@@ -44,7 +44,7 @@ var ProDownload = function ProDownload(props) {
44
44
  onErrorConfig = _ref.onError;
45
45
  defaultProps.headers = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, headers), defaultProps.headers);
46
46
  var handDownload = /*#__PURE__*/function () {
47
- var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {
47
+ var _ref2 = (0, _asyncToGenerator2.default)(/*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {
48
48
  var _params;
49
49
  return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
50
50
  while (1) switch (_context.prev = _context.next) {
@@ -138,7 +138,7 @@ var ProDownload = function ProDownload(props) {
138
138
  return (0, _jsxRuntime.jsx)(_antd.Button, (0, _objectSpread2.default)((0, _objectSpread2.default)({
139
139
  className: cls,
140
140
  onClick: function () {
141
- var _onClick = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee3() {
141
+ var _onClick = (0, _asyncToGenerator2.default)(/*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee3() {
142
142
  var res;
143
143
  return (0, _regeneratorRuntime2.default)().wrap(function _callee3$(_context3) {
144
144
  while (1) switch (_context3.prev = _context3.next) {
@@ -153,7 +153,7 @@ var ProDownload = function ProDownload(props) {
153
153
  _context3.next = 13;
154
154
  break;
155
155
  }
156
- if (!(beforeDownload instanceof /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {
156
+ if (!(beforeDownload instanceof /*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {
157
157
  return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {
158
158
  while (1) switch (_context2.prev = _context2.next) {
159
159
  case 0:
@@ -79,7 +79,7 @@ function getFilenameFromContentDisposition(contentDisposition) {
79
79
  }
80
80
  // 发起请求获取下载文件
81
81
  var DownloadRequest = exports.DownloadRequest = /*#__PURE__*/function () {
82
- var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2(_ref2) {
82
+ var _ref3 = (0, _asyncToGenerator2.default)(/*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2(_ref2) {
83
83
  var url, _ref2$method, method, params, headers, transformResponse, fileName, onFinish, onError, config, res, fileBlob, data, contentFileName;
84
84
  return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {
85
85
  while (1) switch (_context2.prev = _context2.next) {
@@ -106,8 +106,8 @@ var DownloadRequest = exports.DownloadRequest = /*#__PURE__*/function () {
106
106
  config.headers = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, config.headers), headers);
107
107
  }
108
108
  _context2.next = 7;
109
- return fetch(url, config).then( /*#__PURE__*/function () {
110
- var _ref4 = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(response) {
109
+ return fetch(url, config).then(/*#__PURE__*/function () {
110
+ var _ref4 = (0, _asyncToGenerator2.default)(/*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee(response) {
111
111
  var _data, errorMsg;
112
112
  return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
113
113
  while (1) switch (_context.prev = _context.next) {
@@ -49,7 +49,7 @@ var ProDrawer = function ProDrawer(_ref) {
49
49
  loading = _useState2[0],
50
50
  toggleLoading = _useState2[1];
51
51
  var noRenderFooter = isView || footer === false || footer === null;
52
- var onConfirm = (0, _react.useCallback)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {
52
+ var onConfirm = (0, _react.useCallback)(/*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {
53
53
  var _locale$ProDrawerForm, _locale$ProDrawerForm2, _locale$ProDrawerForm3, _locale$ProDrawerForm4;
54
54
  return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
55
55
  while (1) switch (_context.prev = _context.next) {
@@ -77,7 +77,7 @@ var ProDrawer = function ProDrawer(_ref) {
77
77
  }
78
78
  }, _callee);
79
79
  })), [onCancel, modalRef.current]);
80
- var handleFinish = (0, _react.useCallback)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {
80
+ var handleFinish = (0, _react.useCallback)(/*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee2() {
81
81
  var values, _error$errorFields, _error$errorFields$;
82
82
  return (0, _regeneratorRuntime2.default)().wrap(function _callee2$(_context2) {
83
83
  while (1) switch (_context2.prev = _context2.next) {
@@ -169,7 +169,7 @@ var ProDrawer = function ProDrawer(_ref) {
169
169
  if (noRenderFooter) {
170
170
  return null;
171
171
  }
172
- if ( /*#__PURE__*/_react.default.isValidElement(footer)) {
172
+ if (/*#__PURE__*/_react.default.isValidElement(footer)) {
173
173
  return (0, _jsxRuntime.jsx)("div", {
174
174
  className: "pro-drawer-footer",
175
175
  children: footer
@@ -179,7 +179,7 @@ var ProDrawer = function ProDrawer(_ref) {
179
179
  return (0, _jsxRuntime.jsx)("div", {
180
180
  className: "pro-drawer-footer",
181
181
  children: footer.map(function (item) {
182
- if ( /*#__PURE__*/_react.default.isValidElement(item)) {
182
+ if (/*#__PURE__*/_react.default.isValidElement(item)) {
183
183
  return item;
184
184
  }
185
185
  return false;
@@ -55,7 +55,7 @@ var ProModal = function ProModal(_ref) {
55
55
  'pro-modal-no-footer': noRenderFooter,
56
56
  'pro-modal-footer-shadow': height >= 450
57
57
  }]);
58
- var handleFinish = (0, _react.useCallback)( /*#__PURE__*/(0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {
58
+ var handleFinish = (0, _react.useCallback)(/*#__PURE__*/(0, _asyncToGenerator2.default)(/*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {
59
59
  var values, _error$errorFields, _error$errorFields$;
60
60
  return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
61
61
  while (1) switch (_context.prev = _context.next) {
@@ -149,7 +149,7 @@ var ProModal = function ProModal(_ref) {
149
149
  if (noRenderFooter) {
150
150
  return null;
151
151
  }
152
- if ( /*#__PURE__*/_react.default.isValidElement(footer)) {
152
+ if (/*#__PURE__*/_react.default.isValidElement(footer)) {
153
153
  return (0, _jsxRuntime.jsx)("div", {
154
154
  className: "pro-drawer-footer",
155
155
  children: footer
@@ -159,7 +159,7 @@ var ProModal = function ProModal(_ref) {
159
159
  return (0, _jsxRuntime.jsx)("div", {
160
160
  className: "pro-drawer-footer",
161
161
  children: footer.map(function (item) {
162
- if ( /*#__PURE__*/_react.default.isValidElement(item)) {
162
+ if (/*#__PURE__*/_react.default.isValidElement(item)) {
163
163
  return item;
164
164
  }
165
165
  return false;
@@ -135,7 +135,7 @@ var ProEditLabel = function ProEditLabel(_ref) {
135
135
  * pop确认回调
136
136
  */
137
137
  var onConfirmHandle = /*#__PURE__*/function () {
138
- var _ref2 = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {
138
+ var _ref2 = (0, _asyncToGenerator2.default)(/*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {
139
139
  var res, value;
140
140
  return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
141
141
  while (1) switch (_context.prev = _context.next) {
@@ -222,7 +222,7 @@ var ProEditLabel = function ProEditLabel(_ref) {
222
222
  })
223
223
  });
224
224
  if (disabled) {
225
- if ( /*#__PURE__*/_react.default.isValidElement(children)) {
225
+ if (/*#__PURE__*/_react.default.isValidElement(children)) {
226
226
  return children;
227
227
  }
228
228
  if (props.value && !popupProps) {
@@ -254,7 +254,7 @@ var ProEditLabel = function ProEditLabel(_ref) {
254
254
  if (mode === 'popup') {
255
255
  // 查看时内容渲染
256
256
  var labelRender = function labelRender() {
257
- if ( /*#__PURE__*/_react.default.isValidElement(children)) {
257
+ if (/*#__PURE__*/_react.default.isValidElement(children)) {
258
258
  return children;
259
259
  }
260
260
  return TextNode;
@@ -86,7 +86,7 @@ var ActionButton = function ActionButton(_ref) {
86
86
  disabled: isDisabled,
87
87
  okText: _locale.default.ProEditTable.confirm,
88
88
  cancelText: _locale.default.ProEditTable.cancel,
89
- children: /*#__PURE__*/_react.default.isValidElement(btnConfig.label) ? ( /*#__PURE__*/_react.default.cloneElement(btnConfig.label, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, (0, _lodash.omit)(delBtnProps, ['buttonProps', 'isEditable', 'onEvent'])), {}, {
89
+ children: /*#__PURE__*/_react.default.isValidElement(btnConfig.label) ? (/*#__PURE__*/_react.default.cloneElement(btnConfig.label, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, (0, _lodash.omit)(delBtnProps, ['buttonProps', 'isEditable', 'onEvent'])), {}, {
90
90
  record: record,
91
91
  index: index,
92
92
  disabled: isDisabled
@@ -96,7 +96,7 @@ var ActionButton = function ActionButton(_ref) {
96
96
  children: btnConfig.label
97
97
  }))
98
98
  }) : (0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
99
- children: /*#__PURE__*/_react.default.isValidElement(btnConfig.label) ? ( /*#__PURE__*/_react.default.cloneElement(btnConfig.label, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, (0, _lodash.omit)(delBtnProps, ['buttonProps', 'isEditable', 'onEvent'])), {}, {
99
+ children: /*#__PURE__*/_react.default.isValidElement(btnConfig.label) ? (/*#__PURE__*/_react.default.cloneElement(btnConfig.label, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, (0, _lodash.omit)(delBtnProps, ['buttonProps', 'isEditable', 'onEvent'])), {}, {
100
100
  record: record,
101
101
  index: index,
102
102
  disabled: isDisabled,
@@ -113,7 +113,7 @@ var ActionButton = function ActionButton(_ref) {
113
113
  }))
114
114
  })
115
115
  }) : (0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
116
- children: /*#__PURE__*/_react.default.isValidElement(btnConfig.label) ? ( /*#__PURE__*/_react.default.cloneElement(btnConfig.label, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, (0, _lodash.omit)(actionBtnProps, ['buttonProps', 'isEditable', 'onEvent'])), {}, {
116
+ children: /*#__PURE__*/_react.default.isValidElement(btnConfig.label) ? (/*#__PURE__*/_react.default.cloneElement(btnConfig.label, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, (0, _lodash.omit)(actionBtnProps, ['buttonProps', 'isEditable', 'onEvent'])), {}, {
117
117
  record: record,
118
118
  index: index
119
119
  }))) : (0, _jsxRuntime.jsx)(_antd.Button, (0, _objectSpread2.default)((0, _objectSpread2.default)({
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { FormInstance } from 'antd';
3
3
  import { NamePath } from 'antd/lib/form/interface';
4
+ import { DiffOriginalParams } from '../../../ProForm/utils/diffOriginal';
4
5
  interface Props {
5
6
  name?: NamePath;
6
7
  names?: NamePath[];
@@ -9,8 +10,8 @@ interface Props {
9
10
  namesStr?: NamePath;
10
11
  originalValues?: any;
11
12
  form: FormInstance;
12
- equalWith?: (preValue: any, curValue: any) => boolean | undefined;
13
+ equalWith?: DiffOriginalParams['equalWith'];
13
14
  [name: string]: any;
14
15
  }
15
- declare const ListChanged: React.FC<Props>;
16
- export default ListChanged;
16
+ declare const ListChangedWrapper: React.FC<Props>;
17
+ export default ListChangedWrapper;