@zat-design/sisyphus-react 3.6.6-beta.5 → 3.6.6-beta.6

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 (139) hide show
  1. package/es/ProAction/index.js +4 -4
  2. package/es/ProDownload/index.d.ts +1 -1
  3. package/es/ProEditTable/components/ActionButton/index.d.ts +1 -1
  4. package/es/ProEditTable/components/RcTable/BaseTable.d.ts +1 -1
  5. package/es/ProEditTable/components/RcTable/DraggableTable.d.ts +1 -1
  6. package/es/ProEditTable/components/RcTable/VirtualTable.d.ts +1 -1
  7. package/es/ProEditTable/components/RenderField/index.d.ts +1 -1
  8. package/es/ProEditTable/components/RenderToolbar/index.d.ts +1 -1
  9. package/es/ProEditTable/components/RenderToolbar/index.js +8 -6
  10. package/es/ProEditTable/components/Summary/index.d.ts +1 -1
  11. package/es/ProEditTable/index.js +1 -1
  12. package/es/ProEditTable/propsType.d.ts +5 -0
  13. package/es/ProEditTable/utils/config.d.ts +1 -1
  14. package/es/ProEditTable/utils/tools.js +3 -3
  15. package/es/ProEnum/components/Group.d.ts +1 -1
  16. package/es/ProEnum/components/Tag.d.ts +1 -1
  17. package/es/ProEnum/index.d.ts +2 -2
  18. package/es/ProEnum/utils/eventCenter.js +1 -2
  19. package/es/ProEnum/utils/getEnumLabel.d.ts +1 -1
  20. package/es/ProForm/components/base/Input/index.d.ts +1 -1
  21. package/es/ProForm/components/base/InputNumber/index.js +8 -2
  22. package/es/ProForm/components/combination/ProCascader/index.d.ts +1 -1
  23. package/es/ProForm/components/combination/ProCascader/index.js +7 -7
  24. package/es/ProForm/components/old/InputRange/index.d.ts +1 -1
  25. package/es/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
  26. package/es/ProForm/components/old/ProAddress/index.d.ts +1 -2
  27. package/es/ProForm/components/old/ProRangeBox/index.d.ts +1 -2
  28. package/es/ProForm/utils/index.js +14 -10
  29. package/es/ProIcon/utils/index.js +4 -3
  30. package/es/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +1 -1
  31. package/es/ProLayout/components/Layout/Menu/OpenMenu/index.js +3 -3
  32. package/es/ProLayout/components/ProCollapse/index.d.ts +1 -1
  33. package/es/ProLayout/components/ProFooter/index.d.ts +1 -1
  34. package/es/ProLayout/components/ProHeader/components/Copy/index.d.ts +1 -1
  35. package/es/ProLayout/components/ProHeader/index.d.ts +1 -1
  36. package/es/ProLayout/index.d.ts +4 -4
  37. package/es/ProLayout/utils/index.js +9 -9
  38. package/es/ProSelect/components/AdaptiveTooltip.d.ts +1 -1
  39. package/es/ProSelect/index.d.ts +1 -1
  40. package/es/ProStep/components/Anchor/index.d.ts +1 -1
  41. package/es/ProStep/components/Item/index.d.ts +1 -1
  42. package/es/ProStep/components/Step/index.d.ts +1 -1
  43. package/es/ProStep/index.d.ts +2 -2
  44. package/es/ProTable/components/ResizableLine/index.d.ts +1 -1
  45. package/es/ProTable/components/TableResizable/index.d.ts +1 -1
  46. package/es/ProTable/index.d.ts +1 -1
  47. package/es/ProTable/utils.js +3 -3
  48. package/es/ProTabs/components/Card/index.d.ts +1 -1
  49. package/es/ProThemeTools/component/PrdTools/index.d.ts +1 -1
  50. package/es/ProThemeTools/index.d.ts +1 -1
  51. package/es/ProTooltip/index.d.ts +1 -1
  52. package/es/ProTree/components/CloseIcon.d.ts +1 -2
  53. package/es/ProTree/components/List.d.ts +1 -1
  54. package/es/ProTree/components/ProTree.d.ts +1 -1
  55. package/es/ProTree/components/ProTreeSelect/index.d.ts +1 -1
  56. package/es/ProTree/components/ProTreeSelect/index.js +18 -18
  57. package/es/ProTree/components/SearchTitle.d.ts +1 -1
  58. package/es/ProTree/components/Tree.d.ts +1 -1
  59. package/es/ProTree/components/Tree.js +3 -3
  60. package/es/ProTree/index.d.ts +1 -1
  61. package/es/ProTree/utils.js +12 -11
  62. package/es/ProTreeModal/components/Cascader.d.ts +1 -1
  63. package/es/ProTreeModal/components/CloseIcon.d.ts +1 -2
  64. package/es/ProTreeModal/components/SearchTitle.d.ts +1 -1
  65. package/es/ProTreeModal/components/Tree.js +6 -6
  66. package/es/ProTreeModal/components/Trigger.d.ts +1 -1
  67. package/es/ProTreeModal/index.d.ts +1 -1
  68. package/es/ProTreeModal/utils.js +12 -11
  69. package/es/ProUpload/components/DraggableUploadListItem.d.ts +1 -1
  70. package/lib/ProAction/index.js +4 -4
  71. package/lib/ProDownload/index.d.ts +1 -1
  72. package/lib/ProEditTable/components/ActionButton/index.d.ts +1 -1
  73. package/lib/ProEditTable/components/RcTable/BaseTable.d.ts +1 -1
  74. package/lib/ProEditTable/components/RcTable/DraggableTable.d.ts +1 -1
  75. package/lib/ProEditTable/components/RcTable/VirtualTable.d.ts +1 -1
  76. package/lib/ProEditTable/components/RenderField/index.d.ts +1 -1
  77. package/lib/ProEditTable/components/RenderToolbar/index.d.ts +1 -1
  78. package/lib/ProEditTable/components/RenderToolbar/index.js +7 -5
  79. package/lib/ProEditTable/components/Summary/index.d.ts +1 -1
  80. package/lib/ProEditTable/index.js +1 -1
  81. package/lib/ProEditTable/propsType.d.ts +5 -0
  82. package/lib/ProEditTable/utils/config.d.ts +1 -1
  83. package/lib/ProEditTable/utils/tools.js +3 -3
  84. package/lib/ProEnum/components/Group.d.ts +1 -1
  85. package/lib/ProEnum/components/Tag.d.ts +1 -1
  86. package/lib/ProEnum/index.d.ts +2 -2
  87. package/lib/ProEnum/utils/eventCenter.js +1 -2
  88. package/lib/ProEnum/utils/getEnumLabel.d.ts +1 -1
  89. package/lib/ProForm/components/base/Input/index.d.ts +1 -1
  90. package/lib/ProForm/components/base/InputNumber/index.js +8 -2
  91. package/lib/ProForm/components/combination/ProCascader/index.d.ts +1 -1
  92. package/lib/ProForm/components/combination/ProCascader/index.js +7 -7
  93. package/lib/ProForm/components/old/InputRange/index.d.ts +1 -1
  94. package/lib/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
  95. package/lib/ProForm/components/old/ProAddress/index.d.ts +1 -2
  96. package/lib/ProForm/components/old/ProRangeBox/index.d.ts +1 -2
  97. package/lib/ProForm/utils/index.js +10 -10
  98. package/lib/ProIcon/utils/index.js +3 -3
  99. package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +1 -1
  100. package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.js +3 -3
  101. package/lib/ProLayout/components/ProCollapse/index.d.ts +1 -1
  102. package/lib/ProLayout/components/ProFooter/index.d.ts +1 -1
  103. package/lib/ProLayout/components/ProHeader/components/Copy/index.d.ts +1 -1
  104. package/lib/ProLayout/components/ProHeader/index.d.ts +1 -1
  105. package/lib/ProLayout/index.d.ts +4 -4
  106. package/lib/ProLayout/utils/index.js +9 -9
  107. package/lib/ProSelect/components/AdaptiveTooltip.d.ts +1 -1
  108. package/lib/ProSelect/index.d.ts +1 -1
  109. package/lib/ProStep/components/Anchor/index.d.ts +1 -1
  110. package/lib/ProStep/components/Item/index.d.ts +1 -1
  111. package/lib/ProStep/components/Step/index.d.ts +1 -1
  112. package/lib/ProStep/index.d.ts +2 -2
  113. package/lib/ProTable/components/ResizableLine/index.d.ts +1 -1
  114. package/lib/ProTable/components/TableResizable/index.d.ts +1 -1
  115. package/lib/ProTable/index.d.ts +1 -1
  116. package/lib/ProTable/utils.js +3 -3
  117. package/lib/ProTabs/components/Card/index.d.ts +1 -1
  118. package/lib/ProThemeTools/component/PrdTools/index.d.ts +1 -1
  119. package/lib/ProThemeTools/index.d.ts +1 -1
  120. package/lib/ProTooltip/index.d.ts +1 -1
  121. package/lib/ProTree/components/CloseIcon.d.ts +1 -2
  122. package/lib/ProTree/components/List.d.ts +1 -1
  123. package/lib/ProTree/components/ProTree.d.ts +1 -1
  124. package/lib/ProTree/components/ProTreeSelect/index.d.ts +1 -1
  125. package/lib/ProTree/components/ProTreeSelect/index.js +18 -18
  126. package/lib/ProTree/components/SearchTitle.d.ts +1 -1
  127. package/lib/ProTree/components/Tree.d.ts +1 -1
  128. package/lib/ProTree/components/Tree.js +3 -3
  129. package/lib/ProTree/index.d.ts +1 -1
  130. package/lib/ProTree/utils.js +11 -11
  131. package/lib/ProTreeModal/components/Cascader.d.ts +1 -1
  132. package/lib/ProTreeModal/components/CloseIcon.d.ts +1 -2
  133. package/lib/ProTreeModal/components/SearchTitle.d.ts +1 -1
  134. package/lib/ProTreeModal/components/Tree.js +6 -6
  135. package/lib/ProTreeModal/components/Trigger.d.ts +1 -1
  136. package/lib/ProTreeModal/index.d.ts +1 -1
  137. package/lib/ProTreeModal/utils.js +11 -11
  138. package/lib/ProUpload/components/DraggableUploadListItem.d.ts +1 -1
  139. package/package.json +3 -2
@@ -39,7 +39,7 @@ var ProAction = function ProAction(props) {
39
39
  var index = state.index,
40
40
  servicesArray = state.servicesArray;
41
41
  var length = config.length;
42
- var onActionRun = /*#__PURE__*/function () {
42
+ var _onActionRun = /*#__PURE__*/function () {
43
43
  var _ref = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee(currentIndex, array) {
44
44
  var _actionProps$useReque, _options$onSuccess, _newServicesArray$cur, _newServicesArray$cur2, _newServicesArray$cur3, _actionProps$onAction, _actionProps$continue;
45
45
  var actionProps, newServicesArray, _ref2, service, options, transformResponse, res, data, open, _newServicesArray$cur4, _newServicesArray$cur5, _newServicesArray$cur6, list, errorTitle, isContinue;
@@ -136,7 +136,7 @@ var ProAction = function ProAction(props) {
136
136
  return _context.abrupt("return", false);
137
137
  case 44:
138
138
  if (currentIndex + 1 < length) {
139
- onActionRun(currentIndex + 1, newServicesArray);
139
+ _onActionRun(currentIndex + 1, newServicesArray);
140
140
  } else {
141
141
  setState({
142
142
  loading: false
@@ -154,7 +154,7 @@ var ProAction = function ProAction(props) {
154
154
  }();
155
155
  var ChildContent = /*#__PURE__*/React.cloneElement(children, {
156
156
  onClick: function onClick() {
157
- onActionRun(0, []);
157
+ _onActionRun(0, []);
158
158
  },
159
159
  loading: state.loading
160
160
  });
@@ -166,7 +166,7 @@ var ProAction = function ProAction(props) {
166
166
  return _jsxs(_Fragment, {
167
167
  children: [((_config$ = config[0]) === null || _config$ === void 0 ? void 0 : _config$.mode) === 'confirm' ? _jsx(_Popconfirm, {
168
168
  onConfirm: function onConfirm() {
169
- return onActionRun(0, []);
169
+ return _onActionRun(0, []);
170
170
  },
171
171
  title: ((_config$2 = config[0]) === null || _config$2 === void 0 ? void 0 : _config$2.title) || (locale === null || locale === void 0 ? void 0 : (_locale$ProAction2 = locale.ProAction) === null || _locale$ProAction2 === void 0 ? void 0 : _locale$ProAction2.defaultTitle),
172
172
  children: children
@@ -1,6 +1,6 @@
1
1
  import { IProDownloadProps } from './propsType';
2
2
  declare const ProDownload: {
3
- (props: IProDownloadProps): JSX.Element;
3
+ (props: IProDownloadProps): import("react/jsx-runtime").JSX.Element;
4
4
  downLoadRequest: import("./utils").DownloadRequestProps;
5
5
  };
6
6
  export default ProDownload;
@@ -1,2 +1,2 @@
1
- declare const ActionButton: ({ record, index, config, btnConfig }: any) => JSX.Element;
1
+ declare const ActionButton: ({ record, index, config, btnConfig }: any) => import("react/jsx-runtime").JSX.Element;
2
2
  export default ActionButton;
@@ -2,5 +2,5 @@
2
2
  declare const _default: import("react").MemoExoticComponent<({ tableProps, ...resetProps }: {
3
3
  [x: string]: any;
4
4
  tableProps: any;
5
- }) => JSX.Element>;
5
+ }) => import("react/jsx-runtime").JSX.Element>;
6
6
  export default _default;
@@ -3,5 +3,5 @@ declare const _default: import("react").MemoExoticComponent<({ tableProps, dragg
3
3
  [x: string]: any;
4
4
  tableProps: any;
5
5
  draggableProps: any;
6
- }) => JSX.Element>;
6
+ }) => import("react/jsx-runtime").JSX.Element>;
7
7
  export default _default;
@@ -2,5 +2,5 @@ import React from 'react';
2
2
  declare const _default: React.MemoExoticComponent<({ tableProps, ...resetProps }: {
3
3
  [x: string]: any;
4
4
  tableProps: any;
5
- }) => JSX.Element>;
5
+ }) => import("react/jsx-runtime").JSX.Element>;
6
6
  export default _default;
@@ -1,2 +1,2 @@
1
- declare const RenderField: ({ text: value, record, index, column, config }: any) => JSX.Element;
1
+ declare const RenderField: ({ text: value, record, index, column, config }: any) => import("react/jsx-runtime").JSX.Element;
2
2
  export default RenderField;
@@ -1,2 +1,2 @@
1
- declare const RenderToolbar: (config: any) => JSX.Element;
1
+ declare const RenderToolbar: (config: any) => import("react/jsx-runtime").JSX.Element;
2
2
  export default RenderToolbar;
@@ -6,7 +6,7 @@ import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutPr
6
6
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
7
7
  import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
8
8
  var _excluded = ["type", "label", "show", "onHandle", "needConfirm", "onClick"];
9
- import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
9
+ import { jsx as _jsx } from "react/jsx-runtime";
10
10
  import React from 'react';
11
11
  import { actions, defaultBtnNameMap, defaultToolbarKeys } from '../../utils/config';
12
12
  import ActionButton from '../ActionButton';
@@ -52,11 +52,15 @@ var RenderToolbar = function RenderToolbar(config) {
52
52
  var addConfig = toolbarProps.find(function (action) {
53
53
  return action.type === 'add';
54
54
  });
55
+ // 需要持久化显示的ToolBar
56
+ var persistenceToolBar = toolbarProps.filter(function (action) {
57
+ return action === null || action === void 0 ? void 0 : action.persistence;
58
+ });
55
59
  nextToolbarProps = [_objectSpread(_objectSpread({}, addConfig), {}, {
56
60
  type: 'add',
57
61
  label: (addConfig === null || addConfig === void 0 ? void 0 : addConfig.isSelectModal) ? addConfig.label : emptyBtnText,
58
62
  icon: false
59
- })];
63
+ })].concat(_toConsumableArray(persistenceToolBar));
60
64
  }
61
65
  // 渲染操作按钮前处理下默认数据
62
66
  var toolbarBtns = nextToolbarProps.map(function (toolbar) {
@@ -128,10 +132,8 @@ var RenderToolbar = function RenderToolbar(config) {
128
132
  }, "".concat(btnConfig === null || btnConfig === void 0 ? void 0 : btnConfig.label).concat(btnConfig === null || btnConfig === void 0 ? void 0 : btnConfig.type));
129
133
  });
130
134
  };
131
- return _jsx(_Fragment, {
132
- children: tableLength ? _jsx(_Space, {
133
- children: renderToolbarBtns()
134
- }) : renderToolbarBtns()
135
+ return _jsx(_Space, {
136
+ children: renderToolbarBtns()
135
137
  });
136
138
  };
137
139
  export default RenderToolbar;
@@ -8,5 +8,5 @@ interface SummaryProps<T = any> {
8
8
  };
9
9
  rowSelection: any;
10
10
  }
11
- declare const Summary: ({ data, summary, rowSelection, }: SummaryProps) => JSX.Element;
11
+ declare const Summary: ({ data, summary, rowSelection, }: SummaryProps) => import("react/jsx-runtime").JSX.Element;
12
12
  export default Summary;
@@ -244,7 +244,7 @@ var ProEditTable = function ProEditTable(_ref, ref) {
244
244
  children: disabled || isForbiddenBtn('add') ? locale.ProEditTable.noData : _jsxs(_Fragment, {
245
245
  children: [locale.ProEditTable.noData, "\uFF0C", _jsx(RenderToolbar, _objectSpread({}, _objectSpread(_objectSpread({}, config), {}, {
246
246
  toolbarProps: toolbarProps === null || toolbarProps === void 0 ? void 0 : (_toolbarProps$filter = toolbarProps.filter) === null || _toolbarProps$filter === void 0 ? void 0 : _toolbarProps$filter.call(toolbarProps, function (item) {
247
- return item.type === 'add';
247
+ return item.type === 'add' || (item === null || item === void 0 ? void 0 : item.persistence);
248
248
  }),
249
249
  dataSource: []
250
250
  })))]
@@ -45,6 +45,11 @@ export interface BaseActionProps<T = any> {
45
45
  * @default true
46
46
  */
47
47
  show?: boolean | ShowFunction<T>;
48
+ /**
49
+ * @description 是否持久化(一直显示)操作按钮
50
+ * @default true
51
+ */
52
+ persistence?: boolean;
48
53
  /**
49
54
  * @description 是否禁止操作
50
55
  * @default true
@@ -9,7 +9,7 @@ export declare const defaultBtnNameMap: {
9
9
  custom: any;
10
10
  };
11
11
  export declare const iconMap: {
12
- add: JSX.Element;
12
+ add: import("react/jsx-runtime").JSX.Element;
13
13
  };
14
14
  export declare const defaultSingleActionKeys: string[];
15
15
  export declare const defaultMultipleActionKeys: string[];
@@ -5,14 +5,14 @@ export var getRandom = function getRandom() {
5
5
  };
6
6
  // 深层次对比两个对象且取出来差异值
7
7
  export var difference = function difference(object, base) {
8
- var changes = function changes(object, base) {
8
+ var _changes = function changes(object, base) {
9
9
  return transform(object, function (result, value, key) {
10
10
  if (!isEqual(value, base[key])) {
11
- result[key] = isObject(value) && isObject(base[key]) ? changes(value, base[key]) : value;
11
+ result[key] = isObject(value) && isObject(base[key]) ? _changes(value, base[key]) : value;
12
12
  }
13
13
  });
14
14
  };
15
- return changes(object, base);
15
+ return _changes(object, base);
16
16
  };
17
17
  // 数组字段循环校验,解决validateFields无法批量校验的问题
18
18
  export var customValidate = function customValidate(validateKeys, form, rowName) {
@@ -6,5 +6,5 @@ interface Props extends Pick<ProEnum, 'id' | 'value' | 'onChange' | 'dataSource'
6
6
  allowClear?: boolean;
7
7
  button?: boolean;
8
8
  }
9
- declare const Group: (props: Props) => JSX.Element;
9
+ declare const Group: (props: Props) => import("react/jsx-runtime").JSX.Element;
10
10
  export default Group;
@@ -3,5 +3,5 @@ interface Props extends Pick<ProEnum, 'id' | 'value' | 'onChange' | 'dataSource'
3
3
  fieldValue: string;
4
4
  fieldLabel: string;
5
5
  }
6
- declare const ProEnumTag: (props: Props) => JSX.Element;
6
+ declare const ProEnumTag: (props: Props) => import("react/jsx-runtime").JSX.Element;
7
7
  export default ProEnumTag;
@@ -2,8 +2,8 @@ import useEnum from './hooks/useEnum';
2
2
  import { ProEnumProps } from './propsType';
3
3
  import './style/index.less';
4
4
  declare const ProEnum: {
5
- (props: ProEnumProps): JSX.Element;
6
- getEnumLabel: (code: string | string[], value: any, compose?: boolean, fieldNameLabel?: string, fieldNameValue?: string) => JSX.Element;
5
+ (props: ProEnumProps): import("react/jsx-runtime").JSX.Element;
6
+ getEnumLabel: (code: string | string[], value: any, compose?: boolean, fieldNameLabel?: string, fieldNameValue?: string) => import("react/jsx-runtime").JSX.Element;
7
7
  useEnum: typeof useEnum;
8
8
  };
9
9
  export default ProEnum;
@@ -7,7 +7,7 @@ var SimpleEventCenter = /*#__PURE__*/function () {
7
7
  this.events = void 0;
8
8
  this.events = new Map();
9
9
  }
10
- _createClass(SimpleEventCenter, [{
10
+ return _createClass(SimpleEventCenter, [{
11
11
  key: "subscribe",
12
12
  value: function subscribe(eventName, callback) {
13
13
  if (!this.events.has(eventName)) {
@@ -34,6 +34,5 @@ var SimpleEventCenter = /*#__PURE__*/function () {
34
34
  }
35
35
  }
36
36
  }]);
37
- return SimpleEventCenter;
38
37
  }(); // 将 eventCenter 实例添加到 window 对象上
39
38
  window.eventCenter = new SimpleEventCenter();
@@ -1,2 +1,2 @@
1
- declare const getEnumLabel: (code: string | string[], value: any, compose?: boolean, fieldNameLabel?: string, fieldNameValue?: string) => JSX.Element;
1
+ declare const getEnumLabel: (code: string | string[], value: any, compose?: boolean, fieldNameLabel?: string, fieldNameValue?: string) => import("react/jsx-runtime").JSX.Element;
2
2
  export default getEnumLabel;
@@ -1,3 +1,3 @@
1
1
  import { IProps } from './propsType';
2
- declare const Input: (props: IProps) => JSX.Element;
2
+ declare const Input: (props: IProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Input;
@@ -240,9 +240,15 @@ var InputNumber = function InputNumber(props) {
240
240
  }
241
241
  // 失去焦点时处理数字,
242
242
  var handleBlur = function handleBlur(e) {
243
- var _e$target, _props$precision5, _valueProps3, _e$target2;
243
+ var _e$target, _props$precision5, _valueProps3, _e$target3;
244
244
  activateRef.current = false;
245
245
  var value = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : _e$target.value;
246
+ // 为空直接返回
247
+ if (value === '') {
248
+ var _e$target2;
249
+ onBlur === null || onBlur === void 0 ? void 0 : onBlur(value, e === null || e === void 0 ? void 0 : (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value);
250
+ return false;
251
+ }
246
252
  if (_max !== undefined && value > _max) {
247
253
  value = _max;
248
254
  }
@@ -269,7 +275,7 @@ var InputNumber = function InputNumber(props) {
269
275
  value = limitNumber(value, limit);
270
276
  break;
271
277
  }
272
- onBlur === null || onBlur === void 0 ? void 0 : onBlur(value, Number(e === null || e === void 0 ? void 0 : (_e$target2 = e.target) === null || _e$target2 === void 0 ? void 0 : _e$target2.value));
278
+ onBlur === null || onBlur === void 0 ? void 0 : onBlur(value, Number(e === null || e === void 0 ? void 0 : (_e$target3 = e.target) === null || _e$target3 === void 0 ? void 0 : _e$target3.value));
273
279
  };
274
280
  // 获得焦点
275
281
  var handleFocus = function handleFocus(e) {
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { ProCascaderProps } from './propsType';
3
- declare const _default: import("react").MemoExoticComponent<(props: ProCascaderProps) => JSX.Element>;
3
+ declare const _default: import("react").MemoExoticComponent<(props: ProCascaderProps) => import("react/jsx-runtime").JSX.Element>;
4
4
  export default _default;
@@ -28,9 +28,9 @@ var defaultFieldNames = {
28
28
  value: 'code',
29
29
  children: 'children'
30
30
  };
31
- var filterDataSource = function filterDataSource(dataSource, level, fieldNames) {
31
+ var _filterDataSource = function filterDataSource(dataSource, level, fieldNames) {
32
32
  return dataSource === null || dataSource === void 0 ? void 0 : dataSource.map(function (item) {
33
- return _objectSpread(_objectSpread({}, item), {}, _defineProperty({}, (fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.children) || 'children', level === 1 ? [] : filterDataSource(item === null || item === void 0 ? void 0 : item[(fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.children) || 'children'], level - 1, fieldNames)));
33
+ return _objectSpread(_objectSpread({}, item), {}, _defineProperty({}, (fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.children) || 'children', level === 1 ? [] : _filterDataSource(item === null || item === void 0 ? void 0 : item[(fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.children) || 'children'], level - 1, fieldNames)));
34
34
  });
35
35
  };
36
36
  var getViewLabel = function getViewLabel(_ref) {
@@ -94,7 +94,7 @@ var ProCascader = function ProCascader(props) {
94
94
  enumDataSource = _ref5$ === void 0 ? [] : _ref5$;
95
95
  var realDataSource = useMemo(function () {
96
96
  var innerDataSource = dataSource || (addressCode ? enumDataSource : []);
97
- var result = isAddressMode && realLevel === 2 ? filterDataSource(innerDataSource, level, fieldNames) : innerDataSource;
97
+ var result = isAddressMode && realLevel === 2 ? _filterDataSource(innerDataSource, level, fieldNames) : innerDataSource;
98
98
  return transformDataName(result, fieldNames);
99
99
  }, [isAddressMode, addressCode, realLevel, dataSource, enumDataSource === null || enumDataSource === void 0 ? void 0 : enumDataSource.length]);
100
100
  var _useRequest = _objectSpread({}, useRequest),
@@ -129,7 +129,7 @@ var ProCascader = function ProCascader(props) {
129
129
  value: fieldNames.value,
130
130
  children: (fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.children) || 'children'
131
131
  });
132
- serviceData = isAddressMode && realLevel === 2 ? filterDataSource(transFormData, level, fieldNames) : transFormData;
132
+ serviceData = isAddressMode && realLevel === 2 ? _filterDataSource(transFormData, level, fieldNames) : transFormData;
133
133
  setServiceData(serviceData);
134
134
  case 9:
135
135
  case "end":
@@ -194,7 +194,7 @@ var ProCascader = function ProCascader(props) {
194
194
  })) === null || _ref7$filter === void 0 ? void 0 : _ref7$filter.join(separator)) || '-' : (defaultLabel === null || defaultLabel === void 0 ? void 0 : (_defaultLabel$filter = defaultLabel.filter(function (item) {
195
195
  return !!item;
196
196
  })) === null || _defaultLabel$filter === void 0 ? void 0 : _defaultLabel$filter.join(separator)) || '-';
197
- var findSelectedOptions = function findSelectedOptions(options, value) {
197
+ var _findSelectedOptions = function findSelectedOptions(options, value) {
198
198
  var path = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
199
199
  var _value = value !== null && value !== void 0 ? value : [];
200
200
  // 基准情况:如果 value 数组为空,且 path 不为空,说明找到了完整的路径
@@ -213,7 +213,7 @@ var ProCascader = function ProCascader(props) {
213
213
  if (foundOption) {
214
214
  // 如果找到了匹配的选项,并且还有更多的 value 需要匹配,递归地在子选项中查找
215
215
  if (_value.length > 1 && foundOption.children) {
216
- return findSelectedOptions(foundOption.children, _value.slice(1), [].concat(_toConsumableArray(path), [foundOption]));
216
+ return _findSelectedOptions(foundOption.children, _value.slice(1), [].concat(_toConsumableArray(path), [foundOption]));
217
217
  }
218
218
  // 如果没有更多的 value 需要匹配,返回当前选项(以及之前的路径)
219
219
  return [].concat(_toConsumableArray(path), [foundOption]);
@@ -222,7 +222,7 @@ var ProCascader = function ProCascader(props) {
222
222
  return null;
223
223
  };
224
224
  var _selectedOptions = useMemo(function () {
225
- return findSelectedOptions(service ? serviceData : realDataSource, addressValue);
225
+ return _findSelectedOptions(service ? serviceData : realDataSource, addressValue);
226
226
  }, [service, serviceData, realDataSource, addressValue]);
227
227
  var handleAddressChange = function handleAddressChange(e) {
228
228
  var cascaderValue = value === null || value === void 0 ? void 0 : value.slice(0, realLevel);
@@ -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) => JSX.Element;
15
+ declare const InputRange: ({ value, onChange, min, max, group, disabled, precision, isPositiveInteger, }: InputRangeProps) => import("react/jsx-runtime").JSX.Element;
16
16
  export default InputRange;
@@ -1,3 +1,3 @@
1
1
  import { comPropsType } from './propsTypes';
2
- declare const InputWithSuffix: (props: comPropsType) => JSX.Element;
2
+ declare const InputWithSuffix: (props: comPropsType) => import("react/jsx-runtime").JSX.Element;
3
3
  export default InputWithSuffix;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { ProAddressPropsType } from './propsTypes';
3
2
  export declare const transferAddressInfoToRegion: () => {
4
3
  normalize: (value: any) => {
@@ -24,5 +23,5 @@ export declare const transferAddressInfoToRegion: () => {
24
23
  };
25
24
  };
26
25
  };
27
- export declare function ProAddress({ ...props }: ProAddressPropsType): JSX.Element;
26
+ export declare function ProAddress({ ...props }: ProAddressPropsType): import("react/jsx-runtime").JSX.Element;
28
27
  export default ProAddress;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { ProRangeBoxPropsType } from './propsType';
3
- export default function ProRangeBox({ configOption }: ProRangeBoxPropsType): JSX.Element;
2
+ export default function ProRangeBox({ configOption }: ProRangeBoxPropsType): import("react/jsx-runtime").JSX.Element;
@@ -121,7 +121,7 @@ export var splitNameStr = function splitNameStr(name) {
121
121
  });
122
122
  };
123
123
  // 过滤掉字段名中包含 '-' 的字段
124
- export var filterInternalFields = function filterInternalFields(values, optimize) {
124
+ var _filterInternalFields = function filterInternalFields(values, optimize) {
125
125
  if (optimize) {
126
126
  return values;
127
127
  }
@@ -135,20 +135,21 @@ export var filterInternalFields = function filterInternalFields(values, optimize
135
135
  }
136
136
  if (Array.isArray(nextValues)) {
137
137
  return nextValues.map(function (item) {
138
- return filterInternalFields(item);
138
+ return _filterInternalFields(item);
139
139
  });
140
140
  }
141
141
  if (isObject(nextValues)) {
142
142
  var result = {};
143
143
  Object.keys(nextValues).forEach(function (key) {
144
144
  if (key.includes('-')) return;
145
- result[key] = filterInternalFields(nextValues[key]);
145
+ result[key] = _filterInternalFields(nextValues[key]);
146
146
  });
147
147
  return result;
148
148
  }
149
149
  return nextValues;
150
150
  };
151
- export var getAllNamePath = function getAllNamePath(object) {
151
+ export { _filterInternalFields as filterInternalFields };
152
+ var _getAllNamePath = function getAllNamePath(object) {
152
153
  var currentPath = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : [];
153
154
  var keys = Object.keys(object);
154
155
  var resultKeys = [];
@@ -162,13 +163,14 @@ export var getAllNamePath = function getAllNamePath(object) {
162
163
  }
163
164
  // 深度获取对象key
164
165
  if (isObject(value)) {
165
- resultKeys.concat(getAllNamePath(value, [].concat(_toConsumableArray(currentPath), [key])));
166
+ resultKeys.concat(_getAllNamePath(value, [].concat(_toConsumableArray(currentPath), [key])));
166
167
  }
167
168
  resultKeys.push([].concat(_toConsumableArray(currentPath), [key]));
168
169
  });
169
170
  return resultKeys;
170
171
  };
171
172
  // 判断一个字段值是否算空
173
+ export { _getAllNamePath as getAllNamePath };
172
174
  var nullList = [undefined, 'null', '""', '[]'];
173
175
  export var isNullValue = function isNullValue(value) {
174
176
  return nullList.includes(JSON.stringify(value));
@@ -353,7 +355,7 @@ export var customEqualForFun = function customEqualForFun(value, other) {
353
355
  /**
354
356
  * 查询数据中是否包含rowKey
355
357
  */
356
- export var hasRowKey = function hasRowKey(obj) {
358
+ var _hasRowKey = function hasRowKey(obj) {
357
359
  if (_typeof(obj) !== 'object' || obj === null) {
358
360
  return false;
359
361
  }
@@ -363,12 +365,13 @@ export var hasRowKey = function hasRowKey(obj) {
363
365
  return true;
364
366
  }
365
367
  return keys.some(function (key) {
366
- return hasRowKey(obj[key]);
368
+ return _hasRowKey(obj[key]);
367
369
  });
368
370
  };
369
371
  /**
370
372
  * 查询数据中是否包含rowKey
371
373
  */
374
+ export { _hasRowKey as hasRowKey };
372
375
  export var view = function view(obj) {
373
376
  if (_typeof(obj) !== 'object' || obj === null) {
374
377
  return false;
@@ -379,7 +382,7 @@ export var view = function view(obj) {
379
382
  return true;
380
383
  }
381
384
  return keys.some(function (key) {
382
- return hasRowKey(obj[key]);
385
+ return _hasRowKey(obj[key]);
383
386
  });
384
387
  };
385
388
  /**
@@ -415,7 +418,7 @@ export var deleteForPath = function deleteForPath(values, namePath) {
415
418
  * @param value 选中值
416
419
  * @returns {}
417
420
  */
418
- export var findOptionByValue = function findOptionByValue(treeData, value, fieldNames) {
421
+ var _findOptionByValue = function findOptionByValue(treeData, value, fieldNames) {
419
422
  if (isObject(value)) {
420
423
  return value;
421
424
  }
@@ -425,7 +428,7 @@ export var findOptionByValue = function findOptionByValue(treeData, value, field
425
428
  return omit(node, ['children', fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.children]);
426
429
  }
427
430
  if (node.children) {
428
- var foundNode = findOptionByValue(node[(fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.children) || 'children'], value, fieldNames);
431
+ var foundNode = _findOptionByValue(node[(fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.children) || 'children'], value, fieldNames);
429
432
  if (foundNode) {
430
433
  return omit(foundNode, ['children', fieldNames === null || fieldNames === void 0 ? void 0 : fieldNames.children]);
431
434
  }
@@ -435,6 +438,7 @@ export var findOptionByValue = function findOptionByValue(treeData, value, field
435
438
  /**
436
439
  * 对比依赖列表中的 值是否变更
437
440
  */
441
+ export { _findOptionByValue as findOptionByValue };
438
442
  export var equalDependencies = function equalDependencies(dependencies, prevValues, currentValues) {
439
443
  if (dependencies === null || dependencies === void 0 ? void 0 : dependencies.length) {
440
444
  return dependencies.some(function (namePath) {
@@ -1,6 +1,6 @@
1
1
  import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
2
2
  import { themeMap, themeFillMap } from '../config';
3
- export var recurseGetNodes = function recurseGetNodes(type, node, queue) {
3
+ var _recurseGetNodes = function recurseGetNodes(type, node, queue) {
4
4
  switch (type) {
5
5
  // 渐变
6
6
  case 'gradation':
@@ -19,10 +19,11 @@ export 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 };
26
27
  export var onBeforeInjection = function onBeforeInjection(_ref) {
27
28
  var svg = _ref.svg,
28
29
  actionMap = _ref.actionMap,
@@ -49,7 +50,7 @@ export var onBeforeInjection = function onBeforeInjection(_ref) {
49
50
  // 目前只支持处理渐变及fill填充
50
51
  var types = Reflect.ownKeys(nodeMap !== null && nodeMap !== void 0 ? nodeMap : {});
51
52
  types.forEach(function (typeKey) {
52
- recurseGetNodes(typeKey, svg, nodeMap[typeKey]);
53
+ _recurseGetNodes(typeKey, svg, nodeMap[typeKey]);
53
54
  });
54
55
  if ((gradList === null || gradList === void 0 ? void 0 : gradList.length) > 0) {
55
56
  nodeMap.gradation.forEach(function (item, index) {
@@ -1,3 +1,3 @@
1
1
  import type { OpenMenuPropsType } from './propsType';
2
- declare const OpenMenu: (props: OpenMenuPropsType) => JSX.Element;
2
+ declare const OpenMenu: (props: OpenMenuPropsType) => import("react/jsx-runtime").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) => JSX.Element;
2
+ declare const ProCollapse: (props: ProCollapseProps) => import("react/jsx-runtime").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) => JSX.Element>;
3
+ declare const _default: import("react").MemoExoticComponent<(props: ProFooterProps) => import("react/jsx-runtime").JSX.Element>;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
1
  declare const Copy: ({ text }: {
2
2
  text: any;
3
- }) => JSX.Element;
3
+ }) => import("react/jsx-runtime").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) => JSX.Element>;
3
+ declare const _default: React.MemoExoticComponent<(props: ProHeaderProps) => import("react/jsx-runtime").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): JSX.Element;
8
+ (props: ProLayoutProps): import("react/jsx-runtime").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) => 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>;
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>;
23
23
  };
24
24
  export default ProLayout;