@zat-design/sisyphus-react 3.7.2 → 3.7.3-beta.10

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 (239) hide show
  1. package/dist/index.esm.css +79 -0
  2. package/dist/less.esm.css +76 -0
  3. package/es/ProAction/index.js +4 -4
  4. package/es/ProDownload/index.d.ts +1 -1
  5. package/es/ProEditTable/components/ActionButton/index.d.ts +1 -1
  6. package/es/ProEditTable/components/RcTable/BaseTable.d.ts +1 -1
  7. package/es/ProEditTable/components/RcTable/DraggableTable.d.ts +1 -1
  8. package/es/ProEditTable/components/RcTable/VirtualTable.d.ts +1 -1
  9. package/es/ProEditTable/components/RenderField/{ListChanged.d.ts → ListChangedWrapper.d.ts} +4 -3
  10. package/es/ProEditTable/components/RenderField/{ListChanged.js → ListChangedWrapper.js} +22 -10
  11. package/es/ProEditTable/components/RenderField/index.d.ts +1 -1
  12. package/es/ProEditTable/components/RenderField/index.js +29 -24
  13. package/es/ProEditTable/components/RenderToolbar/index.d.ts +1 -1
  14. package/es/ProEditTable/components/Summary/index.d.ts +1 -1
  15. package/es/ProEditTable/propsType.d.ts +1 -1
  16. package/es/ProEditTable/utils/config.d.ts +1 -1
  17. package/es/ProEditTable/utils/getDefaultProps.js +2 -1
  18. package/es/ProEditTable/utils/tools.js +3 -3
  19. package/es/ProEnum/components/Group.d.ts +1 -1
  20. package/es/ProEnum/components/Tag.d.ts +1 -1
  21. package/es/ProEnum/index.d.ts +2 -2
  22. package/es/ProEnum/index.js +5 -4
  23. package/es/ProEnum/style/index.less +8 -4
  24. package/es/ProEnum/utils/eventCenter.js +2 -1
  25. package/es/ProEnum/utils/getEnumLabel.d.ts +1 -1
  26. package/es/ProEnum/utils/index.d.ts +1 -1
  27. package/es/ProEnum/utils/index.js +4 -0
  28. package/es/ProForm/components/base/Input/index.d.ts +1 -1
  29. package/es/ProForm/components/combination/Container/index.js +5 -3
  30. package/es/ProForm/components/combination/Container/propsType.d.ts +2 -1
  31. package/es/ProForm/components/combination/FormList/utils.js +5 -4
  32. package/es/ProForm/components/combination/Group/component/ComRender.js +3 -1
  33. package/es/ProForm/components/combination/Group/utils.js +22 -5
  34. package/es/ProForm/components/combination/ProCascader/index.d.ts +1 -1
  35. package/es/ProForm/components/combination/ProCascader/index.js +7 -7
  36. package/es/ProForm/components/combination/ProNumberRange/index.js +3 -1
  37. package/es/ProForm/components/old/InputRange/index.d.ts +1 -1
  38. package/es/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
  39. package/es/ProForm/components/old/ProAddress/index.d.ts +2 -1
  40. package/es/ProForm/components/old/ProRangeBox/index.d.ts +2 -1
  41. package/es/ProForm/components/render/ChangedWrapper.d.ts +16 -0
  42. package/es/ProForm/components/render/{Changed.js → ChangedWrapper.js} +43 -15
  43. package/es/ProForm/components/render/Render.js +7 -8
  44. package/es/ProForm/components/render/RenderFields.d.ts +2 -3
  45. package/es/ProForm/components/render/RenderFields.js +3 -4
  46. package/es/ProForm/components/render/propsType.d.ts +4 -3
  47. package/es/ProForm/index.js +3 -6
  48. package/es/ProForm/propsType.d.ts +12 -2
  49. package/es/ProForm/style/index.less +102 -4
  50. package/es/ProForm/utils/diffOriginal.d.ts +4 -4
  51. package/es/ProForm/utils/diffOriginal.js +18 -7
  52. package/es/ProForm/utils/index.js +10 -14
  53. package/es/ProForm/utils/rulesCreator.d.ts +1 -1
  54. package/es/ProForm/utils/rulesCreator.js +25 -22
  55. package/es/ProForm/utils/valueType.js +2 -2
  56. package/es/ProIcon/utils/index.js +3 -4
  57. package/es/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +1 -1
  58. package/es/ProLayout/components/Layout/Menu/OpenMenu/index.js +3 -3
  59. package/es/ProLayout/components/ProCollapse/index.d.ts +1 -1
  60. package/es/ProLayout/components/ProFooter/index.d.ts +1 -1
  61. package/es/ProLayout/components/ProHeader/components/Copy/index.d.ts +1 -1
  62. package/es/ProLayout/components/ProHeader/index.d.ts +1 -1
  63. package/es/ProLayout/index.d.ts +4 -4
  64. package/es/ProLayout/utils/index.js +9 -9
  65. package/es/ProSelect/components/AdaptiveTooltip.d.ts +1 -1
  66. package/es/ProSelect/index.d.ts +1 -1
  67. package/es/ProSelect/index.js +11 -8
  68. package/es/ProSelect/propsType.d.ts +4 -0
  69. package/es/ProSelect/utils/index.d.ts +1 -7
  70. package/es/ProSelect/utils/index.js +13 -5
  71. package/es/ProStep/components/Anchor/index.d.ts +1 -1
  72. package/es/ProStep/components/Item/index.d.ts +1 -1
  73. package/es/ProStep/components/Listener/index.d.ts +1 -1
  74. package/es/ProStep/components/Listener/index.js +5 -2
  75. package/es/ProStep/components/Step/index.d.ts +1 -1
  76. package/es/ProStep/index.d.ts +3 -3
  77. package/es/ProStep/index.js +24 -17
  78. package/es/ProTable/components/FormatColumn/index.js +3 -3
  79. package/es/ProTable/components/RcTable/components/BaseTable/index.d.ts +1 -1
  80. package/es/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/index.js +8 -9
  81. package/es/ProTable/components/RcTable/components/DraggableTable/index.d.ts +1 -1
  82. package/es/ProTable/components/RenderFooter/index.d.ts +1 -1
  83. package/es/ProTable/components/RenderTableHeader/index.d.ts +1 -1
  84. package/es/ProTable/components/TableResizable/index.d.ts +1 -1
  85. package/es/ProTable/index.d.ts +1 -1
  86. package/es/ProTabs/components/Card/index.d.ts +1 -1
  87. package/es/ProThemeTools/component/ProTools/index.d.ts +1 -1
  88. package/es/ProThemeTools/index.d.ts +1 -1
  89. package/es/ProTooltip/index.d.ts +1 -1
  90. package/es/ProTree/components/CloseIcon.d.ts +2 -1
  91. package/es/ProTree/components/List.d.ts +1 -1
  92. package/es/ProTree/components/ProTree.d.ts +1 -1
  93. package/es/ProTree/components/ProTreeSelect/index.d.ts +1 -1
  94. package/es/ProTree/components/ProTreeSelect/index.js +18 -18
  95. package/es/ProTree/components/ProTreeSelect/style/index.less +2 -2
  96. package/es/ProTree/components/SearchTitle.d.ts +1 -1
  97. package/es/ProTree/components/Tree.d.ts +1 -1
  98. package/es/ProTree/components/Tree.js +3 -3
  99. package/es/ProTree/index.d.ts +1 -1
  100. package/es/ProTree/utils.js +11 -12
  101. package/es/ProTreeModal/components/Cascader.d.ts +1 -1
  102. package/es/ProTreeModal/components/CloseIcon.d.ts +2 -1
  103. package/es/ProTreeModal/components/SearchTitle.d.ts +1 -1
  104. package/es/ProTreeModal/components/Tree.js +6 -6
  105. package/es/ProTreeModal/components/Trigger.d.ts +1 -1
  106. package/es/ProTreeModal/index.d.ts +1 -1
  107. package/es/ProTreeModal/utils.js +11 -12
  108. package/es/ProUpload/components/DraggableUploadListItem.d.ts +1 -1
  109. package/es/ProUpload/index.js +1 -1
  110. package/es/ProUpload/propsType.d.ts +5 -0
  111. package/es/style/theme/antd.less +5 -0
  112. package/es/style/theme/index.less +1 -0
  113. package/es/style/theme/tokens.less +1 -0
  114. package/es/utils/index.d.ts +2 -0
  115. package/es/utils/index.js +13 -0
  116. package/lib/ProAction/index.js +4 -4
  117. package/lib/ProDownload/index.d.ts +1 -1
  118. package/lib/ProEditTable/components/ActionButton/index.d.ts +1 -1
  119. package/lib/ProEditTable/components/RcTable/BaseTable.d.ts +1 -1
  120. package/lib/ProEditTable/components/RcTable/DraggableTable.d.ts +1 -1
  121. package/lib/ProEditTable/components/RcTable/VirtualTable.d.ts +1 -1
  122. package/lib/ProEditTable/components/RenderField/{ListChanged.d.ts → ListChangedWrapper.d.ts} +4 -3
  123. package/lib/ProEditTable/components/RenderField/{ListChanged.js → ListChangedWrapper.js} +25 -11
  124. package/lib/ProEditTable/components/RenderField/index.d.ts +1 -1
  125. package/lib/ProEditTable/components/RenderField/index.js +30 -25
  126. package/lib/ProEditTable/components/RenderToolbar/index.d.ts +1 -1
  127. package/lib/ProEditTable/components/Summary/index.d.ts +1 -1
  128. package/lib/ProEditTable/propsType.d.ts +1 -1
  129. package/lib/ProEditTable/utils/config.d.ts +1 -1
  130. package/lib/ProEditTable/utils/getDefaultProps.js +3 -1
  131. package/lib/ProEditTable/utils/tools.js +3 -3
  132. package/lib/ProEnum/components/Group.d.ts +1 -1
  133. package/lib/ProEnum/components/Tag.d.ts +1 -1
  134. package/lib/ProEnum/index.d.ts +2 -2
  135. package/lib/ProEnum/index.js +5 -4
  136. package/lib/ProEnum/style/index.less +8 -4
  137. package/lib/ProEnum/utils/eventCenter.js +2 -1
  138. package/lib/ProEnum/utils/getEnumLabel.d.ts +1 -1
  139. package/lib/ProEnum/utils/index.d.ts +1 -1
  140. package/lib/ProEnum/utils/index.js +4 -0
  141. package/lib/ProForm/components/base/Input/index.d.ts +1 -1
  142. package/lib/ProForm/components/combination/Container/index.js +5 -3
  143. package/lib/ProForm/components/combination/Container/propsType.d.ts +2 -1
  144. package/lib/ProForm/components/combination/FormList/utils.js +4 -3
  145. package/lib/ProForm/components/combination/Group/component/ComRender.js +3 -1
  146. package/lib/ProForm/components/combination/Group/utils.js +22 -5
  147. package/lib/ProForm/components/combination/ProCascader/index.d.ts +1 -1
  148. package/lib/ProForm/components/combination/ProCascader/index.js +7 -7
  149. package/lib/ProForm/components/combination/ProNumberRange/index.js +3 -1
  150. package/lib/ProForm/components/old/InputRange/index.d.ts +1 -1
  151. package/lib/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
  152. package/lib/ProForm/components/old/ProAddress/index.d.ts +2 -1
  153. package/lib/ProForm/components/old/ProRangeBox/index.d.ts +2 -1
  154. package/lib/ProForm/components/render/ChangedWrapper.d.ts +16 -0
  155. package/lib/ProForm/components/render/{Changed.js → ChangedWrapper.js} +43 -15
  156. package/lib/ProForm/components/render/Render.js +7 -8
  157. package/lib/ProForm/components/render/RenderFields.d.ts +2 -3
  158. package/lib/ProForm/components/render/RenderFields.js +3 -4
  159. package/lib/ProForm/components/render/propsType.d.ts +4 -3
  160. package/lib/ProForm/index.js +3 -6
  161. package/lib/ProForm/propsType.d.ts +12 -2
  162. package/lib/ProForm/style/index.less +102 -4
  163. package/lib/ProForm/utils/diffOriginal.d.ts +4 -4
  164. package/lib/ProForm/utils/diffOriginal.js +18 -7
  165. package/lib/ProForm/utils/index.js +10 -10
  166. package/lib/ProForm/utils/rulesCreator.d.ts +1 -1
  167. package/lib/ProForm/utils/rulesCreator.js +25 -22
  168. package/lib/ProForm/utils/valueType.js +2 -2
  169. package/lib/ProIcon/utils/index.js +3 -3
  170. package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +1 -1
  171. package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.js +3 -3
  172. package/lib/ProLayout/components/ProCollapse/index.d.ts +1 -1
  173. package/lib/ProLayout/components/ProFooter/index.d.ts +1 -1
  174. package/lib/ProLayout/components/ProHeader/components/Copy/index.d.ts +1 -1
  175. package/lib/ProLayout/components/ProHeader/index.d.ts +1 -1
  176. package/lib/ProLayout/index.d.ts +4 -4
  177. package/lib/ProLayout/utils/index.js +9 -9
  178. package/lib/ProSelect/components/AdaptiveTooltip.d.ts +1 -1
  179. package/lib/ProSelect/index.d.ts +1 -1
  180. package/lib/ProSelect/index.js +11 -8
  181. package/lib/ProSelect/propsType.d.ts +4 -0
  182. package/lib/ProSelect/utils/index.d.ts +1 -7
  183. package/lib/ProSelect/utils/index.js +13 -5
  184. package/lib/ProStep/components/Anchor/index.d.ts +1 -1
  185. package/lib/ProStep/components/Item/index.d.ts +1 -1
  186. package/lib/ProStep/components/Listener/index.d.ts +1 -1
  187. package/lib/ProStep/components/Listener/index.js +5 -2
  188. package/lib/ProStep/components/Step/index.d.ts +1 -1
  189. package/lib/ProStep/index.d.ts +3 -3
  190. package/lib/ProStep/index.js +24 -17
  191. package/lib/ProTable/components/FormatColumn/index.js +3 -3
  192. package/lib/ProTable/components/RcTable/components/BaseTable/index.d.ts +1 -1
  193. package/lib/ProTable/components/RcTable/components/DraggableTable/components/DndWrapper/utils/index.js +8 -8
  194. package/lib/ProTable/components/RcTable/components/DraggableTable/index.d.ts +1 -1
  195. package/lib/ProTable/components/RenderFooter/index.d.ts +1 -1
  196. package/lib/ProTable/components/RenderTableHeader/index.d.ts +1 -1
  197. package/lib/ProTable/components/TableResizable/index.d.ts +1 -1
  198. package/lib/ProTable/index.d.ts +1 -1
  199. package/lib/ProTabs/components/Card/index.d.ts +1 -1
  200. package/lib/ProThemeTools/component/ProTools/index.d.ts +1 -1
  201. package/lib/ProThemeTools/index.d.ts +1 -1
  202. package/lib/ProTooltip/index.d.ts +1 -1
  203. package/lib/ProTree/components/CloseIcon.d.ts +2 -1
  204. package/lib/ProTree/components/List.d.ts +1 -1
  205. package/lib/ProTree/components/ProTree.d.ts +1 -1
  206. package/lib/ProTree/components/ProTreeSelect/index.d.ts +1 -1
  207. package/lib/ProTree/components/ProTreeSelect/index.js +18 -18
  208. package/lib/ProTree/components/ProTreeSelect/style/index.less +2 -2
  209. package/lib/ProTree/components/SearchTitle.d.ts +1 -1
  210. package/lib/ProTree/components/Tree.d.ts +1 -1
  211. package/lib/ProTree/components/Tree.js +3 -3
  212. package/lib/ProTree/index.d.ts +1 -1
  213. package/lib/ProTree/utils.js +11 -11
  214. package/lib/ProTreeModal/components/Cascader.d.ts +1 -1
  215. package/lib/ProTreeModal/components/CloseIcon.d.ts +2 -1
  216. package/lib/ProTreeModal/components/SearchTitle.d.ts +1 -1
  217. package/lib/ProTreeModal/components/Tree.js +6 -6
  218. package/lib/ProTreeModal/components/Trigger.d.ts +1 -1
  219. package/lib/ProTreeModal/index.d.ts +1 -1
  220. package/lib/ProTreeModal/utils.js +11 -11
  221. package/lib/ProUpload/components/DraggableUploadListItem.d.ts +1 -1
  222. package/lib/ProUpload/index.js +1 -1
  223. package/lib/ProUpload/propsType.d.ts +5 -0
  224. package/lib/style/theme/antd.less +5 -0
  225. package/lib/style/theme/index.less +1 -0
  226. package/lib/style/theme/tokens.less +1 -0
  227. package/lib/utils/index.d.ts +2 -0
  228. package/lib/utils/index.js +19 -0
  229. package/package.json +2 -1
  230. package/es/ProForm/components/render/Changed.d.ts +0 -14
  231. package/lib/ProForm/components/render/Changed.d.ts +0 -14
  232. /package/es/ProForm/utils/{useChanged.d.ts → _useChanged.d.ts} +0 -0
  233. /package/es/ProForm/utils/{useChanged.js → _useChanged.js} +0 -0
  234. /package/es/ProForm/utils/{useListChanged.d.ts → _useListChanged.d.ts} +0 -0
  235. /package/es/ProForm/utils/{useListChanged.js → _useListChanged.js} +0 -0
  236. /package/lib/ProForm/utils/{useChanged.d.ts → _useChanged.d.ts} +0 -0
  237. /package/lib/ProForm/utils/{useChanged.js → _useChanged.js} +0 -0
  238. /package/lib/ProForm/utils/{useListChanged.d.ts → _useListChanged.d.ts} +0 -0
  239. /package/lib/ProForm/utils/{useListChanged.js → _useListChanged.js} +0 -0
@@ -11,7 +11,7 @@ import _Space from "antd/es/space";
11
11
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
12
12
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
13
13
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
14
- var _excluded = ["mode", "span", "disabled", "isView", "columns", "footer", "onOk", "okText", "onCancel", "confirmLoading", "cancelText", "form", "children", "rowProps", "className", "expand", "expandOpen", "expandOpenChange", "viewEmpty", "labelAlign", "labelWidth", "onValuesChange", "onFinish", "originalValues", "submitOnEnter", "clearNotShow", "initialValues", "requiredOnView", "formId", "required", "originalDiffTip", "formKey", "globalControl", "scrollToError", "optimize"];
14
+ var _excluded = ["mode", "span", "disabled", "isView", "columns", "footer", "onOk", "okText", "onCancel", "confirmLoading", "cancelText", "form", "children", "rowProps", "className", "expand", "expandOpen", "expandOpenChange", "viewEmpty", "labelAlign", "labelWidth", "onValuesChange", "onFinish", "diffConfig", "submitOnEnter", "clearNotShow", "initialValues", "requiredOnView", "formId", "required", "formKey", "globalControl", "scrollToError", "optimize"];
15
15
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
16
16
  import { DoubleLeftOutlined } from '@ant-design/icons';
17
17
  import classnames from 'classnames';
@@ -53,7 +53,7 @@ var ProForm = function ProForm(props, ref) {
53
53
  labelWidth = props.labelWidth,
54
54
  onValuesChange = props.onValuesChange,
55
55
  onFinish = props.onFinish,
56
- originalValues = props.originalValues,
56
+ diffConfig = props.diffConfig,
57
57
  submitOnEnter = props.submitOnEnter,
58
58
  _props$clearNotShow = props.clearNotShow,
59
59
  clearNotShow = _props$clearNotShow === void 0 ? true : _props$clearNotShow,
@@ -62,8 +62,6 @@ var ProForm = function ProForm(props, ref) {
62
62
  requiredOnView = _props$requiredOnView === void 0 ? true : _props$requiredOnView,
63
63
  formId = props.formId,
64
64
  required = props.required,
65
- _props$originalDiffTi = props.originalDiffTip,
66
- originalDiffTip = _props$originalDiffTi === void 0 ? true : _props$originalDiffTi,
67
65
  formKey = props.formKey,
68
66
  globalControl = props.globalControl,
69
67
  _props$scrollToError = props.scrollToError,
@@ -261,11 +259,10 @@ var ProForm = function ProForm(props, ref) {
261
259
  colProps: colProps,
262
260
  viewEmpty: viewEmpty,
263
261
  labelWidth: labelWidth,
264
- originalValues: originalValues,
262
+ diffConfig: diffConfig,
265
263
  clearNotShow: clearNotShow,
266
264
  requiredOnView: requiredOnView,
267
265
  required: required,
268
- originalDiffTip: originalDiffTip,
269
266
  globalControl: globalControl
270
267
  }), footerRender()]
271
268
  })), children]
@@ -45,6 +45,16 @@ export interface ProFormOtherProps {
45
45
  globalControl?: boolean;
46
46
  formDisabled?: boolean;
47
47
  }
48
+ export interface DiffConfigProps<Values = any> {
49
+ /** 比对原始数据源 */
50
+ originalValues: Values;
51
+ /** 是否显示对比值气泡 */
52
+ toolTip?: boolean;
53
+ /** 变更提示颜色 */
54
+ changeTipColor?: string;
55
+ /** 新增提示颜色 */
56
+ addTipColor?: string;
57
+ }
48
58
  export interface ProFormProps<Values = any> extends FormProps<Values> {
49
59
  disabled?: boolean;
50
60
  /** 全局控制优先 */
@@ -67,14 +77,14 @@ export interface ProFormProps<Values = any> extends FormProps<Values> {
67
77
  viewEmpty?: React.ReactNode | string;
68
78
  confirmLoading?: boolean;
69
79
  labelWidth?: string | number;
70
- originalValues?: Values;
71
80
  /** 是否回车提交 */
72
81
  submitOnEnter?: boolean;
73
82
  clearNotShow?: boolean;
74
83
  requiredOnView?: boolean;
75
84
  formId?: string;
76
85
  required?: boolean | boolean[];
77
- originalDiffTip?: boolean;
86
+ /** 表单比对配置 */
87
+ diffConfig?: DiffConfigProps;
78
88
  scrollToError?: boolean;
79
89
  /** 性能模式,谨慎使用,默认不开启
80
90
  * 1. 开启不过滤names的中间态值
@@ -99,10 +99,12 @@
99
99
 
100
100
  &.pro-form-item-width-auto {
101
101
  .@{ant-prefix}-form-item-control-input {
102
+ width: 100%;
102
103
  flex-grow: inherit;
103
104
  }
104
105
 
105
106
  .@{ant-prefix}-form-item-control-input-content {
107
+ width: 100%;
106
108
  flex: initial;
107
109
  }
108
110
  }
@@ -314,16 +316,23 @@
314
316
  vertical-align: middle;
315
317
  }
316
318
  }
317
- .pro-form-list-mode-block{
318
- .pro-collapse-content{
319
- .@{ant-prefix}-row{
319
+
320
+ .pro-form-list-mode-block {
321
+ .pro-collapse-content {
322
+ .@{ant-prefix}-row {
320
323
  width: auto;
321
324
  }
322
325
  }
323
326
  }
324
327
 
325
- // 比较原始值场景下 不同时的样式
326
328
  .pro-form-item-changed {
329
+ border-radius: 4px;
330
+ background: @zaui-contract-bg !important;
331
+
332
+ .@{ant-prefix}-select.@{ant-prefix}-select-disabled .@{ant-prefix}-select-selector{
333
+ background: @zaui-contract-bg !important;
334
+ }
335
+
327
336
  span.@{ant-prefix}-input-affix-wrapper,
328
337
  .@{ant-prefix}-select .@{ant-prefix}-select-selector,
329
338
  .@{ant-prefix}-picker,
@@ -367,10 +376,99 @@
367
376
  }
368
377
  }
369
378
 
379
+ // checkbox
380
+ .@{ant-prefix}-checkbox-group {
381
+ padding: 5px 0
382
+ }
383
+ // switch
384
+ &:has(.@{ant-prefix}-switch) {
385
+ padding: 5px 0;
386
+ }
387
+
388
+ // textArea
389
+ .@{ant-prefix}-input-textarea > textarea {
390
+ background: @zaui-contract-bg;
391
+ }
392
+
370
393
  .pro-form-view-container {
371
394
  padding: 4px 8px;
372
395
  background: @zaui-contract-bg;
373
396
  border-radius: 4px;
374
397
  }
375
398
  }
399
+
400
+
401
+ // 比较原始值场景下 不同时的样式
402
+ .pro-form-item-add {
403
+ border-radius: 4px;
404
+ background: @zaui-contract-bg-add !important;
405
+
406
+ .@{ant-prefix}-select.@{ant-prefix}-select-disabled .@{ant-prefix}-select-selector{
407
+ background: @zaui-contract-bg-add !important;
408
+ }
409
+
410
+ span.@{ant-prefix}-input-affix-wrapper,
411
+ .@{ant-prefix}-select .@{ant-prefix}-select-selector,
412
+ .@{ant-prefix}-picker,
413
+ .@{ant-prefix}-input-number {
414
+ background: @zaui-contract-bg-add !important;
415
+
416
+ input {
417
+ background: transparent !important;
418
+ }
419
+ .@{ant-prefix}-select-selection-placeholder {
420
+ z-index: 9;
421
+ }
422
+ }
423
+
424
+ .@{ant-prefix}-form-item-control:has(.@{ant-prefix}-switch-handle),
425
+ .@{ant-prefix}-form-item-control:has(.@{ant-prefix}-checkbox-wrapper-in-form-item) {
426
+ background: @zaui-contract-bg-add;
427
+ border-radius: 4px;
428
+ }
429
+
430
+ // 地址组件
431
+ .@{ant-prefix}-form-item-control-input-content {
432
+ // 查看模式
433
+ & > span {
434
+ border-radius: 4px;
435
+ padding: 5px 8px;
436
+ background: @zaui-contract-bg-add;
437
+ }
438
+
439
+ & > .pro-address {
440
+ .@{ant-prefix}-select-selector,
441
+ .@{ant-prefix}-input-affix-wrapper,
442
+ .@{ant-prefix}-input-disabled {
443
+ background: @zaui-contract-bg-add;
444
+ }
445
+ }
446
+ & > .@{ant-prefix}-input-group {
447
+ .forever-checkbox {
448
+ background: @zaui-contract-bg-add;
449
+ }
450
+ }
451
+ }
452
+
453
+ // checkbox
454
+ .@{ant-prefix}-checkbox-group {
455
+ padding: 5px 0
456
+ }
457
+ // switch
458
+ &:has(.@{ant-prefix}-switch) {
459
+ padding: 5px 0;
460
+ }
461
+
462
+ // textArea
463
+ .@{ant-prefix}-input-textarea > textarea {
464
+ background: @zaui-contract-bg-add;
465
+ }
466
+
467
+
468
+ .pro-form-view-container {
469
+ padding: 4px 8px;
470
+ background: @zaui-contract-bg-add;
471
+ border-radius: 4px;
472
+ }
473
+ }
376
474
  }
@@ -1,9 +1,9 @@
1
1
  import { FormInstance } from 'antd';
2
- interface Params {
2
+ export interface DiffOriginalParams {
3
3
  originalValue: any;
4
4
  value: any;
5
5
  form: FormInstance;
6
- equalWith?: (originalValue: any, currentValue: any) => boolean;
6
+ equalWith?: (originalValue: any, currentValue: any) => DiffType | boolean | undefined;
7
7
  }
8
- export declare const diffOriginal: (params: Params) => boolean;
9
- export {};
8
+ export type DiffType = 'same' | 'add' | 'changed';
9
+ export declare const diffOriginal: (params: DiffOriginalParams) => DiffType;
@@ -1,4 +1,5 @@
1
1
  import { isEqual, isFunction } from 'lodash';
2
+ import { isEmpty } from '../../utils';
2
3
  var nullValue = [null, undefined, '']; // 输入框空值时可能存在的三种值 视为相等
3
4
  export var diffOriginal = function diffOriginal(params) {
4
5
  var originalValue = params.originalValue,
@@ -6,19 +7,29 @@ export var diffOriginal = function diffOriginal(params) {
6
7
  equalWith = params.equalWith;
7
8
  // 支持传入自定义比较事件
8
9
  if (isFunction(equalWith)) {
9
- return !equalWith(originalValue, value);
10
+ var diffRes = equalWith(originalValue, value);
11
+ if (diffRes === undefined) return 'same';
12
+ if (typeof diffRes === 'boolean') {
13
+ return diffRes ? 'same' : 'changed';
14
+ }
15
+ return diffRes;
16
+ }
17
+ // 如果原始值为空 且当前有值的话 认为变更类型是新增
18
+ if (isEmpty(originalValue) && !isEmpty(value)) {
19
+ return 'add';
10
20
  }
11
21
  if (Array.isArray(originalValue)) {
12
- return originalValue.some(function (valueItem, index) {
22
+ var isSame = originalValue.every(function (valueItem, index) {
13
23
  // 如果两个值有一个不是空值, 则进行深比较
14
- if (!nullValue.includes(value === null || value === void 0 ? void 0 : value[index]) || !nullValue.includes(valueItem)) {
15
- return !isEqual(value === null || value === void 0 ? void 0 : value[index], valueItem);
24
+ if (!isEmpty(value === null || value === void 0 ? void 0 : value[index]) || !isEmpty(valueItem)) {
25
+ return isEqual(value === null || value === void 0 ? void 0 : value[index], valueItem);
16
26
  }
17
- return false;
27
+ return true;
18
28
  });
29
+ return isSame ? 'same' : 'changed';
19
30
  }
20
31
  if (!nullValue.includes(value) || !nullValue.includes(originalValue)) {
21
- return !isEqual(value, originalValue);
32
+ return isEqual(value, originalValue) ? 'same' : 'changed';
22
33
  }
23
- return false;
34
+ return 'same';
24
35
  };
@@ -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) {
@@ -1,5 +1,5 @@
1
1
  export declare const rulesCreator: ({ rules, label, isSelect, names, required }: {
2
- rules: any;
2
+ rules?: any[];
3
3
  label: any;
4
4
  isSelect: any;
5
5
  names: any;
@@ -14,35 +14,38 @@ var getNonEmptyValuesByIndex = function getNonEmptyValuesByIndex(required, value
14
14
  };
15
15
  export var rulesCreator = function rulesCreator(_ref) {
16
16
  var _result;
17
- var rules = _ref.rules,
17
+ var _ref$rules = _ref.rules,
18
+ rules = _ref$rules === void 0 ? [] : _ref$rules,
18
19
  label = _ref.label,
19
20
  isSelect = _ref.isSelect,
20
21
  names = _ref.names,
21
22
  required = _ref.required;
22
23
  var message = "".concat(isSelect ? "".concat(locale.ProForm.selectPlaceHolder) : "".concat(locale.ProForm.inputPlaceholder)).concat(locale.ProForm.ruleText).concat(isString(label) ? label : '');
23
24
  var result = [];
24
- result = rules.map(function (ruleItem) {
25
- var rule = _objectSpread({}, ruleItem);
26
- if (rule instanceof Object && 'type' in rule) {
27
- if (Object.keys(regExp).includes(rule.type)) {
28
- rule.validator = function (rule, value) {
29
- if (!isNullValue(value) && !regExp[rule.type].test(value)) {
30
- return Promise.reject(new Error(rule.message || message));
31
- }
32
- return Promise.resolve();
33
- };
34
- }
35
- if (Object.keys(validate).includes(rule.type)) {
36
- rule.validator = function (rule, value) {
37
- if (!isNullValue(value) && !validate[rule.type](value)) {
38
- return Promise.reject(new Error(rule.message || message));
39
- }
40
- return Promise.resolve();
41
- };
25
+ if (Array.isArray(rules)) {
26
+ result = rules.map(function (ruleItem) {
27
+ var rule = _objectSpread({}, ruleItem);
28
+ if (rule instanceof Object && 'type' in rule) {
29
+ if (Object.keys(regExp).includes(rule.type)) {
30
+ rule.validator = function (rule, value) {
31
+ if (!isNullValue(value) && !regExp[rule.type].test(value)) {
32
+ return Promise.reject(new Error(rule.message || message));
33
+ }
34
+ return Promise.resolve();
35
+ };
36
+ }
37
+ if (Object.keys(validate).includes(rule.type)) {
38
+ rule.validator = function (rule, value) {
39
+ if (!isNullValue(value) && !validate[rule.type](value)) {
40
+ return Promise.reject(new Error(rule.message || message));
41
+ }
42
+ return Promise.resolve();
43
+ };
44
+ }
42
45
  }
43
- }
44
- return rule;
45
- });
46
+ return rule;
47
+ });
48
+ }
46
49
  if ((names === null || names === void 0 ? void 0 : names.length) && (required === null || required === void 0 ? void 0 : required.length)) {
47
50
  var customRequired = {
48
51
  validator: function validator(rules, value) {
@@ -18,7 +18,7 @@ var transformRatio = function transformRatio(_ref) {
18
18
  return {
19
19
  normalize: function normalize(value) {
20
20
  if (!value || !value.some(function (item) {
21
- return item;
21
+ return item || item === 0;
22
22
  })) {
23
23
  return {};
24
24
  }
@@ -26,7 +26,7 @@ var transformRatio = function transformRatio(_ref) {
26
26
  },
27
27
  getValueProps: function getValueProps(value) {
28
28
  if (!value || !value.some(function (item) {
29
- return item;
29
+ return item || item === 0;
30
30
  })) {
31
31
  return {
32
32
  value: []
@@ -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;