@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
@@ -70,7 +70,7 @@ export function getFilenameFromContentDisposition(contentDisposition) {
70
70
  }
71
71
  // 发起请求获取下载文件
72
72
  export var DownloadRequest = /*#__PURE__*/function () {
73
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref2) {
73
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref2) {
74
74
  var url, _ref2$method, method, params, headers, transformResponse, fileName, onFinish, onError, config, res, fileBlob, data, contentFileName;
75
75
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
76
76
  while (1) switch (_context2.prev = _context2.next) {
@@ -97,8 +97,8 @@ export var DownloadRequest = /*#__PURE__*/function () {
97
97
  config.headers = _objectSpread(_objectSpread({}, config.headers), headers);
98
98
  }
99
99
  _context2.next = 7;
100
- return fetch(url, config).then( /*#__PURE__*/function () {
101
- var _ref4 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
100
+ return fetch(url, config).then(/*#__PURE__*/function () {
101
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(response) {
102
102
  var _data, errorMsg;
103
103
  return _regeneratorRuntime().wrap(function _callee$(_context) {
104
104
  while (1) switch (_context.prev = _context.next) {
@@ -46,7 +46,7 @@ var ProDrawer = function ProDrawer(_ref) {
46
46
  loading = _useState2[0],
47
47
  toggleLoading = _useState2[1];
48
48
  var noRenderFooter = isView || footer === false || footer === null;
49
- var onConfirm = useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
49
+ var onConfirm = useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
50
50
  var _locale$ProDrawerForm, _locale$ProDrawerForm2, _locale$ProDrawerForm3, _locale$ProDrawerForm4;
51
51
  return _regeneratorRuntime().wrap(function _callee$(_context) {
52
52
  while (1) switch (_context.prev = _context.next) {
@@ -74,7 +74,7 @@ var ProDrawer = function ProDrawer(_ref) {
74
74
  }
75
75
  }, _callee);
76
76
  })), [onCancel, modalRef.current]);
77
- var handleFinish = useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
77
+ var handleFinish = useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
78
78
  var values, _error$errorFields, _error$errorFields$;
79
79
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
80
80
  while (1) switch (_context2.prev = _context2.next) {
@@ -166,7 +166,7 @@ var ProDrawer = function ProDrawer(_ref) {
166
166
  if (noRenderFooter) {
167
167
  return null;
168
168
  }
169
- if ( /*#__PURE__*/React.isValidElement(footer)) {
169
+ if (/*#__PURE__*/React.isValidElement(footer)) {
170
170
  return _jsx("div", {
171
171
  className: "pro-drawer-footer",
172
172
  children: footer
@@ -176,7 +176,7 @@ var ProDrawer = function ProDrawer(_ref) {
176
176
  return _jsx("div", {
177
177
  className: "pro-drawer-footer",
178
178
  children: footer.map(function (item) {
179
- if ( /*#__PURE__*/React.isValidElement(item)) {
179
+ if (/*#__PURE__*/React.isValidElement(item)) {
180
180
  return item;
181
181
  }
182
182
  return false;
@@ -52,7 +52,7 @@ var ProModal = function ProModal(_ref) {
52
52
  'pro-modal-no-footer': noRenderFooter,
53
53
  'pro-modal-footer-shadow': height >= 450
54
54
  }]);
55
- var handleFinish = useCallback( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
55
+ var handleFinish = useCallback(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
56
56
  var values, _error$errorFields, _error$errorFields$;
57
57
  return _regeneratorRuntime().wrap(function _callee$(_context) {
58
58
  while (1) switch (_context.prev = _context.next) {
@@ -146,7 +146,7 @@ var ProModal = function ProModal(_ref) {
146
146
  if (noRenderFooter) {
147
147
  return null;
148
148
  }
149
- if ( /*#__PURE__*/React.isValidElement(footer)) {
149
+ if (/*#__PURE__*/React.isValidElement(footer)) {
150
150
  return _jsx("div", {
151
151
  className: "pro-drawer-footer",
152
152
  children: footer
@@ -156,7 +156,7 @@ var ProModal = function ProModal(_ref) {
156
156
  return _jsx("div", {
157
157
  className: "pro-drawer-footer",
158
158
  children: footer.map(function (item) {
159
- if ( /*#__PURE__*/React.isValidElement(item)) {
159
+ if (/*#__PURE__*/React.isValidElement(item)) {
160
160
  return item;
161
161
  }
162
162
  return false;
@@ -134,7 +134,7 @@ var ProEditLabel = function ProEditLabel(_ref) {
134
134
  * pop确认回调
135
135
  */
136
136
  var onConfirmHandle = /*#__PURE__*/function () {
137
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
137
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
138
138
  var res, value;
139
139
  return _regeneratorRuntime().wrap(function _callee$(_context) {
140
140
  while (1) switch (_context.prev = _context.next) {
@@ -221,7 +221,7 @@ var ProEditLabel = function ProEditLabel(_ref) {
221
221
  })
222
222
  });
223
223
  if (disabled) {
224
- if ( /*#__PURE__*/React.isValidElement(children)) {
224
+ if (/*#__PURE__*/React.isValidElement(children)) {
225
225
  return children;
226
226
  }
227
227
  if (props.value && !popupProps) {
@@ -253,7 +253,7 @@ var ProEditLabel = function ProEditLabel(_ref) {
253
253
  if (mode === 'popup') {
254
254
  // 查看时内容渲染
255
255
  var labelRender = function labelRender() {
256
- if ( /*#__PURE__*/React.isValidElement(children)) {
256
+ if (/*#__PURE__*/React.isValidElement(children)) {
257
257
  return children;
258
258
  }
259
259
  return TextNode;
@@ -82,7 +82,7 @@ var ActionButton = function ActionButton(_ref) {
82
82
  disabled: isDisabled,
83
83
  okText: locale.ProEditTable.confirm,
84
84
  cancelText: locale.ProEditTable.cancel,
85
- children: /*#__PURE__*/React.isValidElement(btnConfig.label) ? ( /*#__PURE__*/React.cloneElement(btnConfig.label, _objectSpread(_objectSpread({}, omit(delBtnProps, ['buttonProps', 'isEditable', 'onEvent'])), {}, {
85
+ children: /*#__PURE__*/React.isValidElement(btnConfig.label) ? (/*#__PURE__*/React.cloneElement(btnConfig.label, _objectSpread(_objectSpread({}, omit(delBtnProps, ['buttonProps', 'isEditable', 'onEvent'])), {}, {
86
86
  record: record,
87
87
  index: index,
88
88
  disabled: isDisabled
@@ -92,7 +92,7 @@ var ActionButton = function ActionButton(_ref) {
92
92
  children: btnConfig.label
93
93
  }))
94
94
  }) : _jsx(_Fragment, {
95
- children: /*#__PURE__*/React.isValidElement(btnConfig.label) ? ( /*#__PURE__*/React.cloneElement(btnConfig.label, _objectSpread(_objectSpread({}, omit(delBtnProps, ['buttonProps', 'isEditable', 'onEvent'])), {}, {
95
+ children: /*#__PURE__*/React.isValidElement(btnConfig.label) ? (/*#__PURE__*/React.cloneElement(btnConfig.label, _objectSpread(_objectSpread({}, omit(delBtnProps, ['buttonProps', 'isEditable', 'onEvent'])), {}, {
96
96
  record: record,
97
97
  index: index,
98
98
  disabled: isDisabled,
@@ -109,7 +109,7 @@ var ActionButton = function ActionButton(_ref) {
109
109
  }))
110
110
  })
111
111
  }) : _jsx(_Fragment, {
112
- children: /*#__PURE__*/React.isValidElement(btnConfig.label) ? ( /*#__PURE__*/React.cloneElement(btnConfig.label, _objectSpread(_objectSpread({}, omit(actionBtnProps, ['buttonProps', 'isEditable', 'onEvent'])), {}, {
112
+ children: /*#__PURE__*/React.isValidElement(btnConfig.label) ? (/*#__PURE__*/React.cloneElement(btnConfig.label, _objectSpread(_objectSpread({}, omit(actionBtnProps, ['buttonProps', 'isEditable', 'onEvent'])), {}, {
113
113
  record: record,
114
114
  index: index
115
115
  }))) : _jsx(_Button, _objectSpread(_objectSpread({
@@ -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;
@@ -7,8 +7,11 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
7
7
  var _excluded = ["name", "names", "namesStr", "originalName", "originalNames", "originalValues", "form", "equalWith", "rowKeyPath", "children", "type"];
8
8
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
9
9
  import React, { useMemo } from 'react';
10
+ import classNames from 'classnames';
10
11
  import { get } from 'lodash';
11
12
  import { diffOriginal } from '../../../ProForm/utils/diffOriginal';
13
+ import { useProConfig } from '../../../ProConfigProvider';
14
+ import { isEmpty } from '../../../utils';
12
15
  var toNamePath = function toNamePath(name) {
13
16
  if (Array.isArray(name)) {
14
17
  return name;
@@ -61,7 +64,7 @@ var getOriginalValue = function getOriginalValue(_ref) {
61
64
  return get(originalValues, originalName);
62
65
  }) : get(originalValues, originalName);
63
66
  };
64
- var ListChanged = function ListChanged(props) {
67
+ var ListChangedWrapper = function ListChangedWrapper(props) {
65
68
  var name = props.name,
66
69
  names = props.names,
67
70
  namesStr = props.namesStr,
@@ -76,11 +79,13 @@ var ListChanged = function ListChanged(props) {
76
79
  children = props.children,
77
80
  type = props.type,
78
81
  rest = _objectWithoutProperties(props, _excluded);
82
+ var _ref2 = useProConfig('ProEditTable') || {},
83
+ isDiffAll = _ref2.isDiffAll;
79
84
  var namePath = toNamePath(namesStr || name);
80
85
  var originalNamePath = toNamePath(originalName);
81
86
  var originalNamePaths = originalNames && toNamePaths(originalNames);
82
- var notWatch = !originalValues || ['FormList', 'ProEditTable'].includes(type);
83
- var originalValue = !notWatch ? getOriginalValue({
87
+ var isWatch = originalValues && !['FormList', 'ProEditTable'].includes(type);
88
+ var originalValue = isWatch ? getOriginalValue({
84
89
  namePath: namePath,
85
90
  originalName: originalNamePath,
86
91
  originalNames: originalNamePaths,
@@ -88,9 +93,9 @@ var ListChanged = function ListChanged(props) {
88
93
  rowKeyPath: rowKeyPath,
89
94
  form: form
90
95
  }) : undefined;
91
- var noChange = !equalWith && (!originalValues || originalValue === undefined);
92
- var changed = useMemo(function () {
93
- if (notWatch || noChange) return false;
96
+ var noChange = !equalWith && (!originalValues || isDiffAll ? false : isEmpty(originalValue));
97
+ var diffType = useMemo(function () {
98
+ if (!isWatch || noChange) return 'same';
94
99
  return diffOriginal({
95
100
  value: props.value,
96
101
  originalValue: originalValue,
@@ -99,11 +104,18 @@ var ListChanged = function ListChanged(props) {
99
104
  // name: isString(namesStr) ? namesStr : originalName || name,
100
105
  });
101
106
  }, [props.value, originalValue]);
102
- if (notWatch || noChange) {
107
+ var isAdd = diffType === 'add';
108
+ var isChanged = diffType === 'changed';
109
+ if (!isWatch || noChange) {
103
110
  return /*#__PURE__*/React.isValidElement(children) && /*#__PURE__*/React.cloneElement(children, _objectSpread(_objectSpread({}, children.props), rest));
104
111
  }
112
+ var diffClassName = classNames({
113
+ 'pro-form-item-changed': isChanged,
114
+ 'pro-form-item-add': isAdd
115
+ });
105
116
  return _jsx(_Tooltip, {
106
- open: changed ? undefined : false,
117
+ // 传入undefined 鼠标移入显示移出隐藏
118
+ open: isChanged ? undefined : false,
107
119
  getPopupContainer: function getPopupContainer(target) {
108
120
  return target.parentElement;
109
121
  },
@@ -116,9 +128,9 @@ var ListChanged = function ListChanged(props) {
116
128
  })) : undefined]
117
129
  }),
118
130
  children: _jsx("div", {
119
- className: changed ? 'pro-form-item-changed' : '',
131
+ className: diffClassName,
120
132
  children: /*#__PURE__*/React.isValidElement(children) ? /*#__PURE__*/React.cloneElement(children, _objectSpread(_objectSpread({}, children.props), rest)) : undefined
121
133
  })
122
134
  });
123
135
  };
124
- export default ListChanged;
136
+ export default ListChangedWrapper;
@@ -25,7 +25,7 @@ import useRules from '../../../ProForm/utils/useRules';
25
25
  import { isSelect, isTrim } from '../../../ProForm/utils';
26
26
  import ConfirmWrapper from '../../../ProForm/components/render/ConfirmWrapper';
27
27
  import { getDefaultProps } from '../../utils/getDefaultProps';
28
- import ListChanged from './ListChanged';
28
+ import ListChangedWrapper from './ListChangedWrapper';
29
29
  var RenderField = function RenderField(_ref) {
30
30
  var _type, _type$replace, _fieldProps2, _names, _TargetComponent4, _componentProps2;
31
31
  var value = _ref.text,
@@ -246,7 +246,7 @@ var RenderField = function RenderField(_ref) {
246
246
  if (typeof _editRender === 'function') {
247
247
  TargetComponent = _editRender.apply(void 0, rowParams);
248
248
  }
249
- if ( /*#__PURE__*/React.isValidElement(_editRender)) {
249
+ if (/*#__PURE__*/React.isValidElement(_editRender)) {
250
250
  TargetComponent = _editRender;
251
251
  }
252
252
  }
@@ -262,7 +262,7 @@ var RenderField = function RenderField(_ref) {
262
262
  children: View
263
263
  });
264
264
  }
265
- if ( /*#__PURE__*/React.isValidElement(viewRender)) {
265
+ if (/*#__PURE__*/React.isValidElement(viewRender)) {
266
266
  TargetComponent = viewRender;
267
267
  }
268
268
  }
@@ -305,7 +305,7 @@ var RenderField = function RenderField(_ref) {
305
305
  }, 100);
306
306
  };
307
307
  // 单元格更新数据时,加个防抖,防止更新频率过快,卡顿
308
- var _onChange = debounce( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
308
+ var _onChange = debounce(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
309
309
  var _len2,
310
310
  args,
311
311
  _key2,
@@ -409,7 +409,7 @@ var RenderField = function RenderField(_ref) {
409
409
  }, _callee);
410
410
  })), 300);
411
411
  var _onblur = /*#__PURE__*/function () {
412
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
412
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
413
413
  var _TargetComponent3, _TargetComponent3$pro, _TargetComponent$prop4;
414
414
  var _len3,
415
415
  args,
@@ -510,7 +510,7 @@ var RenderField = function RenderField(_ref) {
510
510
  form: form,
511
511
  names: names,
512
512
  namePath: [].concat(_toConsumableArray(namePath), [index]),
513
- name: cellName,
513
+ name: originalName,
514
514
  listName: cellName,
515
515
  viewEmpty: viewEmpty,
516
516
  valueType: _valueType,
@@ -545,9 +545,9 @@ var RenderField = function RenderField(_ref) {
545
545
  var getFieldItem = function getFieldItem() {
546
546
  var _componentProps;
547
547
  var FormItem = null;
548
- var FieldComponent = /*#__PURE__*/React.isValidElement(TargetComponent) ? ( /*#__PURE__*/React.cloneElement(TargetComponent, componentProps)) : _jsx(TargetComponent, _objectSpread({}, componentProps));
548
+ var FieldComponent = /*#__PURE__*/React.isValidElement(TargetComponent) ? (/*#__PURE__*/React.cloneElement(TargetComponent, componentProps)) : _jsx(TargetComponent, _objectSpread({}, componentProps));
549
549
  if (originalValues) {
550
- FieldComponent = _jsx(ListChanged, {
550
+ FieldComponent = _jsx(ListChangedWrapper, {
551
551
  name: cellName,
552
552
  names: names,
553
553
  namesStr: [].concat(_toConsumableArray(baseName), [index, dataIndex]),
@@ -76,7 +76,7 @@ var RenderToolbar = function RenderToolbar(config) {
76
76
  toolbar.show = show !== null && show !== void 0 ? show : true;
77
77
  toolbar.needConfirm = needConfirm !== null && needConfirm !== void 0 ? needConfirm : true;
78
78
  toolbar.onEvent = /*#__PURE__*/function () {
79
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(record, index) {
79
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(record, index) {
80
80
  var onEvent, result;
81
81
  return _regeneratorRuntime().wrap(function _callee$(_context) {
82
82
  while (1) switch (_context.prev = _context.next) {
@@ -63,7 +63,7 @@ export var actions = {
63
63
  });
64
64
  },
65
65
  save: function () {
66
- var _save = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref2) {
66
+ var _save = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(_ref2) {
67
67
  var record, editingKeys, setState, form, rowName, virtualRowName, result, updateData, nextEditingKeys, values;
68
68
  return _regeneratorRuntime().wrap(function _callee$(_context) {
69
69
  while (1) switch (_context.prev = _context.next) {
@@ -166,7 +166,7 @@ export var actions = {
166
166
  }
167
167
  },
168
168
  add: function () {
169
- var _add = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref5) {
169
+ var _add = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(_ref5) {
170
170
  var _tableRef$current$que, _tableRef$current$que2;
171
171
  var result, insertType, editingKeys, setState, form, name, virtualName, virtualKey, onlyOneLineMsg, tableRef, _ref5$prefixCls, prefixCls, nextData, rowKey, addData, nextEditingKeys;
172
172
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
@@ -26,7 +26,7 @@ import locale from '../../locale';
26
26
  // 渲染操作栏
27
27
  var getActionColumn = function getActionColumn(config) {
28
28
  var _cloneDeepWith = cloneDeepWith(config, function (value) {
29
- if ( /*#__PURE__*/React.isValidElement(value)) {
29
+ if (/*#__PURE__*/React.isValidElement(value)) {
30
30
  return value;
31
31
  }
32
32
  }),
@@ -83,7 +83,7 @@ var getActionColumn = function getActionColumn(config) {
83
83
  action.show = show !== null && show !== void 0 ? show : true;
84
84
  action.needConfirm = needConfirm !== null && needConfirm !== void 0 ? needConfirm : true;
85
85
  action.onEvent = /*#__PURE__*/function () {
86
- var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(record, index) {
86
+ var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(record, index) {
87
87
  var _form$getFieldValue;
88
88
  var rowName, _record, onEvent, result;
89
89
  return _regeneratorRuntime().wrap(function _callee$(_context) {
@@ -234,7 +234,7 @@ export var transformColumns = function transformColumns() {
234
234
  children: [before, columnTitle, _jsx(_Tooltip, _objectSpread(_objectSpread({
235
235
  title: tooltipTitle !== null && tooltipTitle !== void 0 ? tooltipTitle : tooltip
236
236
  }, resetProps), {}, {
237
- children: icon ? ( /*#__PURE__*/React.cloneElement(icon, {
237
+ children: icon ? (/*#__PURE__*/React.cloneElement(icon, {
238
238
  className: 'icon-tip'
239
239
  })) : _jsx(ReactSVG, {
240
240
  className: "icon-tip",
@@ -380,8 +380,8 @@ export var transformColumns = function transformColumns() {
380
380
  }
381
381
  // cacheMap 用来存储缓存值,若有值后不再请求
382
382
  if (JSON.stringify(cacheMap.current) === '{}') {
383
- Promise.all(Object.entries(_cacheMap).map( /*#__PURE__*/function () {
384
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2(item) {
383
+ Promise.all(Object.entries(_cacheMap).map(/*#__PURE__*/function () {
384
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(item) {
385
385
  var _item, key, value, _ref4, service, option;
386
386
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
387
387
  while (1) switch (_context2.prev = _context2.next) {
@@ -191,7 +191,7 @@ export var handleScrollToError = function handleScrollToError() {
191
191
  */
192
192
  export function cloneDeepFilterNode(value) {
193
193
  return cloneDeepWith(value, function (val) {
194
- if ( /*#__PURE__*/React.isValidElement(val)) {
194
+ if (/*#__PURE__*/React.isValidElement(val)) {
195
195
  return val;
196
196
  }
197
197
  });
@@ -43,7 +43,10 @@ var Group = function Group(props) {
43
43
  }
44
44
  return _jsx("div", {
45
45
  id: id,
46
- className: classNames('pro-enum-group-root', disabled ? 'pro-enum-group-root-disabled' : ''),
46
+ className: classNames({
47
+ 'pro-enum-group-root': true,
48
+ 'pro-enum-group-root-disabled': disabled
49
+ }),
47
50
  children: dataSource.map(function (item, index) {
48
51
  return _jsx("div", {
49
52
  onClick: function onClick() {
@@ -51,7 +54,12 @@ var Group = function Group(props) {
51
54
  handleClick(item[fieldValue], index);
52
55
  }
53
56
  },
54
- className: classNames('pro-enum-group-item', value === item[fieldValue] ? 'pro-enum-group-item-selected' : '', index === idx.current || index + 1 === idx.current ? 'pro-enum-group-item-disabled-after' : '', item.disabled ? 'pro-enum-group-item-disabled' : ''),
57
+ className: classNames({
58
+ 'pro-enum-group-item': true,
59
+ 'pro-enum-group-item-selected': value === item[fieldValue],
60
+ 'pro-enum-group-item-disabled-after': index === idx.current || index + 1 === idx.current,
61
+ 'pro-enum-group-item-disabled': item.disabled
62
+ }),
55
63
  children: item[fieldLabel]
56
64
  }, item[fieldValue]);
57
65
  })
@@ -52,7 +52,7 @@ var useEnumRequest = function useEnumRequest(props, dispatch) {
52
52
  staleTime: 6e4 * 60
53
53
  }, useRequest === null || useRequest === void 0 ? void 0 : useRequest.options), {}, {
54
54
  setCache: function () {
55
- var _setCache = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
55
+ var _setCache = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(res) {
56
56
  var response, _locale$ProEnum2, _useRequest$options, ignoreCodes, cacheData;
57
57
  return _regeneratorRuntime().wrap(function _callee$(_context) {
58
58
  while (1) switch (_context.prev = _context.next) {
@@ -162,7 +162,7 @@ var useEnumRequest = function useEnumRequest(props, dispatch) {
162
162
  }
163
163
  }));
164
164
  var mergeData = /*#__PURE__*/function () {
165
- var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
165
+ var _ref3 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
166
166
  var cacheData, _useRequest$options2, _useRequest$options3, enumData, cacheCodes, codes, ignoreCodes, diff, response, res, _locale$ProEnum6;
167
167
  return _regeneratorRuntime().wrap(function _callee2$(_context2) {
168
168
  while (1) switch (_context2.prev = _context2.next) {
@@ -11,7 +11,7 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
11
11
  import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
12
12
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
13
13
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
14
- var _excluded = ["code", "type", "dataSource", "useRequest", "value", "component", "onChange", "transformResponse", "otherProps"],
14
+ var _excluded = ["code", "type", "dataSource", "useRequest", "value", "component", "onChange", "transformResponse", "otherProps", "isView"],
15
15
  _excluded2 = ["fieldNames", "clear", "cacheKey", "showCodeName"];
16
16
  import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
17
17
  import { useDeepCompareEffect, useRequest as useRequestFunc } from 'ahooks';
@@ -39,10 +39,11 @@ var ProEnum = function ProEnum(props) {
39
39
  onChange = props.onChange,
40
40
  transformResponse = props.transformResponse,
41
41
  otherProps = props.otherProps,
42
+ isView = props.isView,
42
43
  enumProps = _objectWithoutProperties(props, _excluded);
43
44
  var _ref = otherProps || {},
44
- isView = _ref.isView,
45
45
  viewEmpty = _ref.viewEmpty;
46
+ var _isView = isView || (otherProps === null || otherProps === void 0 ? void 0 : otherProps.isView);
46
47
  var _ref2 = useProConfig('ProEnum') || {},
47
48
  fieldNames = _ref2.fieldNames,
48
49
  _ref2$clear = _ref2.clear,
@@ -152,7 +153,7 @@ var ProEnum = function ProEnum(props) {
152
153
  list = [];
153
154
  }
154
155
  }
155
- if ( /*#__PURE__*/React.isValidElement(component)) {
156
+ if (/*#__PURE__*/React.isValidElement(component)) {
156
157
  var Component = component;
157
158
  return _jsx(Component, _objectSpread(_objectSpread({}, enumProps), {}, {
158
159
  dataSource: list,
@@ -226,7 +227,7 @@ var ProEnum = function ProEnum(props) {
226
227
  if (!code && !dataSource && !useRequest) {
227
228
  var _locale$ProEnum4;
228
229
  _message.error(locale === null || locale === void 0 ? void 0 : (_locale$ProEnum4 = locale.ProEnum) === null || _locale$ProEnum4 === void 0 ? void 0 : _locale$ProEnum4.errorNoEnumType);
229
- return;
230
+ // return;
230
231
  }
231
232
  var transToLabel = function transToLabel(value) {
232
233
  var list = dataList && dataList.length ? dataList : enumLists;
@@ -271,7 +272,7 @@ var ProEnum = function ProEnum(props) {
271
272
  };
272
273
  return isFunction(props.optionRender) && record.length ? _optionRender() : labelList === null || labelList === void 0 ? void 0 : labelList.join(',');
273
274
  };
274
- if (isView) {
275
+ if (_isView) {
275
276
  if (Array.isArray(value)) {
276
277
  return _jsx(Container, {
277
278
  tooltip: true,
@@ -1,6 +1,8 @@
1
1
  @root-entry-name: 'default';
2
2
  @import (reference) '~antd/es/style/themes/index.less';
3
3
 
4
+ @zaui-disabled-bg: var(--zaui-disabled-bg);
5
+
4
6
  .pro-enum {
5
7
  &-tag-root {
6
8
  display: flex;
@@ -19,7 +21,7 @@
19
21
  justify-content: center;
20
22
  margin-right: var(--zaui-space-size-sm);
21
23
  padding: var(--zaui-space-size-xs) 10px;
22
- background-color: #f5f5f5;
24
+ background-color: var(--zaui-disabled-bg);
23
25
  border-radius: var(--zaui-space-size-xs);
24
26
  cursor: pointer;
25
27
  }
@@ -29,7 +31,7 @@
29
31
  background-color: var(--zaui-brand);
30
32
  }
31
33
  &-tag-item-disabled {
32
- background-color: #f5f5f5;
34
+ background-color: var(--zaui-disabled-bg);
33
35
  pointer-events: none;
34
36
  }
35
37
 
@@ -90,12 +92,20 @@
90
92
 
91
93
  .pro-enum-group-item-disabled {
92
94
  color: rgba(0, 0, 0, 0.25);
93
- background: #f5f5f5;
95
+ background: var(--zaui-disabled-bg);
94
96
  cursor: not-allowed;
95
97
  }
96
98
  }
97
99
 
98
100
  &-group-root-disabled {
99
- opacity: 0.7;
101
+ color: var(--zaui-aide-text);
102
+
103
+ .pro-enum-group-item {
104
+ background: var(--zaui-disabled-bg);
105
+ &.pro-enum-group-item-selected {
106
+ background: var(--zaui-brand-disabled);
107
+ border-color: var(--zaui-brand-disabled);
108
+ }
109
+ }
100
110
  }
101
111
  }
@@ -5,7 +5,7 @@ interface EnumRes {
5
5
  [key: string]: any;
6
6
  }
7
7
  export declare function getEnumData(storage: StorageType, cacheKey: string, baseEnumStorage?: any): EnumRes;
8
- export declare function setEnumData(storage: StorageType, cacheKey: string, data: Object): void;
8
+ export declare function setEnumData(storage: StorageType, cacheKey: string, data: any): boolean;
9
9
  export declare function hasEnumList(storage: StorageType, cacheKey: any, code: string): DataOption[];
10
10
  export declare function isObject(obj: any): boolean;
11
11
  export declare function mergeCacheData(storage: string, code: string, cacheKey: string, responseData: any): void;
@@ -13,6 +13,10 @@ export function getEnumData(storage, cacheKey, baseEnumStorage) {
13
13
  }
14
14
  }
15
15
  export function setEnumData(storage, cacheKey, data) {
16
+ var _Object$keys;
17
+ if (!((_Object$keys = Object.keys(data === null || data === void 0 ? void 0 : data.data)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length)) {
18
+ return false;
19
+ }
16
20
  if (storage === 'localStorage') {
17
21
  window.localStorage.setItem(cacheKey, JSON.stringify(data));
18
22
  } else if (storage === 'sessionStorage') {
@@ -9,11 +9,12 @@ import ProCollapse from '../../../../ProLayout/components/ProCollapse';
9
9
  import ProForm from '../../../../ProForm';
10
10
  var Container = function Container(props) {
11
11
  var children = props.children,
12
- otherProps = props.otherProps,
13
12
  className = props.className,
14
13
  container = props.container,
15
14
  show = props.show,
16
- clearNotShow = props.clearNotShow;
15
+ clearNotShow = props.clearNotShow,
16
+ diffConfig = props.diffConfig,
17
+ otherProps = props.otherProps;
17
18
  var _ref = ProForm.useFieldProps() || {},
18
19
  type = _ref.type,
19
20
  form = _ref.form,
@@ -38,7 +39,8 @@ var Container = function Container(props) {
38
39
  var childRender = function childRender() {
39
40
  var child = _jsx(RenderFields, _objectSpread({
40
41
  columns: _children,
41
- form: form
42
+ form: form,
43
+ diffConfig: diffConfig
42
44
  }, otherProps));
43
45
  if (type === 'ProCollapse') {
44
46
  return _jsx(ProCollapse, _objectSpread(_objectSpread({}, omit(props, ['otherProps', 'children', 'onBlur', 'onChange', 'placeholder', 'className'])), {}, {
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { RowProps } from 'antd';
3
- import { ProColumnProps, ProFormOtherProps } from '../../../propsType';
3
+ import { ProColumnProps, ProFormOtherProps, DiffConfigProps } from '../../../propsType';
4
4
  export interface ContainerProps {
5
5
  children?: ProColumnProps[];
6
6
  otherProps?: ProFormOtherProps;
@@ -8,5 +8,6 @@ export interface ContainerProps {
8
8
  className?: string;
9
9
  container?: string | React.ReactNode;
10
10
  show?: boolean | (() => boolean);
11
+ diffConfig?: DiffConfigProps;
11
12
  clearNotShow?: boolean;
12
13
  }
@@ -133,7 +133,7 @@ var ActionButton = function ActionButton(props) {
133
133
  return _actionProps;
134
134
  }, [props.actionProps]);
135
135
  var handleClick = /*#__PURE__*/function () {
136
- var _ref6 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(defaultCallback, callback, index, item) {
136
+ var _ref6 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(defaultCallback, callback, index, item) {
137
137
  var value, data;
138
138
  return _regeneratorRuntime().wrap(function _callee$(_context) {
139
139
  while (1) switch (_context.prev = _context.next) {
@@ -272,7 +272,7 @@ var ActionButton = function ActionButton(props) {
272
272
  },
273
273
  children: label
274
274
  }))
275
- }), "".concat(item === null || item === void 0 ? void 0 : item.type).concat(index)) : ( /*#__PURE__*/_createElement(_Button, _objectSpread(_objectSpread({}, rest), {}, {
275
+ }), "".concat(item === null || item === void 0 ? void 0 : item.type).concat(index)) : (/*#__PURE__*/_createElement(_Button, _objectSpread(_objectSpread({}, rest), {}, {
276
276
  key: "".concat(item === null || item === void 0 ? void 0 : item.type).concat(index),
277
277
  type: "text",
278
278
  onClick: function onClick(e) {
@@ -13,7 +13,7 @@ var BlockTitle = function BlockTitle(props) {
13
13
  if (!title) {
14
14
  return _jsx("div", {});
15
15
  }
16
- if ( /*#__PURE__*/React.isValidElement(title)) {
16
+ if (/*#__PURE__*/React.isValidElement(title)) {
17
17
  return title;
18
18
  }
19
19
  var titleContent = title;
@@ -55,7 +55,7 @@ var ToolbarButton = function ToolbarButton(props) {
55
55
  return _toolbarProps;
56
56
  }, [props.toolbarProps]);
57
57
  var handleClick = /*#__PURE__*/function () {
58
- var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(defaultCallback, callback, item) {
58
+ var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(defaultCallback, callback, item) {
59
59
  var value, data;
60
60
  return _regeneratorRuntime().wrap(function _callee$(_context) {
61
61
  while (1) switch (_context.prev = _context.next) {