@zat-design/sisyphus-react 3.11.14-beta.9 → 3.12.0-beta.1

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 (231) hide show
  1. package/dist/index.esm.css +4 -0
  2. package/dist/less.esm.css +4 -0
  3. package/es/ProConfigProvider/index.d.ts +4 -4
  4. package/es/ProDrawerForm/components/ProDrawer/index.js +12 -2
  5. package/es/ProDrawerForm/components/ProModal/index.js +12 -2
  6. package/es/ProDrawerForm/propsType.d.ts +1 -1
  7. package/es/ProEditLabel/propsType.d.ts +2 -2
  8. package/es/ProEditTable/components/Summary/index.d.ts +2 -2
  9. package/es/ProEditTable/index.js +12 -8
  10. package/es/ProEditTable/propsType.d.ts +40 -42
  11. package/es/ProEditTable/style/index.less +1 -0
  12. package/es/ProEditTable/utils/index.d.ts +1 -1
  13. package/es/ProEditTable/utils/index.js +6 -4
  14. package/es/ProEditTable/utils/tools.d.ts +57 -22
  15. package/es/ProEditTable/utils/tools.js +47 -21
  16. package/es/ProEnum/hooks/useEnum.d.ts +2 -2
  17. package/es/ProEnum/hooks/useEnum.js +46 -17
  18. package/es/ProEnum/propsType.d.ts +2 -2
  19. package/es/ProEnum/utils/index.d.ts +8 -1
  20. package/es/ProEnum/utils/index.js +9 -2
  21. package/es/ProForm/components/FormFooter/index.d.ts +1 -1
  22. package/es/ProForm/components/base/Checkbox/index.d.ts +1 -1
  23. package/es/ProForm/components/base/Input/index.js +17 -4
  24. package/es/ProForm/components/base/Input/propsType.d.ts +3 -3
  25. package/es/ProForm/components/base/InputNumber/index.d.ts +1 -1
  26. package/es/ProForm/components/base/Radio/index.d.ts +1 -1
  27. package/es/ProForm/components/base/RangePicker/index.d.ts +1 -1
  28. package/es/ProForm/components/base/Select/index.d.ts +1 -1
  29. package/es/ProForm/components/base/Switch/index.d.ts +1 -1
  30. package/es/ProForm/components/base/SwitchCheckbox/index.d.ts +1 -1
  31. package/es/ProForm/components/base/TextArea/index.d.ts +1 -1
  32. package/es/ProForm/components/base/TimePicker/index.d.ts +1 -1
  33. package/es/ProForm/components/combination/Container/propsType.d.ts +3 -3
  34. package/es/ProForm/components/combination/FormList/components/ActionButton.d.ts +1 -1
  35. package/es/ProForm/components/combination/FormList/components/BlockFields.d.ts +1 -1
  36. package/es/ProForm/components/combination/FormList/components/LineFields.d.ts +2 -2
  37. package/es/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +1 -1
  38. package/es/ProForm/components/combination/FormList/propsType.d.ts +2 -2
  39. package/es/ProForm/components/combination/Group/index.d.ts +1 -1
  40. package/es/ProForm/components/combination/Group/propsType.d.ts +1 -1
  41. package/es/ProForm/components/combination/Group/utils.d.ts +3 -3
  42. package/es/ProForm/components/combination/ProCascader/index.d.ts +1 -1
  43. package/es/ProForm/components/combination/ProCombination/index.d.ts +1 -1
  44. package/es/ProForm/components/combination/ProCombination/propsType.d.ts +1 -1
  45. package/es/ProForm/components/combination/ProModalSelect/index.d.ts +1 -1
  46. package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +5 -5
  47. package/es/ProForm/components/combination/ProNumberRange/index.d.ts +2 -2
  48. package/es/ProForm/components/combination/ProNumberRange/propsType.d.ts +1 -1
  49. package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +2 -2
  50. package/es/ProForm/components/old/EnumSelect/index.d.ts +1 -1
  51. package/es/ProForm/components/old/EnumSelect/interface.d.ts +2 -2
  52. package/es/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
  53. package/es/ProForm/components/old/ProAddress/index.d.ts +1 -1
  54. package/es/ProForm/components/old/ProCertNo/index.d.ts +1 -1
  55. package/es/ProForm/components/old/ProCertValidity/index.d.ts +1 -1
  56. package/es/ProForm/components/old/ProRangeBox/index.d.ts +1 -1
  57. package/es/ProForm/components/render/ChangedWrapper.d.ts +1 -1
  58. package/es/ProForm/components/render/ConfirmWrapper.d.ts +2 -2
  59. package/es/ProForm/components/render/RenderFields.d.ts +3 -3
  60. package/es/ProForm/components/render/propsType.d.ts +37 -41
  61. package/es/ProForm/index.d.ts +1 -1
  62. package/es/ProForm/index.js +3 -1
  63. package/es/ProForm/propsType.d.ts +6 -4
  64. package/es/ProForm/propsType.js +0 -1
  65. package/es/ProForm/utils/transformValue.d.ts +1 -1
  66. package/es/ProForm/utils/useFieldProps.d.ts +1 -1
  67. package/es/ProForm/utils/useForm.d.ts +2 -1
  68. package/es/ProForm/utils/useForm.js +3 -2
  69. package/es/ProForm/utils/useRules.d.ts +1 -1
  70. package/es/ProForm/utils/useShouldUpdate.d.ts +3 -3
  71. package/es/ProIcon/index.d.ts +2 -2
  72. package/es/ProIcon/propsTypes.d.ts +120 -49
  73. package/es/ProSelect/propsType.d.ts +1 -1
  74. package/es/ProStep/components/Anchor/index.d.ts +2 -1
  75. package/es/ProStep/components/Item/index.d.ts +1 -1
  76. package/es/ProStep/components/Item/index.js +6 -2
  77. package/es/ProStep/components/Listener/index.d.ts +4 -3
  78. package/es/ProStep/components/Listener/index.js +18 -4
  79. package/es/ProStep/index.d.ts +7 -7
  80. package/es/ProStep/index.js +7 -3
  81. package/es/ProStep/propsType.d.ts +145 -5
  82. package/es/ProStep/utils/index.d.ts +16 -3
  83. package/es/ProStep/utils/index.js +11 -2
  84. package/es/ProTable/components/FormatColumn/index.d.ts +1 -1
  85. package/es/ProTable/components/FormatColumn/index.js +3 -6
  86. package/es/ProTable/components/RenderTabs/index.d.ts +4 -0
  87. package/es/ProTable/components/RenderTabs/index.js +78 -0
  88. package/es/ProTable/components/index.d.ts +25 -0
  89. package/es/ProTable/components/index.js +26 -1
  90. package/es/ProTable/hooks/useAntdTable.d.ts +2 -93
  91. package/es/ProTable/hooks/useAntdTable.js +6 -2
  92. package/es/ProTable/index.d.ts +1 -1
  93. package/es/ProTable/index.js +6 -3
  94. package/es/ProTable/propsType.d.ts +68 -28
  95. package/es/ProTooltip/propsType.d.ts +0 -3
  96. package/es/ProTree/components/List.d.ts +2 -2
  97. package/es/ProTree/components/List.js +2 -2
  98. package/es/ProTree/components/ProTree.d.ts +2 -2
  99. package/es/ProTree/components/ProTreeSelect/index.d.ts +3 -3
  100. package/es/ProTree/components/ProTreeSelect/propsType.d.ts +371 -33
  101. package/es/ProTree/components/SearchTitle.d.ts +1 -1
  102. package/es/ProTree/components/Tree.d.ts +3 -3
  103. package/es/ProTree/index.d.ts +2 -2
  104. package/es/ProTree/index.js +1 -1
  105. package/es/ProTree/propsType.d.ts +692 -101
  106. package/es/ProTree/utils.d.ts +7 -7
  107. package/es/ProTreeModal/components/Cascader.d.ts +3 -3
  108. package/es/ProTreeModal/components/List.d.ts +3 -3
  109. package/es/ProTreeModal/components/Tree.d.ts +2 -2
  110. package/es/ProTreeModal/index.d.ts +2 -2
  111. package/es/ProTreeModal/index.js +2 -2
  112. package/es/ProTreeModal/propsType.d.ts +257 -48
  113. package/es/ProTreeModal/utils.d.ts +7 -7
  114. package/es/index.d.ts +15 -7
  115. package/es/index.js +1 -8
  116. package/lib/ProConfigProvider/index.d.ts +4 -4
  117. package/lib/ProDrawerForm/components/ProDrawer/index.js +12 -2
  118. package/lib/ProDrawerForm/components/ProModal/index.js +12 -2
  119. package/lib/ProDrawerForm/propsType.d.ts +1 -1
  120. package/lib/ProEditLabel/propsType.d.ts +2 -2
  121. package/lib/ProEditTable/components/Summary/index.d.ts +2 -2
  122. package/lib/ProEditTable/index.js +12 -8
  123. package/lib/ProEditTable/propsType.d.ts +40 -42
  124. package/lib/ProEditTable/style/index.less +1 -0
  125. package/lib/ProEditTable/utils/index.d.ts +1 -1
  126. package/lib/ProEditTable/utils/index.js +6 -4
  127. package/lib/ProEditTable/utils/tools.d.ts +57 -22
  128. package/lib/ProEditTable/utils/tools.js +47 -21
  129. package/lib/ProEnum/hooks/useEnum.d.ts +2 -2
  130. package/lib/ProEnum/hooks/useEnum.js +48 -17
  131. package/lib/ProEnum/propsType.d.ts +2 -2
  132. package/lib/ProEnum/utils/index.d.ts +8 -1
  133. package/lib/ProEnum/utils/index.js +9 -2
  134. package/lib/ProForm/components/FormFooter/index.d.ts +1 -1
  135. package/lib/ProForm/components/base/Checkbox/index.d.ts +1 -1
  136. package/lib/ProForm/components/base/Input/index.js +17 -4
  137. package/lib/ProForm/components/base/Input/propsType.d.ts +3 -3
  138. package/lib/ProForm/components/base/InputNumber/index.d.ts +1 -1
  139. package/lib/ProForm/components/base/Radio/index.d.ts +1 -1
  140. package/lib/ProForm/components/base/RangePicker/index.d.ts +1 -1
  141. package/lib/ProForm/components/base/Select/index.d.ts +1 -1
  142. package/lib/ProForm/components/base/Switch/index.d.ts +1 -1
  143. package/lib/ProForm/components/base/SwitchCheckbox/index.d.ts +1 -1
  144. package/lib/ProForm/components/base/TextArea/index.d.ts +1 -1
  145. package/lib/ProForm/components/base/TimePicker/index.d.ts +1 -1
  146. package/lib/ProForm/components/combination/Container/propsType.d.ts +3 -3
  147. package/lib/ProForm/components/combination/FormList/components/ActionButton.d.ts +1 -1
  148. package/lib/ProForm/components/combination/FormList/components/BlockFields.d.ts +1 -1
  149. package/lib/ProForm/components/combination/FormList/components/LineFields.d.ts +2 -2
  150. package/lib/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +1 -1
  151. package/lib/ProForm/components/combination/FormList/propsType.d.ts +2 -2
  152. package/lib/ProForm/components/combination/Group/index.d.ts +1 -1
  153. package/lib/ProForm/components/combination/Group/propsType.d.ts +1 -1
  154. package/lib/ProForm/components/combination/Group/utils.d.ts +3 -3
  155. package/lib/ProForm/components/combination/ProCascader/index.d.ts +1 -1
  156. package/lib/ProForm/components/combination/ProCombination/index.d.ts +1 -1
  157. package/lib/ProForm/components/combination/ProCombination/propsType.d.ts +1 -1
  158. package/lib/ProForm/components/combination/ProModalSelect/index.d.ts +1 -1
  159. package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +5 -5
  160. package/lib/ProForm/components/combination/ProNumberRange/index.d.ts +2 -2
  161. package/lib/ProForm/components/combination/ProNumberRange/propsType.d.ts +1 -1
  162. package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +2 -2
  163. package/lib/ProForm/components/old/EnumSelect/index.d.ts +1 -1
  164. package/lib/ProForm/components/old/EnumSelect/interface.d.ts +2 -2
  165. package/lib/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
  166. package/lib/ProForm/components/old/ProAddress/index.d.ts +1 -1
  167. package/lib/ProForm/components/old/ProCertNo/index.d.ts +1 -1
  168. package/lib/ProForm/components/old/ProCertValidity/index.d.ts +1 -1
  169. package/lib/ProForm/components/old/ProRangeBox/index.d.ts +1 -1
  170. package/lib/ProForm/components/render/ChangedWrapper.d.ts +1 -1
  171. package/lib/ProForm/components/render/ConfirmWrapper.d.ts +2 -2
  172. package/lib/ProForm/components/render/RenderFields.d.ts +3 -3
  173. package/lib/ProForm/components/render/propsType.d.ts +37 -41
  174. package/lib/ProForm/index.d.ts +1 -1
  175. package/lib/ProForm/index.js +3 -1
  176. package/lib/ProForm/propsType.d.ts +6 -4
  177. package/lib/ProForm/propsType.js +0 -15
  178. package/lib/ProForm/utils/transformValue.d.ts +1 -1
  179. package/lib/ProForm/utils/useFieldProps.d.ts +1 -1
  180. package/lib/ProForm/utils/useForm.d.ts +2 -1
  181. package/lib/ProForm/utils/useForm.js +3 -2
  182. package/lib/ProForm/utils/useRules.d.ts +1 -1
  183. package/lib/ProForm/utils/useShouldUpdate.d.ts +3 -3
  184. package/lib/ProIcon/index.d.ts +2 -2
  185. package/lib/ProIcon/propsTypes.d.ts +120 -49
  186. package/lib/ProSelect/propsType.d.ts +1 -1
  187. package/lib/ProStep/components/Anchor/index.d.ts +2 -1
  188. package/lib/ProStep/components/Item/index.d.ts +1 -1
  189. package/lib/ProStep/components/Item/index.js +6 -2
  190. package/lib/ProStep/components/Listener/index.d.ts +4 -3
  191. package/lib/ProStep/components/Listener/index.js +18 -4
  192. package/lib/ProStep/index.d.ts +7 -7
  193. package/lib/ProStep/index.js +7 -3
  194. package/lib/ProStep/propsType.d.ts +145 -5
  195. package/lib/ProStep/utils/index.d.ts +16 -3
  196. package/lib/ProStep/utils/index.js +11 -2
  197. package/lib/ProTable/components/FormatColumn/index.d.ts +1 -1
  198. package/lib/ProTable/components/FormatColumn/index.js +3 -6
  199. package/lib/ProTable/components/RenderTabs/index.d.ts +4 -0
  200. package/lib/ProTable/components/RenderTabs/index.js +82 -0
  201. package/lib/ProTable/components/index.d.ts +25 -0
  202. package/lib/ProTable/components/index.js +8 -1
  203. package/lib/ProTable/hooks/useAntdTable.d.ts +2 -93
  204. package/lib/ProTable/hooks/useAntdTable.js +5 -1
  205. package/lib/ProTable/index.d.ts +1 -1
  206. package/lib/ProTable/index.js +5 -2
  207. package/lib/ProTable/propsType.d.ts +68 -28
  208. package/lib/ProTooltip/propsType.d.ts +0 -3
  209. package/lib/ProTree/components/List.d.ts +2 -2
  210. package/lib/ProTree/components/List.js +2 -2
  211. package/lib/ProTree/components/ProTree.d.ts +2 -2
  212. package/lib/ProTree/components/ProTreeSelect/index.d.ts +3 -3
  213. package/lib/ProTree/components/ProTreeSelect/propsType.d.ts +371 -33
  214. package/lib/ProTree/components/SearchTitle.d.ts +1 -1
  215. package/lib/ProTree/components/Tree.d.ts +3 -3
  216. package/lib/ProTree/index.d.ts +2 -2
  217. package/lib/ProTree/index.js +1 -1
  218. package/lib/ProTree/propsType.d.ts +692 -101
  219. package/lib/ProTree/utils.d.ts +7 -7
  220. package/lib/ProTreeModal/components/Cascader.d.ts +3 -3
  221. package/lib/ProTreeModal/components/List.d.ts +3 -3
  222. package/lib/ProTreeModal/components/Tree.d.ts +2 -2
  223. package/lib/ProTreeModal/index.d.ts +2 -2
  224. package/lib/ProTreeModal/index.js +2 -2
  225. package/lib/ProTreeModal/propsType.d.ts +257 -48
  226. package/lib/ProTreeModal/utils.d.ts +7 -7
  227. package/lib/index.d.ts +15 -7
  228. package/lib/index.js +7 -83
  229. package/package.json +1 -1
  230. package/test/__mocks__/fileMock.js +0 -0
  231. package/test/__mocks__/styleMock.js +0 -0
@@ -7,32 +7,47 @@ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
7
7
  import React from 'react';
8
8
  import { tools, validate } from '@zat-design/utils';
9
9
  import { cloneDeep, cloneDeepWith, isString, isObject, isEqual, transform, isFunction, isBoolean, get } from 'lodash';
10
+ /**
11
+ * 生成随机字符串
12
+ * @returns 随机字符串
13
+ */
10
14
  export var getRandom = function getRandom() {
11
15
  return Math.random().toString(36).slice(-6);
12
16
  };
13
- // 深层次对比两个对象且取出来差异值
17
+ /**
18
+ * 深层次对比两个对象且取出来差异值
19
+ * @param object 比较对象
20
+ * @param base 基准对象
21
+ * @returns 差异对象
22
+ */
14
23
  export var difference = function difference(object, base) {
15
24
  var _changes = function changes(object, base) {
16
25
  return transform(object, function (result, value, key) {
17
- if (!isEqual(value, base[key])) {
18
- result[key] = isObject(value) && isObject(base[key]) ? _changes(value, base[key]) : value;
26
+ if (!isEqual(value, base === null || base === void 0 ? void 0 : base[key])) {
27
+ result[key] = isObject(value) && isObject(base === null || base === void 0 ? void 0 : base[key]) ? _changes(value, base === null || base === void 0 ? void 0 : base[key]) : value;
19
28
  }
20
29
  });
21
30
  };
22
31
  return _changes(object, base);
23
32
  };
24
- // 数组字段循环校验,解决validateFields无法批量校验的问题
33
+ /**
34
+ * 数组字段循环校验,解决validateFields无法批量校验的问题
35
+ * @param validateKeys 校验键数组
36
+ * @param form 表单实例
37
+ * @param rowName 行名称路径
38
+ * @returns 校验结果Promise
39
+ */
25
40
  export var customValidate = function customValidate(validateKeys, form, rowName) {
26
41
  var array = [];
27
42
  validateKeys.forEach(function (key) {
28
- array.push(rowName.concat(key));
43
+ array.push([].concat(_toConsumableArray(Array.isArray(rowName) ? rowName : [rowName]), [key]));
29
44
  });
30
45
  return form.validateFields(array);
31
46
  };
32
47
  /**
33
48
  * 拆解数组names
34
- * @param names [][]
35
- * @returns string
49
+ * @param names 名称数组
50
+ * @returns 拆解后的字符串
36
51
  */
37
52
  export var splitNames = function splitNames(names) {
38
53
  var result;
@@ -49,14 +64,23 @@ export var splitNames = function splitNames(names) {
49
64
  result = resultArray.join('-');
50
65
  return result;
51
66
  };
52
- // 获取中间formItem的name
67
+ /**
68
+ * 获取中间formItem的name
69
+ * @param name 名称路径
70
+ * @param virtualKey 虚拟键
71
+ * @returns 完整名称路径数组
72
+ */
53
73
  export var getNamePath = function getNamePath(name, virtualKey) {
54
74
  var nextName = cloneDeep(Array.isArray(name) ? name : [name]);
55
- var lastValue = nextName[nextName.length - 1];
56
- nextName[nextName.length - 1] = "".concat(lastValue).concat(virtualKey ? "-".concat(virtualKey) : '');
75
+ var lastIndex = nextName.length - 1;
76
+ // 确保最后一个元素是字符串类型
77
+ nextName[lastIndex] = "".concat(nextName[lastIndex]).concat(virtualKey ? "-".concat(virtualKey) : '');
57
78
  return nextName;
58
79
  };
59
- // 删除操作
80
+ /**
81
+ * 删除操作
82
+ * @param params 删除参数
83
+ */
60
84
  export var onDelete = function onDelete(_ref) {
61
85
  var name = _ref.name,
62
86
  form = _ref.form,
@@ -81,16 +105,12 @@ export var onDelete = function onDelete(_ref) {
81
105
  }
82
106
  }
83
107
  };
84
- /** 获取最终的disabled, 两张模式【子级优先,全局优先】
108
+ /**
109
+ * 获取最终的disabled, 两张模式【子级优先,全局优先
85
110
  * 全局优先:globalControl为true时,全局控制
86
111
  * 子级优先:globalControl为false时,子级控制
87
- * @param globalControl 全局控制
88
- * @param formDisabled 表单的disabled
89
- * @param column 当前列
90
- * @param tabledDisabled 表格的disabled
91
- * @param columnFieldProps 当前列的fieldProps
92
- * @param params 当前列的参数
93
- * @param rowDisabled 行禁用参数
112
+ * @param params 禁用参数
113
+ * @returns 是否禁用
94
114
  */
95
115
  export var getDisabled = function getDisabled(_ref2) {
96
116
  var _ref3, _column$disabled;
@@ -103,7 +123,7 @@ export var getDisabled = function getDisabled(_ref2) {
103
123
  rowDisabled = _ref2.rowDisabled;
104
124
  var convertToBoolean = function convertToBoolean(value) {
105
125
  if (Array.isArray(value)) {
106
- return value;
126
+ return Boolean(value.length);
107
127
  }
108
128
  if (value === null || value === undefined || value === '') {
109
129
  return false;
@@ -157,7 +177,8 @@ export var getDisabled = function getDisabled(_ref2) {
157
177
  }
158
178
  return convertToBoolean((_ref3 = (_column$disabled = column === null || column === void 0 ? void 0 : column.disabled) !== null && _column$disabled !== void 0 ? _column$disabled : columnFieldProps === null || columnFieldProps === void 0 ? void 0 : columnFieldProps.disabled) !== null && _ref3 !== void 0 ? _ref3 : tabledDisabled);
159
179
  };
160
- /** 表格自动滚动到报错位置
180
+ /**
181
+ * 表格自动滚动到报错位置
161
182
  */
162
183
  export var handleScrollToError = function handleScrollToError() {
163
184
  setTimeout(function () {
@@ -217,6 +238,11 @@ export function cloneDeepFilterNode(value) {
217
238
  }
218
239
  });
219
240
  }
241
+ /**
242
+ * 判断值是否为空
243
+ * @param value 需要判断的值
244
+ * @returns 是否为空
245
+ */
220
246
  var _isNull = function isNull(value) {
221
247
  if (Array.isArray(value) && value.length) {
222
248
  return value.some(function (item) {
@@ -4,7 +4,7 @@ import { DataOption } from '../propsType';
4
4
  * @param code
5
5
  * const [options,fn] = useEnum("code")
6
6
  */
7
- declare function useEnum(code: string): [DataOption[], (val: string, showCodeName?: boolean) => string];
7
+ declare function useEnum(code?: string): [DataOption[], (val: string, showCodeName?: boolean) => string];
8
8
  /**
9
9
  * input codes output { code1:DataOption[],code2:DataOption[] }
10
10
  * @param codes
@@ -17,5 +17,5 @@ declare function useEnum(codes: string[]): Record<string, DataOption[]>;
17
17
  * @param value
18
18
  * @param compose 展示 value-label
19
19
  */
20
- declare function useEnum(code: string, value?: string, compose?: boolean): [string, DataOption];
20
+ declare function useEnum(code?: string, value?: string, compose?: boolean): [string, DataOption];
21
21
  export default useEnum;
@@ -1,8 +1,17 @@
1
- var _ref;
1
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
2
  /* eslint-disable no-redeclare */
3
3
  import { useProConfig } from '../../ProConfigProvider';
4
4
  import { getEnumData } from '../utils';
5
- var baseEnumStorage = (_ref = window.localStorage.getItem('zat-design-pro-component-cacheKey') && JSON.parse(window.localStorage.getItem('zat-design-pro-component-cacheKey'))) !== null && _ref !== void 0 ? _ref : null;
5
+ var baseEnumStorage = null;
6
+ try {
7
+ var storedData = window.localStorage.getItem('zat-design-pro-component-cacheKey');
8
+ if (storedData) {
9
+ baseEnumStorage = JSON.parse(storedData);
10
+ }
11
+ } catch (error) {
12
+ console.error('解析枚举缓存数据失败', error);
13
+ baseEnumStorage = null;
14
+ }
6
15
  /**
7
16
  * 根据 code 从枚举缓存取出对应的 options 、以及回显
8
17
  * @param codes
@@ -11,24 +20,44 @@ var baseEnumStorage = (_ref = window.localStorage.getItem('zat-design-pro-compon
11
20
  * @returns
12
21
  */
13
22
  function useEnum(codes, value, compose) {
14
- var _ref2 = useProConfig('globalConfig') || {},
15
- _ref2$storage = _ref2.storage,
16
- storage = _ref2$storage === void 0 ? 'localStorage' : _ref2$storage;
17
- var _ref3 = useProConfig('ProEnum') || {},
18
- _ref3$cacheKey = _ref3.cacheKey,
19
- cacheKey = _ref3$cacheKey === void 0 ? 'zat-design-pro-component-cacheKey' : _ref3$cacheKey,
20
- _ref3$fieldNames = _ref3.fieldNames,
21
- fieldNames = _ref3$fieldNames === void 0 ? {} : _ref3$fieldNames,
22
- _ref3$clear = _ref3.clear,
23
- clear = _ref3$clear === void 0 ? true : _ref3$clear;
24
- var catchData = getEnumData(storage, cacheKey, baseEnumStorage);
23
+ var _ref = useProConfig('globalConfig') || {},
24
+ _ref$storage = _ref.storage,
25
+ storage = _ref$storage === void 0 ? 'localStorage' : _ref$storage;
26
+ var _ref2 = useProConfig('ProEnum') || {},
27
+ _ref2$cacheKey = _ref2.cacheKey,
28
+ cacheKey = _ref2$cacheKey === void 0 ? 'zat-design-pro-component-cacheKey' : _ref2$cacheKey,
29
+ _ref2$fieldNames = _ref2.fieldNames,
30
+ fieldNames = _ref2$fieldNames === void 0 ? {} : _ref2$fieldNames,
31
+ _ref2$clear = _ref2.clear,
32
+ clear = _ref2$clear === void 0 ? true : _ref2$clear,
33
+ _ref2$dataSource = _ref2.dataSource,
34
+ dataSource = _ref2$dataSource === void 0 ? {} : _ref2$dataSource;
35
+ var catchData = getEnumData(storage, cacheKey, baseEnumStorage, dataSource);
25
36
  // 默认枚举缓存数据
26
37
  baseEnumStorage = catchData;
27
38
  if (!codes) {
39
+ if (!Object.keys(catchData).length) {
40
+ return [];
41
+ }
28
42
  return catchData;
29
43
  }
30
44
  var fieldLabel = '';
31
45
  var fieldValue = '';
46
+ // 获取枚举数据源
47
+ var enumDataSource = (catchData === null || catchData === void 0 ? void 0 : catchData.data) || {};
48
+ // 当dataSource有值时,检查是否需要合并
49
+ if (dataSource && Object.keys(dataSource).length > 0) {
50
+ // 创建合并后的数据源
51
+ var mergedDataSource = _objectSpread({}, enumDataSource);
52
+ // 遍历dataSource中的每个键
53
+ Object.keys(dataSource).forEach(function (key) {
54
+ // 如果enumDataSource中不存在该键或者该键对应的值为空数组,则合并
55
+ if (!enumDataSource[key] || enumDataSource[key].length === 0) {
56
+ mergedDataSource[key] = dataSource[key];
57
+ }
58
+ });
59
+ enumDataSource = mergedDataSource;
60
+ }
32
61
  if (fieldNames && Object.keys(fieldNames).length) {
33
62
  fieldLabel = fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.label;
34
63
  fieldValue = fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.value;
@@ -38,8 +67,8 @@ function useEnum(codes, value, compose) {
38
67
  fieldValue = 'value';
39
68
  }
40
69
  if (typeof codes === 'string') {
41
- var _catchData$data;
42
- var options = (catchData === null || catchData === void 0 ? void 0 : (_catchData$data = catchData.data) === null || _catchData$data === void 0 ? void 0 : _catchData$data[codes]) || [];
70
+ var _enumDataSource;
71
+ var options = ((_enumDataSource = enumDataSource) === null || _enumDataSource === void 0 ? void 0 : _enumDataSource[codes]) || [];
43
72
  var getEnumLabel = function getEnumLabel(v, composezTow) {
44
73
  var option = options.find(function (item) {
45
74
  return item[fieldValue] === v;
@@ -62,8 +91,8 @@ function useEnum(codes, value, compose) {
62
91
  if (Array.isArray(codes)) {
63
92
  var _options = {};
64
93
  codes.forEach(function (code) {
65
- var _catchData$data2;
66
- var values = catchData === null || catchData === void 0 ? void 0 : (_catchData$data2 = catchData.data) === null || _catchData$data2 === void 0 ? void 0 : _catchData$data2[code];
94
+ var _enumDataSource2;
95
+ var values = (_enumDataSource2 = enumDataSource) === null || _enumDataSource2 === void 0 ? void 0 : _enumDataSource2[code];
67
96
  if (Array.isArray(values) && values.length) {
68
97
  _options[code] = values;
69
98
  }
@@ -1,8 +1,8 @@
1
1
  import React, { ReactNode } from 'react';
2
2
  import { RadioProps, CheckboxProps } from 'antd';
3
3
  import { Service, Options } from 'ahooks/lib/useRequest/src/types';
4
- import { ProFormOtherType } from '../index';
5
- import { PropSelectProps } from '../ProSelect/propsType';
4
+ import type { ProFormOtherType } from '../ProForm/propsType';
5
+ import type { PropSelectProps } from '../ProSelect/propsType';
6
6
  /**
7
7
  * @description 数据选项类型
8
8
  */
@@ -4,7 +4,14 @@ interface EnumRes {
4
4
  data: Record<string, DataOption[]>;
5
5
  [key: string]: any;
6
6
  }
7
- export declare function getEnumData(storage: StorageType, cacheKey: string, baseEnumStorage?: any): EnumRes;
7
+ /**
8
+ * 获取枚举数据
9
+ * @param storage
10
+ * @param cacheKey
11
+ * @param baseEnumStorage
12
+ * @returns
13
+ */
14
+ export declare function getEnumData(storage: StorageType, cacheKey: string, baseEnumStorage?: any, dataSource?: any[]): EnumRes;
8
15
  export declare function setEnumData(storage: StorageType, cacheKey: string, data: any): boolean;
9
16
  export declare function hasEnumList(storage: StorageType, cacheKey: any, code: string): import("../propsType").DataOptionType[];
10
17
  export declare function isObject(obj: any): boolean;
@@ -1,8 +1,15 @@
1
1
  import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
2
2
  var _excluded = ["children"];
3
3
  import { isNull, isUndefined } from 'lodash';
4
- export function getEnumData(storage, cacheKey, baseEnumStorage) {
5
- if (baseEnumStorage) {
4
+ /**
5
+ * 获取枚举数据
6
+ * @param storage
7
+ * @param cacheKey
8
+ * @param baseEnumStorage
9
+ * @returns
10
+ */
11
+ export function getEnumData(storage, cacheKey, baseEnumStorage, dataSource) {
12
+ if (baseEnumStorage && cacheKey === 'zat-design-pro-component-cacheKey') {
6
13
  return baseEnumStorage;
7
14
  }
8
15
  if (storage === 'localStorage') {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { FooterRenderType } from './propsType';
2
+ import type { FooterRenderType } from './propsType';
3
3
  export declare const PRO_FORM_CACHE = "PRO_FORM_CACHE";
4
4
  declare const FormFooter: React.FC<FooterRenderType>;
5
5
  export default FormFooter;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { CheckboxGroupProps } from 'antd/es/checkbox';
3
- import { ProFormOtherType } from '../../../propsType';
3
+ import type { ProFormOtherType } from '../../../propsType';
4
4
  export interface Props extends Omit<CheckboxGroupProps, 'options'> {
5
5
  dataSource: any[];
6
6
  fieldNames?: {
@@ -27,6 +27,19 @@ var Input = function Input(props) {
27
27
  var isView = typeof props.isView === 'boolean' ? props.isView : isViewCon; // 组件可直接接收isView参数, 优先级高
28
28
  var initialConfig = useProConfig('Input');
29
29
  if (isView) {
30
+ if ((desensitization === null || desensitization === void 0 ? void 0 : desensitization.length) && (props === null || props === void 0 ? void 0 : props.disabled)) {
31
+ var isDesensit = sessionStorage.getItem(otherProps === null || otherProps === void 0 ? void 0 : otherProps.desensitizationKey);
32
+ if (isDesensit === 'ON') {
33
+ if (typeof rest.value === 'number') {
34
+ var _rest$value, _rest$value$toString;
35
+ rest.value = rest === null || rest === void 0 ? void 0 : (_rest$value = rest.value) === null || _rest$value === void 0 ? void 0 : (_rest$value$toString = _rest$value.toString) === null || _rest$value$toString === void 0 ? void 0 : _rest$value$toString.call(_rest$value);
36
+ }
37
+ return _jsx(Container, {
38
+ viewEmpty: viewEmpty,
39
+ children: maskStringRangeWithRegex(rest.value, desensitization)
40
+ });
41
+ }
42
+ }
30
43
  return _jsx(Container, {
31
44
  viewEmpty: viewEmpty,
32
45
  children: rest.value
@@ -39,11 +52,11 @@ var Input = function Input(props) {
39
52
  }, omit(initialConfig, ['trim'])), rest));
40
53
  // 仅查看模式下进行数据脱敏
41
54
  if ((desensitization === null || desensitization === void 0 ? void 0 : desensitization.length) && (props === null || props === void 0 ? void 0 : props.disabled)) {
42
- var isDesensit = sessionStorage.getItem(otherProps === null || otherProps === void 0 ? void 0 : otherProps.desensitizationKey);
43
- if (isDesensit === 'ON') {
55
+ var _isDesensit = sessionStorage.getItem(otherProps === null || otherProps === void 0 ? void 0 : otherProps.desensitizationKey);
56
+ if (_isDesensit === 'ON') {
44
57
  if (typeof rest.value === 'number') {
45
- var _rest$value, _rest$value$toString;
46
- rest.value = rest === null || rest === void 0 ? void 0 : (_rest$value = rest.value) === null || _rest$value === void 0 ? void 0 : (_rest$value$toString = _rest$value.toString) === null || _rest$value$toString === void 0 ? void 0 : _rest$value$toString.call(_rest$value);
58
+ var _rest$value2, _rest$value2$toString;
59
+ rest.value = rest === null || rest === void 0 ? void 0 : (_rest$value2 = rest.value) === null || _rest$value2 === void 0 ? void 0 : (_rest$value2$toString = _rest$value2.toString) === null || _rest$value2$toString === void 0 ? void 0 : _rest$value2$toString.call(_rest$value2);
47
60
  }
48
61
  return /*#__PURE__*/React.cloneElement(ComInput, _objectSpread(_objectSpread(_objectSpread({
49
62
  allowClear: true,
@@ -1,6 +1,6 @@
1
- import { InputProps } from 'antd';
2
- import { FormInstance } from 'antd/es/form/Form';
3
- import { ProFormOtherType } from '../../../propsType';
1
+ import type { InputProps } from 'antd';
2
+ import type { FormInstance } from 'antd/es/form/Form';
3
+ import type { ProFormOtherType } from '../../../propsType';
4
4
  export interface ProFieldType<T = any> {
5
5
  from?: FormInstance<T>;
6
6
  label?: string;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { InputNumberProps } from 'antd';
3
- import { ProFormOtherType } from '../../../propsType';
3
+ import type { ProFormOtherType } from '../../../propsType';
4
4
  export interface Props extends Omit<InputNumberProps, 'onBlur'> {
5
5
  otherProps?: ProFormOtherType;
6
6
  range?: string;
@@ -1,6 +1,6 @@
1
1
  import { RadioChangeEvent, RadioProps } from 'antd';
2
2
  import React from 'react';
3
- import { ProFormOtherType } from '../../../propsType';
3
+ import type { ProFormOtherType } from '../../../propsType';
4
4
  export interface Props extends Omit<RadioProps, 'options' | 'onChange'> {
5
5
  dataSource: any[];
6
6
  onChange: (value: any, e: RadioChangeEvent) => void;
@@ -1,6 +1,6 @@
1
1
  import type { RangePickerProps } from 'antd/es/date-picker';
2
2
  import React from 'react';
3
- import { ProFormOtherType } from '../../../propsType';
3
+ import type { ProFormOtherType } from '../../../propsType';
4
4
  import { Props as RangeProps } from './useDateRange';
5
5
  export type Props = {
6
6
  otherProps?: ProFormOtherType;
@@ -1,6 +1,6 @@
1
1
  import { SelectProps } from 'antd';
2
2
  import React from 'react';
3
- import { ProFormOtherType } from '../../../propsType';
3
+ import type { ProFormOtherType } from '../../../propsType';
4
4
  export interface Props extends SelectProps {
5
5
  dataSource?: any[];
6
6
  scrollFollowParent?: boolean;
@@ -1,6 +1,6 @@
1
1
  import { SwitchProps } from 'antd';
2
2
  import React from 'react';
3
- import { ProFormOtherType } from '../../../propsType';
3
+ import type { ProFormOtherType } from '../../../propsType';
4
4
  export interface Props extends Omit<SwitchProps, 'value'> {
5
5
  value: any;
6
6
  otherProps?: ProFormOtherType;
@@ -1,6 +1,6 @@
1
1
  import * as React from 'react';
2
2
  import { CheckboxProps } from 'antd';
3
- import { ProFormOtherType } from '../../../propsType';
3
+ import type { ProFormOtherType } from '../../../propsType';
4
4
  export interface Props extends CheckboxProps {
5
5
  label?: string;
6
6
  otherProps?: ProFormOtherType;
@@ -1,6 +1,6 @@
1
1
  import { TextAreaProps } from 'antd/es/input';
2
2
  import React from 'react';
3
- import { ProFormOtherType } from '../../../propsType';
3
+ import type { ProFormOtherType } from '../../../propsType';
4
4
  import './index.less';
5
5
  export interface Props extends TextAreaProps {
6
6
  otherProps?: ProFormOtherType;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import type { TimePickerProps } from 'antd/es/time-picker';
3
- import { ProFormOtherType } from '../../../propsType';
3
+ import type { ProFormOtherType } from '../../../propsType';
4
4
  import './style/index.less';
5
5
  export interface Props {
6
6
  valueType?: string;
@@ -1,8 +1,8 @@
1
1
  import React from 'react';
2
- import { RowProps } from 'antd';
3
- import { ProColumnType, ProFormOtherType, DiffConfigType } from '../../../propsType';
2
+ import type { RowProps } from 'antd';
3
+ import type { ProFormColumnType, ProFormOtherType, DiffConfigType } from '../../../propsType';
4
4
  export interface ContainerType {
5
- children?: ProColumnType[];
5
+ children?: ProFormColumnType[];
6
6
  otherProps?: ProFormOtherType;
7
7
  rowProps?: RowProps;
8
8
  className?: string;
@@ -1,7 +1,7 @@
1
1
  import { FormInstance, FormListFieldData, FormListOperation } from 'antd';
2
2
  import { InternalNamePath } from 'antd/es/form/interface';
3
3
  import React from 'react';
4
- import { FormListType, ActionType, FormListMode } from '../propsType';
4
+ import type { FormListType, ActionType, FormListMode } from '../propsType';
5
5
  export interface Props {
6
6
  min?: FormListType['min'];
7
7
  max?: FormListType['max'];
@@ -3,7 +3,7 @@ import React from 'react';
3
3
  import { InternalNamePath } from 'antd/es/form/interface';
4
4
  import type { levelType } from '../../../../../ProLayout/components/ProCollapse/PropTypes';
5
5
  import type { FormListType } from '../propsType';
6
- import { DiffConfigType } from '../../../../propsType';
6
+ import type { DiffConfigType } from '../../../../propsType';
7
7
  interface Props extends Omit<FormListType, 'toolbarProps'> {
8
8
  index: number;
9
9
  namePath: InternalNamePath;
@@ -1,8 +1,8 @@
1
1
  import { ColProps, FormListFieldData } from 'antd';
2
2
  import React from 'react';
3
3
  import { InternalNamePath } from 'antd/es/form/interface';
4
- import { FormListType } from '../propsType';
5
- import { DiffConfigType } from '../../../../propsType';
4
+ import type { FormListType } from '../propsType';
5
+ import type { DiffConfigType } from '../../../../propsType';
6
6
  interface Props extends Omit<FormListType, 'toolbarProps'> {
7
7
  className?: string;
8
8
  index: number;
@@ -1,6 +1,6 @@
1
1
  import { InternalNamePath } from 'antd/es/form/interface';
2
2
  import React from 'react';
3
- import { ToolbarActionType } from '../propsType';
3
+ import type { ToolbarActionType } from '../propsType';
4
4
  import { Props as ActionButtonProps } from './ActionButton';
5
5
  interface Props extends Omit<ActionButtonProps, 'actionProps' | 'field' | 'index' | 'mode' | 'namePath'> {
6
6
  toolbarProps: ToolbarActionType[];
@@ -3,7 +3,7 @@ import type { FormInstance } from 'antd/es/form/Form';
3
3
  import type { ButtonProps, FormListFieldData, FormListOperation, PopconfirmProps } from 'antd';
4
4
  import type { InternalNamePath } from 'antd/es/form/interface';
5
5
  import type { levelType } from '../../../../ProLayout/components/ProCollapse/PropTypes';
6
- import type { ProColumnType, ProFormOtherType } from '../../../propsType';
6
+ import type { ProFormColumnType, ProFormOtherType } from '../../../propsType';
7
7
  export type TitleRender = (record: Record<string, any>, index: number, form: FormInstance) => any;
8
8
  export type TitleType = string | React.ReactNode | TitleRender;
9
9
  type Callback = (record: any, option: Pick<Option, 'namePath' | 'index' | 'operation' | 'form'>) => any | void;
@@ -32,7 +32,7 @@ export interface ToolbarActionType extends Omit<ActionType, 'actionType' | 'onHa
32
32
  }
33
33
  export type FormListMode = 'block' | 'line' | 'less';
34
34
  export interface FormListType {
35
- columns: ProColumnType[];
35
+ columns: ProFormColumnType[];
36
36
  otherProps?: ProFormOtherType;
37
37
  form?: FormInstance;
38
38
  min?: number;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { GroupType } from './propsType';
2
+ import type { GroupType } from './propsType';
3
3
  /**
4
4
  * 1. 外层过滤FormItem相关属性, 但是子元素上的 required [disabled] [show] rules [fieldProps] [component] 需要取到并
5
5
  * 2.
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import { FormItemProps, ModalFuncProps, SpaceProps } from 'antd';
3
3
  import { FormInstance } from 'antd/es/form/Form';
4
4
  import { NamePath } from 'antd/lib/form/interface';
5
- import { ColumnTypeMap, FunctionArgs, ProFormValueType, ReactiveFunction, ViewType } from '../../../propsType';
5
+ import type { ColumnTypeMap, FunctionArgs, ProFormValueType, ReactiveFunction, ViewType } from '../../render/propsType';
6
6
  export interface SpaceType extends SpaceProps {
7
7
  /**
8
8
  * 是否紧凑合并
@@ -1,8 +1,8 @@
1
1
  /// <reference types="react" />
2
2
  import { InternalNamePath, NamePath } from 'antd/lib/form/interface';
3
3
  import { FormInstance } from 'antd';
4
- import { GroupColumnType, GroupType, SpaceType } from './propsType';
5
- import { ProFormColumnProps, ReactiveFunction } from '../../render/propsType';
4
+ import type { GroupColumnType, GroupType, SpaceType } from './propsType';
5
+ import type { ProFormColumnType, ReactiveFunction } from '../../render/propsType';
6
6
  export type EventArgs = any[];
7
7
  /**
8
8
  * 插入间隔符
@@ -41,7 +41,7 @@ export declare const getReactiveProps: (params: Params) => {
41
41
  fieldProps: boolean;
42
42
  desensitization: [number, number];
43
43
  };
44
- type ValueTypeGetterParams = Pick<ProFormColumnProps, 'valueType' | 'switchValue' | 'toISOString' | 'toCSTString' | 'disabled' | 'desensitization'> & {
44
+ type ValueTypeGetterParams = Pick<ProFormColumnType, 'valueType' | 'switchValue' | 'toISOString' | 'toCSTString' | 'disabled' | 'desensitization'> & {
45
45
  type?: any;
46
46
  mode?: string;
47
47
  desensitizationKey?: string;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
- import { ProCascaderType } from './propsType';
2
+ import type { ProCascaderType } from './propsType';
3
3
  declare const _default: import("react").MemoExoticComponent<(props: ProCascaderType) => import("react/jsx-runtime").JSX.Element>;
4
4
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { FC } from 'react';
2
- import { ProCombinationType, ChildPropsItemType } from './propsType';
2
+ import type { ProCombinationType, ChildPropsItemType } from './propsType';
3
3
  import './style/index.less';
4
4
  export declare const ProCombination: FC<ProCombinationType>;
5
5
  export declare const childPropsItemProps: FC<ChildPropsItemType>;
@@ -2,7 +2,7 @@ import { FieldNames } from 'rc-select/lib/Select';
2
2
  import { FormInstance } from 'antd';
3
3
  import React from 'react';
4
4
  import * as componentMap from '../../index';
5
- import { ProFormOtherType } from '../../../propsType';
5
+ import type { ProFormOtherType } from '../../../propsType';
6
6
  export interface ChildPropsItemType {
7
7
  /**
8
8
  * @description 要显示什么组件,支持Input/Select
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
- import { ProModalSelectType } from './propsType';
2
+ import type { ProModalSelectType } from './propsType';
3
3
  declare const _default: React.ForwardRefExoticComponent<Omit<ProModalSelectType, "ref"> & React.RefAttributes<unknown>>;
4
4
  export default _default;
@@ -1,8 +1,8 @@
1
1
  import { FormInstance, InputProps, SelectProps, ModalProps } from 'antd';
2
2
  import { Service, Options } from 'ahooks/lib/useRequest/src/types';
3
3
  import React from 'react';
4
- import { ProColumnType } from '../../render/propsType';
5
- import { ProFormOtherType } from '../../../propsType';
4
+ import type { ProFormColumnType } from '../../render/propsType';
5
+ import type { ProFormOtherType } from '../../../propsType';
6
6
  /**
7
7
  * 模态框确认按钮回调函数类型
8
8
  * @param list 选中的数据列表
@@ -27,7 +27,7 @@ interface ConfigOption {
27
27
  initParams?: any;
28
28
  };
29
29
  /** 表单列配置项 */
30
- formColumns?: ProColumnType[];
30
+ formColumns?: ProFormColumnType[];
31
31
  /** 选择模式:单选(radio)或多选(checkbox) */
32
32
  type?: 'radio' | 'checkbox';
33
33
  /** 是否开启分页功能 */
@@ -92,10 +92,10 @@ interface ProModalPropsType {
92
92
  /** 模态框选择器属性类型(结合Select和Input属性) */
93
93
  export declare type ProModalSelectPropsType = SelectProps & InputProps & ProModalPropsType;
94
94
  /** 配置选项类型 */
95
- export type ConfigOptionType = ConfigOption;
95
+ export type ProModalSelectConfigType = ConfigOption;
96
96
  /** 模态框属性类型 */
97
97
  export type ProModalType = Omit<ProModalPropsType, 'configOption'> & {
98
- configOption: ConfigOptionType;
98
+ configOption: ProModalSelectConfigType;
99
99
  };
100
100
  /** 模态框选择器类型(结合Select和Input属性) */
101
101
  export type ProModalSelectType = SelectProps & InputProps & ProModalType;
@@ -1,3 +1,3 @@
1
- import { ProNumberRangeProps } from './propsType';
2
- declare const ProNumberRange: (props: ProNumberRangeProps) => any;
1
+ import type { ProNumberRangeType } from './propsType';
2
+ declare const ProNumberRange: (props: ProNumberRangeType) => any;
3
3
  export default ProNumberRange;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { ProFormOtherType } from '../../../propsType';
2
+ import type { ProFormOtherType } from '../../../propsType';
3
3
  export interface ProNumberRangeType {
4
4
  /**
5
5
  * @description 组件的值,[最小值,最大值]