@zat-design/sisyphus-react 3.9.0-beta.2 → 3.9.0-beta.21

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 (260) hide show
  1. package/dist/index.esm.css +41 -15
  2. package/dist/less.esm.css +37 -13
  3. package/es/ProAction/index.js +5 -5
  4. package/es/ProDownload/index.d.ts +1 -1
  5. package/es/ProDownload/index.js +3 -3
  6. package/es/ProDownload/utils.js +3 -3
  7. package/es/ProDrawerForm/components/ProDrawer/index.js +7 -5
  8. package/es/ProDrawerForm/components/ProModal/index.js +8 -6
  9. package/es/ProDrawerForm/propsType.d.ts +1 -0
  10. package/es/ProEditLabel/index.js +3 -3
  11. package/es/ProEditTable/components/ActionButton/index.d.ts +1 -1
  12. package/es/ProEditTable/components/ActionButton/index.js +3 -3
  13. package/es/ProEditTable/components/RcTable/BaseTable.d.ts +1 -1
  14. package/es/ProEditTable/components/RcTable/DraggableTable.d.ts +1 -1
  15. package/es/ProEditTable/components/RcTable/VirtualTable.d.ts +1 -1
  16. package/es/ProEditTable/components/RenderField/ListChangedWrapper.js +7 -3
  17. package/es/ProEditTable/components/RenderField/index.d.ts +1 -1
  18. package/es/ProEditTable/components/RenderField/index.js +8 -7
  19. package/es/ProEditTable/components/RenderToolbar/index.d.ts +1 -1
  20. package/es/ProEditTable/components/RenderToolbar/index.js +1 -1
  21. package/es/ProEditTable/components/Summary/index.d.ts +1 -1
  22. package/es/ProEditTable/index.js +23 -16
  23. package/es/ProEditTable/style/index.less +14 -2
  24. package/es/ProEditTable/utils/config.d.ts +1 -1
  25. package/es/ProEditTable/utils/config.js +2 -2
  26. package/es/ProEditTable/utils/index.js +5 -5
  27. package/es/ProEditTable/utils/tools.js +4 -4
  28. package/es/ProEnum/components/Group.d.ts +1 -1
  29. package/es/ProEnum/components/Tag.d.ts +1 -1
  30. package/es/ProEnum/hooks/useEnumRequest.js +2 -2
  31. package/es/ProEnum/index.d.ts +2 -2
  32. package/es/ProEnum/index.js +7 -5
  33. package/es/ProEnum/propsType.d.ts +1 -0
  34. package/es/ProEnum/utils/eventCenter.js +2 -1
  35. package/es/ProEnum/utils/getEnumLabel.d.ts +1 -1
  36. package/es/ProForm/components/base/Input/index.d.ts +1 -1
  37. package/es/ProForm/components/base/SwitchCheckbox/index.js +9 -2
  38. package/es/ProForm/components/combination/FormList/components/ActionButton.js +2 -2
  39. package/es/ProForm/components/combination/FormList/components/BlockTitle.js +1 -1
  40. package/es/ProForm/components/combination/FormList/components/ToolbarButton.js +1 -1
  41. package/es/ProForm/components/combination/FormList/utils.js +1 -1
  42. package/es/ProForm/components/combination/Group/component/ComRender.d.ts +1 -0
  43. package/es/ProForm/components/combination/Group/component/ComRender.js +13 -2
  44. package/es/ProForm/components/combination/Group/index.js +4 -3
  45. package/es/ProForm/components/combination/ProCascader/index.d.ts +1 -1
  46. package/es/ProForm/components/combination/ProCascader/index.js +8 -8
  47. package/es/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +1 -1
  48. package/es/ProForm/components/combination/ProModalSelect/index.js +7 -6
  49. package/es/ProForm/components/old/InputRange/index.d.ts +1 -1
  50. package/es/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
  51. package/es/ProForm/components/old/ProAddress/index.d.ts +2 -1
  52. package/es/ProForm/components/old/ProAddress/index.js +1 -1
  53. package/es/ProForm/components/old/ProRangeBox/index.d.ts +2 -1
  54. package/es/ProForm/components/render/ChangedWrapper.js +1 -2
  55. package/es/ProForm/components/render/ConfirmWrapper.js +1 -1
  56. package/es/ProForm/components/render/Render.js +3 -3
  57. package/es/ProForm/components/render/RenderFields.js +3 -2
  58. package/es/ProForm/components/render/propsType.d.ts +1 -0
  59. package/es/ProForm/index.js +1 -1
  60. package/es/ProForm/style/index.less +8 -5
  61. package/es/ProForm/utils/diffOriginal.js +18 -12
  62. package/es/ProForm/utils/index.js +10 -14
  63. package/es/ProForm/utils/useForm.js +1 -1
  64. package/es/ProIcon/utils/index.js +3 -4
  65. package/es/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +1 -1
  66. package/es/ProLayout/components/Layout/Menu/OpenMenu/index.js +3 -3
  67. package/es/ProLayout/components/ProCollapse/index.d.ts +1 -1
  68. package/es/ProLayout/components/ProFooter/index.d.ts +1 -1
  69. package/es/ProLayout/components/ProHeader/components/Copy/index.d.ts +1 -1
  70. package/es/ProLayout/components/ProHeader/index.d.ts +1 -1
  71. package/es/ProLayout/index.d.ts +4 -4
  72. package/es/ProLayout/utils/index.js +9 -9
  73. package/es/ProSelect/components/AdaptiveTooltip.d.ts +1 -1
  74. package/es/ProSelect/index.d.ts +1 -1
  75. package/es/ProStep/components/Anchor/index.d.ts +1 -1
  76. package/es/ProStep/components/Item/index.d.ts +1 -1
  77. package/es/ProStep/components/Listener/index.js +1 -1
  78. package/es/ProStep/components/Step/index.d.ts +1 -1
  79. package/es/ProStep/index.d.ts +2 -2
  80. package/es/ProStep/index.js +3 -3
  81. package/es/ProTable/components/FormatColumn/index.d.ts +5 -3
  82. package/es/ProTable/components/FormatColumn/index.js +95 -74
  83. package/es/ProTable/components/RcTable/components/BaseTable/index.d.ts +1 -1
  84. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +2 -2
  85. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/index.js +8 -9
  86. package/es/ProTable/components/RcTable/components/DraggableTable/index.d.ts +1 -1
  87. package/es/ProTable/components/RenderColumn/index.d.ts +1 -1
  88. package/es/ProTable/components/RenderColumn/index.js +29 -11
  89. package/es/ProTable/components/RenderFooter/index.d.ts +1 -1
  90. package/es/ProTable/components/RenderTableHeader/index.d.ts +1 -1
  91. package/es/ProTable/components/TableResizable/index.d.ts +1 -1
  92. package/es/ProTable/components/TableResizable/index.js +1 -5
  93. package/es/ProTable/hooks/useAntdTable.js +3 -3
  94. package/es/ProTable/index.d.ts +6 -5
  95. package/es/ProTable/index.js +6 -8
  96. package/es/ProTable/propsType.d.ts +2 -1
  97. package/es/ProTable/style/index.less +10 -1
  98. package/es/ProTable/utils/index.d.ts +5 -2
  99. package/es/ProTable/utils/index.js +13 -4
  100. package/es/ProTabs/components/Card/index.d.ts +1 -1
  101. package/es/ProThemeTools/component/ProTools/index.d.ts +1 -1
  102. package/es/ProThemeTools/index.d.ts +1 -1
  103. package/es/ProTooltip/index.d.ts +1 -1
  104. package/es/ProTree/components/AdaptiveTooltip.d.ts +1 -1
  105. package/es/ProTree/components/CloseIcon.d.ts +2 -1
  106. package/es/ProTree/components/List.d.ts +1 -1
  107. package/es/ProTree/components/ProTree.d.ts +1 -1
  108. package/es/ProTree/components/ProTree.js +1 -1
  109. package/es/ProTree/components/ProTreeSelect/index.d.ts +1 -1
  110. package/es/ProTree/components/ProTreeSelect/index.js +50 -31
  111. package/es/ProTree/components/SearchTitle.d.ts +1 -1
  112. package/es/ProTree/components/Tree.d.ts +1 -1
  113. package/es/ProTree/components/Tree.js +4 -4
  114. package/es/ProTree/index.d.ts +1 -1
  115. package/es/ProTree/utils.js +11 -12
  116. package/es/ProTreeModal/components/Cascader.d.ts +1 -1
  117. package/es/ProTreeModal/components/CloseIcon.d.ts +2 -1
  118. package/es/ProTreeModal/components/SearchTitle.d.ts +1 -1
  119. package/es/ProTreeModal/components/Tree.js +6 -6
  120. package/es/ProTreeModal/components/Trigger.d.ts +1 -1
  121. package/es/ProTreeModal/index.d.ts +1 -1
  122. package/es/ProTreeModal/index.js +3 -3
  123. package/es/ProTreeModal/utils.js +14 -16
  124. package/es/ProUpload/components/DraggableUploadListItem.d.ts +1 -1
  125. package/es/ProUpload/components/ImageRender.js +1 -1
  126. package/es/ProViewer/index.js +2 -2
  127. package/es/old/ProEditableTable/index.js +4 -4
  128. package/es/style/theme/antd.less +4 -2
  129. package/es/utils/index.d.ts +1 -1
  130. package/es/utils/index.js +4 -1
  131. package/lib/ProAction/index.js +5 -5
  132. package/lib/ProDownload/index.d.ts +1 -1
  133. package/lib/ProDownload/index.js +3 -3
  134. package/lib/ProDownload/utils.js +3 -3
  135. package/lib/ProDrawerForm/components/ProDrawer/index.js +7 -5
  136. package/lib/ProDrawerForm/components/ProModal/index.js +8 -6
  137. package/lib/ProDrawerForm/propsType.d.ts +1 -0
  138. package/lib/ProEditLabel/index.js +3 -3
  139. package/lib/ProEditTable/components/ActionButton/index.d.ts +1 -1
  140. package/lib/ProEditTable/components/ActionButton/index.js +3 -3
  141. package/lib/ProEditTable/components/RcTable/BaseTable.d.ts +1 -1
  142. package/lib/ProEditTable/components/RcTable/DraggableTable.d.ts +1 -1
  143. package/lib/ProEditTable/components/RcTable/VirtualTable.d.ts +1 -1
  144. package/lib/ProEditTable/components/RenderField/ListChangedWrapper.js +5 -1
  145. package/lib/ProEditTable/components/RenderField/index.d.ts +1 -1
  146. package/lib/ProEditTable/components/RenderField/index.js +8 -7
  147. package/lib/ProEditTable/components/RenderToolbar/index.d.ts +1 -1
  148. package/lib/ProEditTable/components/RenderToolbar/index.js +1 -1
  149. package/lib/ProEditTable/components/Summary/index.d.ts +1 -1
  150. package/lib/ProEditTable/index.js +23 -16
  151. package/lib/ProEditTable/style/index.less +14 -2
  152. package/lib/ProEditTable/utils/config.d.ts +1 -1
  153. package/lib/ProEditTable/utils/config.js +2 -2
  154. package/lib/ProEditTable/utils/index.js +5 -5
  155. package/lib/ProEditTable/utils/tools.js +4 -4
  156. package/lib/ProEnum/components/Group.d.ts +1 -1
  157. package/lib/ProEnum/components/Tag.d.ts +1 -1
  158. package/lib/ProEnum/hooks/useEnumRequest.js +2 -2
  159. package/lib/ProEnum/index.d.ts +2 -2
  160. package/lib/ProEnum/index.js +7 -5
  161. package/lib/ProEnum/propsType.d.ts +1 -0
  162. package/lib/ProEnum/utils/eventCenter.js +2 -1
  163. package/lib/ProEnum/utils/getEnumLabel.d.ts +1 -1
  164. package/lib/ProForm/components/base/Input/index.d.ts +1 -1
  165. package/lib/ProForm/components/base/SwitchCheckbox/index.js +9 -2
  166. package/lib/ProForm/components/combination/FormList/components/ActionButton.js +2 -2
  167. package/lib/ProForm/components/combination/FormList/components/BlockTitle.js +1 -1
  168. package/lib/ProForm/components/combination/FormList/components/ToolbarButton.js +1 -1
  169. package/lib/ProForm/components/combination/FormList/utils.js +1 -1
  170. package/lib/ProForm/components/combination/Group/component/ComRender.d.ts +1 -0
  171. package/lib/ProForm/components/combination/Group/component/ComRender.js +13 -2
  172. package/lib/ProForm/components/combination/Group/index.js +4 -3
  173. package/lib/ProForm/components/combination/ProCascader/index.d.ts +1 -1
  174. package/lib/ProForm/components/combination/ProCascader/index.js +8 -8
  175. package/lib/ProForm/components/combination/ProModalSelect/hooks/useRequestList.js +1 -1
  176. package/lib/ProForm/components/combination/ProModalSelect/index.js +7 -6
  177. package/lib/ProForm/components/old/InputRange/index.d.ts +1 -1
  178. package/lib/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
  179. package/lib/ProForm/components/old/ProAddress/index.d.ts +2 -1
  180. package/lib/ProForm/components/old/ProAddress/index.js +1 -1
  181. package/lib/ProForm/components/old/ProRangeBox/index.d.ts +2 -1
  182. package/lib/ProForm/components/render/ChangedWrapper.js +1 -2
  183. package/lib/ProForm/components/render/ConfirmWrapper.js +1 -1
  184. package/lib/ProForm/components/render/Render.js +3 -3
  185. package/lib/ProForm/components/render/RenderFields.js +3 -2
  186. package/lib/ProForm/components/render/propsType.d.ts +1 -0
  187. package/lib/ProForm/index.js +1 -1
  188. package/lib/ProForm/style/index.less +8 -5
  189. package/lib/ProForm/utils/diffOriginal.js +18 -12
  190. package/lib/ProForm/utils/index.js +10 -10
  191. package/lib/ProForm/utils/useForm.js +1 -1
  192. package/lib/ProIcon/utils/index.js +3 -3
  193. package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +1 -1
  194. package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.js +3 -3
  195. package/lib/ProLayout/components/ProCollapse/index.d.ts +1 -1
  196. package/lib/ProLayout/components/ProFooter/index.d.ts +1 -1
  197. package/lib/ProLayout/components/ProHeader/components/Copy/index.d.ts +1 -1
  198. package/lib/ProLayout/components/ProHeader/index.d.ts +1 -1
  199. package/lib/ProLayout/index.d.ts +4 -4
  200. package/lib/ProLayout/utils/index.js +9 -9
  201. package/lib/ProSelect/components/AdaptiveTooltip.d.ts +1 -1
  202. package/lib/ProSelect/index.d.ts +1 -1
  203. package/lib/ProStep/components/Anchor/index.d.ts +1 -1
  204. package/lib/ProStep/components/Item/index.d.ts +1 -1
  205. package/lib/ProStep/components/Listener/index.js +1 -1
  206. package/lib/ProStep/components/Step/index.d.ts +1 -1
  207. package/lib/ProStep/index.d.ts +2 -2
  208. package/lib/ProStep/index.js +3 -3
  209. package/lib/ProTable/components/FormatColumn/index.d.ts +5 -3
  210. package/lib/ProTable/components/FormatColumn/index.js +94 -73
  211. package/lib/ProTable/components/RcTable/components/BaseTable/index.d.ts +1 -1
  212. package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/index.js +2 -2
  213. package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/index.js +8 -8
  214. package/lib/ProTable/components/RcTable/components/DraggableTable/index.d.ts +1 -1
  215. package/lib/ProTable/components/RenderColumn/index.d.ts +1 -1
  216. package/lib/ProTable/components/RenderColumn/index.js +29 -11
  217. package/lib/ProTable/components/RenderFooter/index.d.ts +1 -1
  218. package/lib/ProTable/components/RenderTableHeader/index.d.ts +1 -1
  219. package/lib/ProTable/components/TableResizable/index.d.ts +1 -1
  220. package/lib/ProTable/components/TableResizable/index.js +0 -4
  221. package/lib/ProTable/hooks/useAntdTable.js +3 -3
  222. package/lib/ProTable/index.d.ts +6 -5
  223. package/lib/ProTable/index.js +6 -8
  224. package/lib/ProTable/propsType.d.ts +2 -1
  225. package/lib/ProTable/style/index.less +10 -1
  226. package/lib/ProTable/utils/index.d.ts +5 -2
  227. package/lib/ProTable/utils/index.js +13 -4
  228. package/lib/ProTabs/components/Card/index.d.ts +1 -1
  229. package/lib/ProThemeTools/component/ProTools/index.d.ts +1 -1
  230. package/lib/ProThemeTools/index.d.ts +1 -1
  231. package/lib/ProTooltip/index.d.ts +1 -1
  232. package/lib/ProTree/components/AdaptiveTooltip.d.ts +1 -1
  233. package/lib/ProTree/components/CloseIcon.d.ts +2 -1
  234. package/lib/ProTree/components/List.d.ts +1 -1
  235. package/lib/ProTree/components/ProTree.d.ts +1 -1
  236. package/lib/ProTree/components/ProTree.js +1 -1
  237. package/lib/ProTree/components/ProTreeSelect/index.d.ts +1 -1
  238. package/lib/ProTree/components/ProTreeSelect/index.js +49 -30
  239. package/lib/ProTree/components/SearchTitle.d.ts +1 -1
  240. package/lib/ProTree/components/Tree.d.ts +1 -1
  241. package/lib/ProTree/components/Tree.js +4 -4
  242. package/lib/ProTree/index.d.ts +1 -1
  243. package/lib/ProTree/utils.js +11 -11
  244. package/lib/ProTreeModal/components/Cascader.d.ts +1 -1
  245. package/lib/ProTreeModal/components/CloseIcon.d.ts +2 -1
  246. package/lib/ProTreeModal/components/SearchTitle.d.ts +1 -1
  247. package/lib/ProTreeModal/components/Tree.js +6 -6
  248. package/lib/ProTreeModal/components/Trigger.d.ts +1 -1
  249. package/lib/ProTreeModal/index.d.ts +1 -1
  250. package/lib/ProTreeModal/index.js +3 -3
  251. package/lib/ProTreeModal/utils.js +13 -13
  252. package/lib/ProUpload/components/DraggableUploadListItem.d.ts +1 -1
  253. package/lib/ProUpload/components/ImageRender.js +1 -1
  254. package/lib/ProViewer/index.js +2 -2
  255. package/lib/old/ProEditableTable/index.js +4 -4
  256. package/lib/style/theme/antd.less +4 -2
  257. package/lib/utils/index.d.ts +1 -1
  258. package/lib/utils/index.js +4 -1
  259. package/package.json +1 -1
  260. package/.vscode/extensions.json +0 -5
@@ -12,5 +12,5 @@ export interface InputRangeProps {
12
12
  isPositiveInteger?: boolean;
13
13
  precision?: number;
14
14
  }
15
- declare const InputRange: ({ value, onChange, min, max, group, disabled, precision, isPositiveInteger, }: InputRangeProps) => import("react/jsx-runtime").JSX.Element;
15
+ declare const InputRange: ({ value, onChange, min, max, group, disabled, precision, isPositiveInteger, }: InputRangeProps) => JSX.Element;
16
16
  export default InputRange;
@@ -1,3 +1,3 @@
1
1
  import { comPropsType } from './propsTypes';
2
- declare const InputWithSuffix: (props: comPropsType) => import("react/jsx-runtime").JSX.Element;
2
+ declare const InputWithSuffix: (props: comPropsType) => JSX.Element;
3
3
  export default InputWithSuffix;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ProAddressPropsType } from './propsTypes';
2
3
  export declare const transferAddressInfoToRegion: () => {
3
4
  normalize: (value: any) => {
@@ -23,5 +24,5 @@ export declare const transferAddressInfoToRegion: () => {
23
24
  };
24
25
  };
25
26
  };
26
- export declare function ProAddress({ ...props }: ProAddressPropsType): import("react/jsx-runtime").JSX.Element;
27
+ export declare function ProAddress({ ...props }: ProAddressPropsType): JSX.Element;
27
28
  export default ProAddress;
@@ -92,7 +92,7 @@ export function ProAddress(_ref3) {
92
92
  secondCitys = _useState6[0],
93
93
  setSecondCitys = _useState6[1];
94
94
  var queryCity = /*#__PURE__*/function () {
95
- var _ref5 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(code, type) {
95
+ var _ref5 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(code, type) {
96
96
  var cityList, _cityList, newList, _secondCitys;
97
97
  return _regeneratorRuntime().wrap(function _callee$(_context) {
98
98
  while (1) switch (_context.prev = _context.next) {
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { ProRangeBoxPropsType } from './propsType';
2
- export default function ProRangeBox({ configOption }: ProRangeBoxPropsType): import("react/jsx-runtime").JSX.Element;
3
+ export default function ProRangeBox({ configOption }: ProRangeBoxPropsType): JSX.Element;
@@ -29,7 +29,6 @@ var ChangedWrapper = function ChangedWrapper(props) {
29
29
  getValueProps = props.getValueProps,
30
30
  viewRender = props.viewRender,
31
31
  rest = _objectWithoutProperties(props, _excluded);
32
- // const contentRef = useRef(null);
33
32
  var _useProConfig = useProConfig('ProForm'),
34
33
  isDiffAll = _useProConfig.isDiffAll;
35
34
  var originalValues = diffConfig.originalValues,
@@ -103,7 +102,7 @@ var ChangedWrapper = function ChangedWrapper(props) {
103
102
  getPopupContainer: function getPopupContainer(trigger) {
104
103
  return scrollFollowParent ? trigger.parentElement : document.body;
105
104
  },
106
- overlayClassName: "original-value-tootip",
105
+ overlayClassName: "original-value-tooltip",
107
106
  placement: "topLeft",
108
107
  autoAdjustOverflow: false,
109
108
  title: _jsxs(_Space, {
@@ -22,7 +22,7 @@ var ConfirmWrapper = function ConfirmWrapper(props) {
22
22
  var _ProForm$useFieldProp = ProForm.useFieldProps(),
23
23
  form = _ProForm$useFieldProp.form;
24
24
  var handleChange = /*#__PURE__*/function () {
25
- var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(value) {
25
+ var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(value) {
26
26
  var _len,
27
27
  other,
28
28
  _key,
@@ -241,7 +241,7 @@ var Render = function Render(props) {
241
241
  _args = functionArgs([].concat(args));
242
242
  }
243
243
  var inList = _otherFormItemProps === null || _otherFormItemProps === void 0 ? void 0 : (_otherFormItemProps$n3 = _otherFormItemProps.namePath) === null || _otherFormItemProps$n3 === void 0 ? void 0 : _otherFormItemProps$n3.length;
244
- if (/*#__PURE__*/React.isValidElement(AutoComponent)) {
244
+ if ( /*#__PURE__*/React.isValidElement(AutoComponent)) {
245
245
  var _AutoComponent$props$, _AutoComponent$props, _lastComponentProps$c;
246
246
  ((_AutoComponent$props$ = (_AutoComponent$props = AutoComponent === null || AutoComponent === void 0 ? void 0 : AutoComponent.props)[changeKey]) === null || _AutoComponent$props$ === void 0 ? void 0 : _AutoComponent$props$.call.apply(_AutoComponent$props$, [_AutoComponent$props].concat(_toConsumableArray(_args)))) || ((_lastComponentProps$c = lastComponentProps[changeKey]) === null || _lastComponentProps$c === void 0 ? void 0 : _lastComponentProps$c.call.apply(_lastComponentProps$c, [lastComponentProps].concat(_toConsumableArray(_args))));
247
247
  return false;
@@ -291,7 +291,7 @@ var Render = function Render(props) {
291
291
  * onBlur参数重置 (value, record, { form, index, namePath, option }) => void
292
292
  */
293
293
  var handleBlur = /*#__PURE__*/function () {
294
- var _ref7 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
294
+ var _ref7 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
295
295
  var _len3,
296
296
  args,
297
297
  _key3,
@@ -374,7 +374,7 @@ var Render = function Render(props) {
374
374
  if (originComponent) {
375
375
  delete childProps.otherProps;
376
376
  }
377
- var child = /*#__PURE__*/React.isValidElement(AutoComponent) ? (/*#__PURE__*/React.cloneElement(AutoComponent, childProps)) : _jsx(AutoComponent, _objectSpread(_objectSpread({}, omit(lastComponentProps, [].concat(lastComponentPropsFilter, ['debounceWait']))), {}, {
377
+ var child = /*#__PURE__*/React.isValidElement(AutoComponent) ? ( /*#__PURE__*/React.cloneElement(AutoComponent, childProps)) : _jsx(AutoComponent, _objectSpread(_objectSpread({}, omit(lastComponentProps, [].concat(lastComponentPropsFilter, ['debounceWait']))), {}, {
378
378
  otherProps: _objectSpread(_objectSpread({}, otherProps), {}, {
379
379
  show: show,
380
380
  disabled: lastDisabled,
@@ -1,6 +1,6 @@
1
1
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
2
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
3
- var _excluded = ["show", "type", "viewRender", "viewType", "valueType", "formItemProps", "colProps", "formItemChildProps", "fieldProps", "equalWith", "clearNotShow", "required", "confirm"];
3
+ var _excluded = ["show", "type", "viewRender", "viewType", "valueType", "formItemProps", "colProps", "formItemChildProps", "fieldProps", "equalWith", "onDiff", "clearNotShow", "required", "confirm"];
4
4
  import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
5
5
  import React from 'react';
6
6
  import { isBoolean, isFunction, union, isString } from 'lodash';
@@ -69,6 +69,7 @@ var RenderFields = function RenderFields(props) {
69
69
  _column$fieldProps = column.fieldProps,
70
70
  fieldProps = _column$fieldProps === void 0 ? {} : _column$fieldProps,
71
71
  equalWith = column.equalWith,
72
+ onDiff = column.onDiff,
72
73
  _column$clearNotShow = column.clearNotShow,
73
74
  clearNotShow = _column$clearNotShow === void 0 ? outerClearNotShow : _column$clearNotShow,
74
75
  columnRequired = column.required,
@@ -208,7 +209,7 @@ var RenderFields = function RenderFields(props) {
208
209
  fieldProps: isFunction(fieldProps) ? fieldProps : null,
209
210
  isSelect: _isSelect,
210
211
  diffConfig: diffConfig,
211
- equalWith: equalWith,
212
+ equalWith: onDiff || equalWith,
212
213
  requiredOnView: requiredOnView,
213
214
  globalControl: globalControl,
214
215
  viewRender: viewRender
@@ -207,6 +207,7 @@ export interface ProFormColumnProps<Values = any> extends Omit<FormItemProps<Val
207
207
  hiddenNames?: string[] | any[];
208
208
  rules?: ProRule[] | ReactiveFunction<Values, ProRule[]>;
209
209
  equalWith?: DiffOriginalParams['equalWith'];
210
+ onDiff?: DiffOriginalParams['equalWith'];
210
211
  required?: boolean | boolean[] | ReactiveFunction<Values, boolean | boolean[]>;
211
212
  labelRequired?: boolean;
212
213
  toISOString?: boolean;
@@ -200,7 +200,7 @@ var ProForm = function ProForm(props, ref) {
200
200
  if (isView || disabled) {
201
201
  // 查看或禁用模式
202
202
  footerEle = null;
203
- } else if (/*#__PURE__*/React.isValidElement(footer)) {
203
+ } else if ( /*#__PURE__*/React.isValidElement(footer)) {
204
204
  // 传入组件渲染组件
205
205
  footerEle = footer;
206
206
  } else if (footer === undefined || footer || isObject(footer)) {
@@ -385,7 +385,7 @@
385
385
  }
386
386
 
387
387
  // checkbox
388
- .@{ant-prefix}-checkbox-group {
388
+ .@{ant-prefix}-checkbox-group,.pro-switch-checkbox {
389
389
  padding: 5px 0
390
390
  }
391
391
  // switch
@@ -412,7 +412,7 @@
412
412
  background: @zaui-contract-bg-add !important;
413
413
 
414
414
  .@{ant-prefix}-input {
415
- background: @zaui-contract-bg !important;
415
+ background: @zaui-contract-bg-add !important;
416
416
  }
417
417
 
418
418
  .@{ant-prefix}-select.@{ant-prefix}-select-disabled .@{ant-prefix}-select-selector{
@@ -463,7 +463,7 @@
463
463
  }
464
464
 
465
465
  // checkbox
466
- .@{ant-prefix}-checkbox-group {
466
+ .@{ant-prefix}-checkbox-group,.pro-switch-checkbox {
467
467
  padding: 5px 0
468
468
  }
469
469
  // switch
@@ -485,10 +485,9 @@
485
485
  }
486
486
  }
487
487
 
488
- .original-value-tootip{
488
+ .original-value-tooltip{
489
489
  max-width: 100%;
490
490
  width: max-content;
491
- position: fixed;
492
491
  .changed-tooltip {
493
492
  .original-value-container {
494
493
  .ant-space-item:nth-child(1) {
@@ -511,3 +510,7 @@
511
510
  }
512
511
  }
513
512
 
513
+ .original-value-tooltip-fixed {
514
+ position: fixed;
515
+ }
516
+
@@ -1,15 +1,17 @@
1
1
  import { isEqual, isFunction, isObject } from 'lodash';
2
2
  import { isEmpty } from '../../utils';
3
3
  // 过滤对象中undefined字段
4
- // 防止{a: '1'} {a: '1', b: undefined}被认为不相等
5
- var filterUndefined = function filterUndefined(data) {
4
+ // 防止{a: '1'} {a: '1', b: undefined | null}被认为不相等
5
+ var filterObject = function filterObject(data) {
6
6
  if (!isObject(data) || Array.isArray(data) || data === null) return data;
7
7
  var resData = {};
8
8
  Object.keys(data).forEach(function (key) {
9
- if (data[key] !== undefined) {
9
+ if (!isEmpty(data[key])) {
10
10
  resData[key] = data[key];
11
11
  }
12
12
  });
13
+ // 空对象视为null 比较时 null undefined {} [] '' 视为相等
14
+ if (!Object.keys(resData).length) return null;
13
15
  return resData;
14
16
  };
15
17
  var nullValue = [null, undefined, '']; // 输入框空值时可能存在的三种值 视为相等
@@ -20,18 +22,22 @@ export var diffOriginal = function diffOriginal(params) {
20
22
  // 支持传入自定义比较事件
21
23
  if (isFunction(equalWith)) {
22
24
  var diffRes = equalWith(originalValue, value);
23
- if (diffRes === undefined) return 'same';
24
- if (typeof diffRes === 'boolean') {
25
- return diffRes ? 'same' : 'changed';
25
+ // 如果返回undefined走内置比较逻辑
26
+ if (diffRes !== undefined) {
27
+ if (typeof diffRes === 'boolean') {
28
+ return diffRes ? 'same' : 'changed';
29
+ }
30
+ return diffRes;
26
31
  }
27
- return diffRes;
28
32
  }
33
+ var _value = filterObject(value);
34
+ var _originalValue = filterObject(originalValue);
29
35
  // 如果原始值为空 且当前有值的话 认为变更类型是新增
30
- if (isEmpty(originalValue) && !isEmpty(value)) {
36
+ if (isEmpty(_originalValue) && !isEmpty(_value)) {
31
37
  return 'add';
32
38
  }
33
- if (Array.isArray(originalValue)) {
34
- var isSame = originalValue.every(function (valueItem, index) {
39
+ if (Array.isArray(_originalValue)) {
40
+ var isSame = _originalValue.every(function (valueItem, index) {
35
41
  // 如果两个值有一个不是空值, 则进行深比较
36
42
  if (!isEmpty(value === null || value === void 0 ? void 0 : value[index]) || !isEmpty(valueItem)) {
37
43
  return isEqual(value === null || value === void 0 ? void 0 : value[index], valueItem);
@@ -40,8 +46,8 @@ export var diffOriginal = function diffOriginal(params) {
40
46
  });
41
47
  return isSame ? 'same' : 'changed';
42
48
  }
43
- if (!nullValue.includes(value) || !nullValue.includes(originalValue)) {
44
- return isEqual(filterUndefined(value), filterUndefined(originalValue)) ? 'same' : 'changed';
49
+ if (!isEmpty(_originalValue) || !isEmpty(_value)) {
50
+ return isEqual(_value, _originalValue) ? 'same' : 'changed';
45
51
  }
46
52
  return 'same';
47
53
  };
@@ -120,7 +120,7 @@ export var splitNameStr = function splitNameStr(name) {
120
120
  });
121
121
  };
122
122
  // 过滤掉字段名中包含 '-' 的字段
123
- var _filterInternalFields = function filterInternalFields(values, optimize) {
123
+ export var filterInternalFields = function filterInternalFields(values, optimize) {
124
124
  if (optimize) {
125
125
  return values;
126
126
  }
@@ -134,21 +134,20 @@ var _filterInternalFields = function filterInternalFields(values, optimize) {
134
134
  }
135
135
  if (Array.isArray(nextValues)) {
136
136
  return nextValues.map(function (item) {
137
- return _filterInternalFields(item);
137
+ return filterInternalFields(item);
138
138
  });
139
139
  }
140
140
  if (isObject(nextValues)) {
141
141
  var result = {};
142
142
  Object.keys(nextValues).forEach(function (key) {
143
143
  if (key.includes('-')) return;
144
- result[key] = _filterInternalFields(nextValues[key]);
144
+ result[key] = filterInternalFields(nextValues[key]);
145
145
  });
146
146
  return result;
147
147
  }
148
148
  return nextValues;
149
149
  };
150
- export { _filterInternalFields as filterInternalFields };
151
- var _getAllNamePath = function getAllNamePath(object) {
150
+ export var getAllNamePath = function getAllNamePath(object) {
152
151
  var currentPath = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
153
152
  var keys = Object.keys(object);
154
153
  var resultKeys = [];
@@ -162,14 +161,13 @@ var _getAllNamePath = function getAllNamePath(object) {
162
161
  }
163
162
  // 深度获取对象key
164
163
  if (isObject(value)) {
165
- resultKeys.concat(_getAllNamePath(value, [].concat(_toConsumableArray(currentPath), [key])));
164
+ resultKeys.concat(getAllNamePath(value, [].concat(_toConsumableArray(currentPath), [key])));
166
165
  }
167
166
  resultKeys.push([].concat(_toConsumableArray(currentPath), [key]));
168
167
  });
169
168
  return resultKeys;
170
169
  };
171
170
  // 判断一个字段值是否算空
172
- export { _getAllNamePath as getAllNamePath };
173
171
  var nullList = [undefined, 'null', '""', '[]'];
174
172
  export var isNullValue = function isNullValue(value) {
175
173
  return nullList.includes(JSON.stringify(value));
@@ -306,7 +304,7 @@ export var customEqualForFun = function customEqualForFun(value, other) {
306
304
  /**
307
305
  * 查询数据中是否包含rowKey
308
306
  */
309
- var _hasRowKey = function hasRowKey(obj) {
307
+ export var hasRowKey = function hasRowKey(obj) {
310
308
  if (_typeof(obj) !== 'object' || obj === null) {
311
309
  return false;
312
310
  }
@@ -316,13 +314,12 @@ var _hasRowKey = function hasRowKey(obj) {
316
314
  return true;
317
315
  }
318
316
  return keys.some(function (key) {
319
- return _hasRowKey(obj[key]);
317
+ return hasRowKey(obj[key]);
320
318
  });
321
319
  };
322
320
  /**
323
321
  * 查询数据中是否包含rowKey
324
322
  */
325
- export { _hasRowKey as hasRowKey };
326
323
  export var view = function view(obj) {
327
324
  if (_typeof(obj) !== 'object' || obj === null) {
328
325
  return false;
@@ -333,7 +330,7 @@ export var view = function view(obj) {
333
330
  return true;
334
331
  }
335
332
  return keys.some(function (key) {
336
- return _hasRowKey(obj[key]);
333
+ return hasRowKey(obj[key]);
337
334
  });
338
335
  };
339
336
  /**
@@ -369,7 +366,7 @@ export var deleteForPath = function deleteForPath(values, namePath) {
369
366
  * @param value 选中值
370
367
  * @returns {}
371
368
  */
372
- var _findOptionByValue = function findOptionByValue(treeData, value, fieldNames) {
369
+ export var findOptionByValue = function findOptionByValue(treeData, value, fieldNames) {
373
370
  if (isObject(value)) {
374
371
  return value;
375
372
  }
@@ -379,7 +376,7 @@ var _findOptionByValue = function findOptionByValue(treeData, value, fieldNames)
379
376
  return omit(node, ['children', fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.children]);
380
377
  }
381
378
  if (node.children) {
382
- var foundNode = _findOptionByValue(node[(fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.children) || 'children'], value, fieldNames);
379
+ var foundNode = findOptionByValue(node[(fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.children) || 'children'], value, fieldNames);
383
380
  if (foundNode) {
384
381
  return omit(foundNode, ['children', fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.children]);
385
382
  }
@@ -389,7 +386,6 @@ var _findOptionByValue = function findOptionByValue(treeData, value, fieldNames)
389
386
  /**
390
387
  * 对比依赖列表中的 值是否变更
391
388
  */
392
- export { _findOptionByValue as findOptionByValue };
393
389
  export var equalDependencies = function equalDependencies(dependencies, prevValues, currentValues) {
394
390
  if (dependencies === null || dependencies === void 0 ? void 0 : dependencies.length) {
395
391
  return dependencies.some(function (namePath) {
@@ -38,7 +38,7 @@ export var useForm = function useForm(originForm, options) {
38
38
  return getFieldsValue(nameList, filterFunc);
39
39
  };
40
40
  var _validateFields = /*#__PURE__*/function () {
41
- var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee(nameList) {
41
+ var _ref2 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(nameList) {
42
42
  var _rest$,
43
43
  _len,
44
44
  rest,
@@ -1,6 +1,6 @@
1
1
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
2
  import { themeMap, themeFillMap } from '../config';
3
- var _recurseGetNodes = function recurseGetNodes(type, node, queue) {
3
+ export var recurseGetNodes = function recurseGetNodes(type, node, queue) {
4
4
  switch (type) {
5
5
  // 渐变
6
6
  case 'gradation':
@@ -19,11 +19,10 @@ var _recurseGetNodes = function recurseGetNodes(type, node, queue) {
19
19
  }
20
20
  if (node.childNodes) {
21
21
  for (var i = 0; i < node.childNodes.length; i++) {
22
- _recurseGetNodes(type, node.childNodes[i], queue);
22
+ recurseGetNodes(type, node.childNodes[i], queue);
23
23
  }
24
24
  }
25
25
  };
26
- export { _recurseGetNodes as recurseGetNodes };
27
26
  export var onBeforeInjection = function onBeforeInjection(_ref) {
28
27
  var svg = _ref.svg,
29
28
  actionMap = _ref.actionMap,
@@ -50,7 +49,7 @@ export var onBeforeInjection = function onBeforeInjection(_ref) {
50
49
  // 目前只支持处理渐变及fill填充
51
50
  var types = Reflect.ownKeys(nodeMap !== null && nodeMap !== void 0 ? nodeMap : {});
52
51
  types.forEach(function (typeKey) {
53
- _recurseGetNodes(typeKey, svg, nodeMap[typeKey]);
52
+ recurseGetNodes(typeKey, svg, nodeMap[typeKey]);
54
53
  });
55
54
  if ((gradList === null || gradList === void 0 ? void 0 : gradList.length) > 0) {
56
55
  nodeMap.gradation.forEach(function (item, index) {
@@ -1,3 +1,3 @@
1
1
  import type { OpenMenuPropsType } from './propsType';
2
- declare const OpenMenu: (props: OpenMenuPropsType) => import("react/jsx-runtime").JSX.Element;
2
+ declare const OpenMenu: (props: OpenMenuPropsType) => JSX.Element;
3
3
  export default OpenMenu;
@@ -50,7 +50,7 @@ var OpenMenu = function OpenMenu(props) {
50
50
  if (!Array.isArray(result) || !result.length) {
51
51
  return [];
52
52
  }
53
- var _menuDeep = function menuDeep(data) {
53
+ var menuDeep = function menuDeep(data) {
54
54
  data.forEach(function (item) {
55
55
  var _item$keyIdPath, _item$keyIdPath2, _item$children;
56
56
  // 是否是第一级菜单,展开模式一级菜单有icon, 收起模式二级菜单有icon
@@ -91,7 +91,7 @@ var OpenMenu = function OpenMenu(props) {
91
91
  if ((_item === null || _item === void 0 ? void 0 : _item.hideInMenu) || ['TAB', 'QUERY', 'BUTTON'].includes(_item === null || _item === void 0 ? void 0 : _item.type)) {
92
92
  delete item.children;
93
93
  } else {
94
- _menuDeep(item.children);
94
+ menuDeep(item.children);
95
95
  }
96
96
  } else {
97
97
  delete item.children;
@@ -99,7 +99,7 @@ var OpenMenu = function OpenMenu(props) {
99
99
  });
100
100
  return data;
101
101
  };
102
- _menuDeep(result);
102
+ menuDeep(result);
103
103
  return result;
104
104
  }, [dataSource]);
105
105
  useDeepCompareEffect(function () {
@@ -1,3 +1,3 @@
1
1
  import { ProCollapseProps } from './PropTypes';
2
- declare const ProCollapse: (props: ProCollapseProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const ProCollapse: (props: ProCollapseProps) => JSX.Element;
3
3
  export default ProCollapse;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { ProFooterProps } from './PropTypes';
3
- declare const _default: import("react").MemoExoticComponent<(props: ProFooterProps) => import("react/jsx-runtime").JSX.Element>;
3
+ declare const _default: import("react").MemoExoticComponent<(props: ProFooterProps) => JSX.Element>;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
1
  declare const Copy: ({ text }: {
2
2
  text: any;
3
- }) => import("react/jsx-runtime").JSX.Element;
3
+ }) => JSX.Element;
4
4
  export default Copy;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import type { ProHeaderProps } from './PropTypes';
3
- declare const _default: React.MemoExoticComponent<(props: ProHeaderProps) => import("react/jsx-runtime").JSX.Element>;
3
+ declare const _default: React.MemoExoticComponent<(props: ProHeaderProps) => JSX.Element>;
4
4
  export default _default;
@@ -5,7 +5,7 @@ export declare const LayoutContext: import("react").Context<{
5
5
  onSelected: (params: any) => void;
6
6
  }>;
7
7
  declare const ProLayout: {
8
- (props: ProLayoutProps): import("react/jsx-runtime").JSX.Element;
8
+ (props: ProLayoutProps): JSX.Element;
9
9
  defaultProps: {
10
10
  menus: any[];
11
11
  iconfontUrl: string;
@@ -17,8 +17,8 @@ declare const ProLayout: {
17
17
  headerHeight: number;
18
18
  contentStyle: {};
19
19
  };
20
- ProCollapse: (props: import("./components/ProCollapse/PropTypes").ProCollapseProps) => import("react/jsx-runtime").JSX.Element;
21
- ProFooter: import("react").MemoExoticComponent<(props: import("./components/ProFooter/PropTypes").ProFooterProps) => import("react/jsx-runtime").JSX.Element>;
22
- ProHeader: import("react").MemoExoticComponent<(props: import("./components/ProHeader/PropTypes").ProHeaderProps) => import("react/jsx-runtime").JSX.Element>;
20
+ ProCollapse: (props: import("./components/ProCollapse/PropTypes").ProCollapseProps) => JSX.Element;
21
+ ProFooter: import("react").MemoExoticComponent<(props: import("./components/ProFooter/PropTypes").ProFooterProps) => JSX.Element>;
22
+ ProHeader: import("react").MemoExoticComponent<(props: import("./components/ProHeader/PropTypes").ProHeaderProps) => JSX.Element>;
23
23
  };
24
24
  export default ProLayout;
@@ -15,7 +15,7 @@ export var getIdsByPathName = function getIdsByPathName(menus, activeMenu) {
15
15
  _pathName = activeMenu;
16
16
  }
17
17
  var result;
18
- var _menuDeep = function menuDeep(menuDeepItem) {
18
+ var menuDeep = function menuDeep(menuDeepItem) {
19
19
  for (var i = 0; i <= menuDeepItem.length - 1; i++) {
20
20
  var item = menuDeepItem[i];
21
21
  // 只包含一级菜单时,解决URL:/endorsement/demo/123无法选中问题
@@ -24,7 +24,7 @@ export var getIdsByPathName = function getIdsByPathName(menus, activeMenu) {
24
24
  break;
25
25
  }
26
26
  if (Array.isArray(item.children) && item.children.length) {
27
- _menuDeep(item.children);
27
+ menuDeep(item.children);
28
28
  } else if (((item === null || item === void 0 ? void 0 : item.url) && _pathName.includes(item.url.split('?')[0]) || (item === null || item === void 0 ? void 0 : item.redirectUrl) && _pathName.includes(item.redirectUrl.split('?')[0])) && !result) {
29
29
  // 当循环到最后一层时判断URL是否包含最后一层的URL,解决URL在URL中不存在的场景
30
30
  result = item.keyIdPath;
@@ -32,7 +32,7 @@ export var getIdsByPathName = function getIdsByPathName(menus, activeMenu) {
32
32
  }
33
33
  }
34
34
  };
35
- _menuDeep(menus);
35
+ menuDeep(menus);
36
36
  return result || [];
37
37
  };
38
38
  /**
@@ -42,7 +42,7 @@ export var getIdsByPathName = function getIdsByPathName(menus, activeMenu) {
42
42
  */
43
43
  export var transformMenu = function transformMenu(menuData, pathPrefix) {
44
44
  var data = _toConsumableArray(menuData);
45
- var _menuDeep2 = function menuDeep(menuDeepItem) {
45
+ var menuDeep = function menuDeep(menuDeepItem) {
46
46
  if (!Array.isArray(menuDeepItem) || !menuDeepItem.length) {
47
47
  return [];
48
48
  }
@@ -75,11 +75,11 @@ export var transformMenu = function transformMenu(menuData, pathPrefix) {
75
75
  childrenItem.keyUrlPath = _toConsumableArray(item.keyUrlPath);
76
76
  childrenItem.keyIdPath = _toConsumableArray(item.keyIdPath);
77
77
  });
78
- _menuDeep2(item.children);
78
+ menuDeep(item.children);
79
79
  }
80
80
  });
81
81
  };
82
- _menuDeep2(data);
82
+ menuDeep(data);
83
83
  return data;
84
84
  };
85
85
  /**
@@ -134,7 +134,7 @@ export var getPathNameKey = function getPathNameKey(_ref) {
134
134
  var menus = _ref.menus,
135
135
  pathName = _ref.pathName;
136
136
  var result;
137
- var _menuDeep3 = function menuDeep(menuDeepItem) {
137
+ var menuDeep = function menuDeep(menuDeepItem) {
138
138
  if (!Array.isArray(menuDeepItem) || !menuDeepItem.length) {
139
139
  return [];
140
140
  }
@@ -148,7 +148,7 @@ export var getPathNameKey = function getPathNameKey(_ref) {
148
148
  break;
149
149
  }
150
150
  if (Array.isArray(item.children) && item.children.length) {
151
- _menuDeep3(item.children);
151
+ menuDeep(item.children);
152
152
  } else if (((item === null || item === void 0 ? void 0 : item.url) && pathName.includes(item.url.split('?')[0]) || (item === null || item === void 0 ? void 0 : item.redirectUrl) && pathName.includes(item.redirectUrl.split('?')[0])) && !result) {
153
153
  // URL未匹配时,循环到最后一层时判断URL是否包含最后一层的URL,解决URL在URL中不存在的场景
154
154
  result = item.keyIdPath;
@@ -156,6 +156,6 @@ export var getPathNameKey = function getPathNameKey(_ref) {
156
156
  }
157
157
  }
158
158
  };
159
- _menuDeep3(menus);
159
+ menuDeep(menus);
160
160
  return result;
161
161
  };
@@ -1,4 +1,4 @@
1
1
  declare const AdaptiveTooltip: ({ children }: {
2
2
  children: any;
3
- }) => import("react/jsx-runtime").JSX.Element;
3
+ }) => JSX.Element;
4
4
  export default AdaptiveTooltip;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { PropSelectProps, ProSelectAction } from './propsType';
3
3
  import './index.less';
4
- export declare const ProSelect: (props: PropSelectProps, ref: React.Ref<ProSelectAction> | undefined) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const ProSelect: (props: PropSelectProps, ref: React.Ref<ProSelectAction> | undefined) => JSX.Element;
5
5
  declare const _default: React.ForwardRefExoticComponent<PropSelectProps & React.RefAttributes<ProSelectAction>>;
6
6
  export default _default;
@@ -1,2 +1,2 @@
1
- export declare const MenuItem: (props: any) => import("react/jsx-runtime").JSX.Element;
1
+ export declare const MenuItem: (props: any) => JSX.Element;
2
2
  export default MenuItem;
@@ -1,3 +1,3 @@
1
1
  import { ProStepItem } from '../../propsType';
2
- declare const _default: ({ id, title, collapse: collapseItem, children, ...restProps }: ProStepItem) => import("react/jsx-runtime").JSX.Element;
2
+ declare const _default: ({ id, title, collapse: collapseItem, children, ...restProps }: ProStepItem) => JSX.Element;
3
3
  export default _default;
@@ -14,7 +14,7 @@ export default (function (_ref) {
14
14
  var _useStep = useStep(),
15
15
  notify = _useStep.notify;
16
16
  return /*#__PURE__*/React.cloneElement(children, _objectSpread(_objectSpread({}, props), {}, {
17
- onClick: throttle(/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
17
+ onClick: throttle( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
18
18
  var values;
19
19
  return _regeneratorRuntime().wrap(function _callee$(_context) {
20
20
  while (1) switch (_context.prev = _context.next) {
@@ -1,5 +1,5 @@
1
1
  import { ProStepPropsType } from '../../propsType';
2
2
  export declare const Step: ({ fixedTop, dataSource, activeKey, errorCollection, style, targetOffset, scrollToError, }: ProStepPropsType & {
3
3
  errorCollection: object;
4
- }) => import("react/jsx-runtime").JSX.Element;
4
+ }) => JSX.Element;
5
5
  export default Step;
@@ -4,9 +4,9 @@ import './style/index.less';
4
4
  export declare const ProStepContext: import("react").Context<any>;
5
5
  export declare const useStep: () => any;
6
6
  declare const ProStep: {
7
- ({ children, ...resetProps }: ProStepPropsType): import("react/jsx-runtime").JSX.Element;
7
+ ({ children, ...resetProps }: ProStepPropsType): JSX.Element;
8
8
  useStep: () => any;
9
- Item: ({ id, title, collapse: collapseItem, children, ...restProps }: import("./propsType").ProStepItem) => import("react/jsx-runtime").JSX.Element;
9
+ Item: ({ id, title, collapse: collapseItem, children, ...restProps }: import("./propsType").ProStepItem) => JSX.Element;
10
10
  Listener: ({ children, delayTime, excludes, ...props }: any) => import("react").DetailedReactHTMLElement<any, HTMLElement>;
11
11
  };
12
12
  export default ProStep;