@zat-design/sisyphus-react 3.6.5-beta.2 → 3.6.5-beta.4

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 (107) hide show
  1. package/es/ProDownload/index.d.ts +1 -1
  2. package/es/ProEditTable/components/ActionButton/index.d.ts +1 -1
  3. package/es/ProEditTable/components/RenderField/index.d.ts +1 -1
  4. package/es/ProEditTable/components/RenderToolbar/index.d.ts +1 -1
  5. package/es/ProEditTable/components/Summary/index.d.ts +1 -1
  6. package/es/ProEditTable/utils/config.d.ts +1 -1
  7. package/es/ProEnum/components/Group.d.ts +1 -1
  8. package/es/ProEnum/components/Tag.d.ts +1 -1
  9. package/es/ProEnum/index.d.ts +2 -2
  10. package/es/ProEnum/utils/eventCenter.js +1 -2
  11. package/es/ProEnum/utils/getEnumLabel.d.ts +1 -1
  12. package/es/ProForm/components/base/Input/index.d.ts +1 -1
  13. package/es/ProForm/components/combination/ProCascader/index.d.ts +1 -1
  14. package/es/ProForm/components/old/InputRange/index.d.ts +1 -1
  15. package/es/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
  16. package/es/ProForm/components/old/ProAddress/index.d.ts +1 -2
  17. package/es/ProForm/components/old/ProRangeBox/index.d.ts +1 -2
  18. package/es/ProForm/index.d.ts +3 -2
  19. package/es/ProForm/index.js +3 -17
  20. package/es/ProForm/utils/useWatch.d.ts +7 -0
  21. package/es/ProForm/utils/useWatch.js +80 -0
  22. package/es/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +1 -1
  23. package/es/ProLayout/components/ProCollapse/index.d.ts +1 -1
  24. package/es/ProLayout/components/ProFooter/index.d.ts +1 -1
  25. package/es/ProLayout/components/ProHeader/components/Copy/index.d.ts +1 -1
  26. package/es/ProLayout/components/ProHeader/index.d.ts +1 -1
  27. package/es/ProLayout/index.d.ts +4 -4
  28. package/es/ProSelect/components/AdaptiveTooltip.d.ts +1 -1
  29. package/es/ProSelect/index.d.ts +1 -1
  30. package/es/ProStep/components/Anchor/index.d.ts +1 -1
  31. package/es/ProStep/components/Item/index.d.ts +1 -1
  32. package/es/ProStep/components/Step/index.d.ts +1 -1
  33. package/es/ProStep/index.d.ts +2 -2
  34. package/es/ProTable/components/ResizableLine/index.d.ts +1 -1
  35. package/es/ProTable/components/TableResizable/index.d.ts +1 -1
  36. package/es/ProTable/index.d.ts +1 -1
  37. package/es/ProTabs/components/Card/index.d.ts +1 -1
  38. package/es/ProThemeTools/component/PrdTools/index.d.ts +1 -1
  39. package/es/ProThemeTools/index.d.ts +1 -1
  40. package/es/ProTooltip/index.d.ts +1 -1
  41. package/es/ProTree/components/CloseIcon.d.ts +1 -2
  42. package/es/ProTree/components/List.d.ts +1 -1
  43. package/es/ProTree/components/ProTree.d.ts +1 -1
  44. package/es/ProTree/components/ProTreeSelect/index.d.ts +1 -1
  45. package/es/ProTree/components/SearchTitle.d.ts +1 -1
  46. package/es/ProTree/components/Tree.d.ts +1 -1
  47. package/es/ProTree/index.d.ts +1 -1
  48. package/es/ProTreeModal/components/Cascader.d.ts +1 -1
  49. package/es/ProTreeModal/components/CloseIcon.d.ts +1 -2
  50. package/es/ProTreeModal/components/SearchTitle.d.ts +1 -1
  51. package/es/ProTreeModal/components/Trigger.d.ts +1 -1
  52. package/es/ProTreeModal/index.d.ts +1 -1
  53. package/es/ProUpload/components/DraggableUploadListItem.d.ts +1 -1
  54. package/lib/ProDownload/index.d.ts +1 -1
  55. package/lib/ProEditTable/components/ActionButton/index.d.ts +1 -1
  56. package/lib/ProEditTable/components/RenderField/index.d.ts +1 -1
  57. package/lib/ProEditTable/components/RenderToolbar/index.d.ts +1 -1
  58. package/lib/ProEditTable/components/Summary/index.d.ts +1 -1
  59. package/lib/ProEditTable/utils/config.d.ts +1 -1
  60. package/lib/ProEnum/components/Group.d.ts +1 -1
  61. package/lib/ProEnum/components/Tag.d.ts +1 -1
  62. package/lib/ProEnum/index.d.ts +2 -2
  63. package/lib/ProEnum/utils/eventCenter.js +1 -2
  64. package/lib/ProEnum/utils/getEnumLabel.d.ts +1 -1
  65. package/lib/ProForm/components/base/Input/index.d.ts +1 -1
  66. package/lib/ProForm/components/combination/ProCascader/index.d.ts +1 -1
  67. package/lib/ProForm/components/old/InputRange/index.d.ts +1 -1
  68. package/lib/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
  69. package/lib/ProForm/components/old/ProAddress/index.d.ts +1 -2
  70. package/lib/ProForm/components/old/ProRangeBox/index.d.ts +1 -2
  71. package/lib/ProForm/index.d.ts +3 -2
  72. package/lib/ProForm/index.js +2 -16
  73. package/lib/ProForm/utils/useWatch.d.ts +7 -0
  74. package/lib/ProForm/utils/useWatch.js +90 -0
  75. package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +1 -1
  76. package/lib/ProLayout/components/ProCollapse/index.d.ts +1 -1
  77. package/lib/ProLayout/components/ProFooter/index.d.ts +1 -1
  78. package/lib/ProLayout/components/ProHeader/components/Copy/index.d.ts +1 -1
  79. package/lib/ProLayout/components/ProHeader/index.d.ts +1 -1
  80. package/lib/ProLayout/index.d.ts +4 -4
  81. package/lib/ProSelect/components/AdaptiveTooltip.d.ts +1 -1
  82. package/lib/ProSelect/index.d.ts +1 -1
  83. package/lib/ProStep/components/Anchor/index.d.ts +1 -1
  84. package/lib/ProStep/components/Item/index.d.ts +1 -1
  85. package/lib/ProStep/components/Step/index.d.ts +1 -1
  86. package/lib/ProStep/index.d.ts +2 -2
  87. package/lib/ProTable/components/ResizableLine/index.d.ts +1 -1
  88. package/lib/ProTable/components/TableResizable/index.d.ts +1 -1
  89. package/lib/ProTable/index.d.ts +1 -1
  90. package/lib/ProTabs/components/Card/index.d.ts +1 -1
  91. package/lib/ProThemeTools/component/PrdTools/index.d.ts +1 -1
  92. package/lib/ProThemeTools/index.d.ts +1 -1
  93. package/lib/ProTooltip/index.d.ts +1 -1
  94. package/lib/ProTree/components/CloseIcon.d.ts +1 -2
  95. package/lib/ProTree/components/List.d.ts +1 -1
  96. package/lib/ProTree/components/ProTree.d.ts +1 -1
  97. package/lib/ProTree/components/ProTreeSelect/index.d.ts +1 -1
  98. package/lib/ProTree/components/SearchTitle.d.ts +1 -1
  99. package/lib/ProTree/components/Tree.d.ts +1 -1
  100. package/lib/ProTree/index.d.ts +1 -1
  101. package/lib/ProTreeModal/components/Cascader.d.ts +1 -1
  102. package/lib/ProTreeModal/components/CloseIcon.d.ts +1 -2
  103. package/lib/ProTreeModal/components/SearchTitle.d.ts +1 -1
  104. package/lib/ProTreeModal/components/Trigger.d.ts +1 -1
  105. package/lib/ProTreeModal/index.d.ts +1 -1
  106. package/lib/ProUpload/components/DraggableUploadListItem.d.ts +1 -1
  107. package/package.json +1 -1
@@ -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;
@@ -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;
@@ -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;
@@ -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[];
@@ -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;
@@ -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;
@@ -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;
@@ -1,11 +1,12 @@
1
- import { Form, FormInstance } from 'antd';
1
+ import { FormInstance } from 'antd';
2
2
  import React, { ForwardRefRenderFunction } from 'react';
3
3
  import { FormProviderProps } from 'antd/es/form/context';
4
4
  import { ProFormProps } from './propsType';
5
5
  import { useForm } from './utils/useForm';
6
+ import useWatch from './utils/useWatch';
6
7
  interface IProForm<T = any> extends ForwardRefRenderFunction<FormInstance<T>, ProFormProps<T>> {
7
8
  useForm: typeof useForm;
8
- useWatch: typeof Form.useWatch;
9
+ useWatch: typeof useWatch;
9
10
  [key: string]: any;
10
11
  }
11
12
  declare const ProFormForward: IProForm;
@@ -16,7 +16,7 @@ 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';
18
18
  import React, { forwardRef, useImperativeHandle, useMemo } from 'react';
19
- import { isObject, isString, merge } from 'lodash';
19
+ import { isObject, merge } from 'lodash';
20
20
  import { FormFooter, InputRange, ProAddress, ProCascader, ProCertNo, ProCertValidity, ProCombination, ProModalSelect, ProNumberRange, ProRangeBox, ProTimeLimit, transferAddressInfoToRegion, ProUpload, ProTreeModal, ProTree, EnumSelect } from './components';
21
21
  import RenderFields from './components/render/RenderFields';
22
22
  import { useProConfig, useContextForms } from '../ProConfigProvider';
@@ -24,6 +24,7 @@ import { getLayout, splitNameStr, useControlled, initialValuesToNames, filterInt
24
24
  import { useForm } from './utils/useForm';
25
25
  import { useFieldProps } from './utils/useFieldProps';
26
26
  import locale from '../locale';
27
+ import useWatch from './utils/useWatch';
27
28
  var ProForm = function ProForm(props, ref) {
28
29
  var _forms$formKey, _localStorage, _ref;
29
30
  var _props$mode = props.mode,
@@ -273,22 +274,7 @@ var ProForm = function ProForm(props, ref) {
273
274
  // @ts-ignore
274
275
  var ProFormForward = /*#__PURE__*/forwardRef(ProForm);
275
276
  ProFormForward.useForm = useForm;
276
- ProFormForward.useWatch = function (watchValue, form) {
277
- if (isString(watchValue)) {
278
- var watchValues = [watchValue];
279
- watchValues.forEach(function (item) {
280
- _Form.useWatch(item, form);
281
- });
282
- return form.getFieldsValue(watchValues);
283
- }
284
- if (watchValue.length) {
285
- watchValue.forEach(function (item) {
286
- _Form.useWatch(item, form);
287
- });
288
- return form.getFieldsValue(watchValue);
289
- }
290
- return _Form.useWatch([], form);
291
- };
277
+ ProFormForward.useWatch = useWatch;
292
278
  export var ProFormProvider = function ProFormProvider(props) {
293
279
  var onFormChange = props.onFormChange,
294
280
  onFormFinish = props.onFormFinish,
@@ -0,0 +1,7 @@
1
+ import { InternalNamePath, FormInstance, NamePath } from 'rc-field-form/es/interface';
2
+ export declare function toArray<T>(value?: T | T[] | null): T[];
3
+ export declare function getNamePath(path: NamePath | null): InternalNamePath;
4
+ export declare function stringify(value: any): string | number;
5
+ declare function useWatch(dependencies: string, form?: FormInstance, wait?: number): any;
6
+ declare function useWatch(dependencies: NamePath[], form?: FormInstance, wait?: number): any[];
7
+ export default useWatch;
@@ -0,0 +1,80 @@
1
+ import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
+ import { debounce, get } from 'lodash';
3
+ import { HOOK_MARK } from 'rc-field-form/es/FieldContext';
4
+ import warning from 'rc-util/lib/warning';
5
+ import { useState, useEffect, useRef, useMemo } from 'react';
6
+ export function toArray(value) {
7
+ if (value === undefined || value === null) {
8
+ return [];
9
+ }
10
+ return Array.isArray(value) ? value : [value];
11
+ }
12
+ export function getNamePath(path) {
13
+ return toArray(path);
14
+ }
15
+ export function stringify(value) {
16
+ try {
17
+ return JSON.stringify(value);
18
+ } catch (err) {
19
+ return Math.random();
20
+ }
21
+ }
22
+ // 创建之后namepath就不可变
23
+ var useWatchWarning = process.env.NODE_ENV !== 'production' ? function (namePath) {
24
+ var fullyStr = JSON.stringify(namePath);
25
+ var nameStrRef = useRef(fullyStr);
26
+ warning(nameStrRef.current === fullyStr, '`useWatch` is not support dynamic `namePath`. Please provide static instead.');
27
+ } : function () {};
28
+ function useWatch(dependencies, form, wait) {
29
+ var _useState = useState(typeof dependencies === 'string' ? undefined : []),
30
+ _useState2 = _slicedToArray(_useState, 2),
31
+ value = _useState2[0],
32
+ setValue = _useState2[1];
33
+ var valueStr = useMemo(function () {
34
+ return stringify(value);
35
+ }, [value]);
36
+ var valueStrRef = useRef(valueStr);
37
+ valueStrRef.current = valueStr;
38
+ var formInstance = form;
39
+ var isValidForm = formInstance && formInstance._init;
40
+ var _dependencies = typeof dependencies === 'string' ? [dependencies] : dependencies;
41
+ var namePaths = _dependencies === null || _dependencies === void 0 ? void 0 : _dependencies.map(function (item) {
42
+ return getNamePath(item);
43
+ });
44
+ var namePathsRef = useRef(namePaths);
45
+ namePathsRef.current = namePaths;
46
+ useWatchWarning(namePaths);
47
+ useEffect(function () {
48
+ if (!isValidForm) return;
49
+ var getFieldsValue = formInstance.getFieldsValue,
50
+ getInternalHooks = formInstance.getInternalHooks;
51
+ var _getInternalHooks = getInternalHooks(HOOK_MARK),
52
+ registerWatch = _getInternalHooks.registerWatch;
53
+ var callback = function callback(store) {
54
+ var newValue = namePathsRef.current.map(function (namePath) {
55
+ return get(store, namePath);
56
+ });
57
+ var nextValueStr = stringify(newValue);
58
+ // Compare stringify in case it's nest object
59
+ if (valueStrRef.current !== nextValueStr) {
60
+ valueStrRef.current = nextValueStr;
61
+ setValue(newValue);
62
+ }
63
+ };
64
+ // 增加防抖
65
+ if (wait) {
66
+ callback = debounce(callback, wait);
67
+ }
68
+ var cancelRegister = registerWatch(callback);
69
+ var initialValue = namePathsRef.current.map(function (namePath) {
70
+ return get(getFieldsValue(), namePath);
71
+ });
72
+ setValue(initialValue);
73
+ return cancelRegister;
74
+ },
75
+ // We do not need re-register since namePath content is the same
76
+ // eslint-disable-next-line react-hooks/exhaustive-deps
77
+ [isValidForm]);
78
+ return value;
79
+ }
80
+ export default useWatch;
@@ -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;
@@ -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;
@@ -1,4 +1,4 @@
1
1
  declare const AdaptiveTooltip: ({ children }: {
2
2
  children: any;
3
- }) => JSX.Element;
3
+ }) => import("react/jsx-runtime").JSX.Element;
4
4
  export default AdaptiveTooltip;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { PropSelectProps, ProSelectAction } from './propsType';
3
3
  import './index.less';
4
- export declare const ProSelect: (props: PropSelectProps, ref: React.Ref<ProSelectAction> | undefined) => JSX.Element;
4
+ export declare const ProSelect: (props: PropSelectProps, ref: React.Ref<ProSelectAction> | undefined) => import("react/jsx-runtime").JSX.Element;
5
5
  declare const _default: React.ForwardRefExoticComponent<PropSelectProps & React.RefAttributes<ProSelectAction>>;
6
6
  export default _default;
@@ -1,2 +1,2 @@
1
- export declare const MenuItem: (props: any) => JSX.Element;
1
+ export declare const MenuItem: (props: any) => import("react/jsx-runtime").JSX.Element;
2
2
  export default MenuItem;
@@ -1,3 +1,3 @@
1
1
  import { ProStepItem } from '../../propsType';
2
- declare const _default: ({ id, title, collapse: collapseItem, children, ...restProps }: ProStepItem) => JSX.Element;
2
+ declare const _default: ({ id, title, collapse: collapseItem, children, ...restProps }: ProStepItem) => import("react/jsx-runtime").JSX.Element;
3
3
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { ProStepPropsType } from '../../propsType';
2
2
  export declare const Step: ({ fixedTop, dataSource, activeKey, errorCollection, style, targetOffset, scrollToError, }: ProStepPropsType & {
3
3
  errorCollection: object;
4
- }) => JSX.Element;
4
+ }) => import("react/jsx-runtime").JSX.Element;
5
5
  export default Step;
@@ -4,9 +4,9 @@ import './style/index.less';
4
4
  export declare const ProStepContext: import("react").Context<any>;
5
5
  export declare const useStep: () => any;
6
6
  declare const ProStep: {
7
- ({ children, ...resetProps }: ProStepPropsType): JSX.Element;
7
+ ({ children, ...resetProps }: ProStepPropsType): import("react/jsx-runtime").JSX.Element;
8
8
  useStep: () => any;
9
- Item: ({ id, title, collapse: collapseItem, children, ...restProps }: import("./propsType").ProStepItem) => JSX.Element;
9
+ Item: ({ id, title, collapse: collapseItem, children, ...restProps }: import("./propsType").ProStepItem) => import("react/jsx-runtime").JSX.Element;
10
10
  Listener: ({ children, delayTime, ...props }: any) => import("react").DetailedReactHTMLElement<any, HTMLElement>;
11
11
  };
12
12
  export default ProStep;
@@ -1,2 +1,2 @@
1
- declare const ResizableLine: () => JSX.Element;
1
+ declare const ResizableLine: () => import("react/jsx-runtime").JSX.Element;
2
2
  export default ResizableLine;
@@ -6,7 +6,7 @@ declare const _default: {
6
6
  onDrag: any;
7
7
  width: number;
8
8
  minwidth?: number;
9
- }) => JSX.Element;
9
+ }) => import("react/jsx-runtime").JSX.Element;
10
10
  };
11
11
  };
12
12
  };
@@ -5,7 +5,7 @@ export declare const defaultPage: {
5
5
  pageNum: number;
6
6
  pageSize: number;
7
7
  };
8
- declare function ProTable(props: ProTableProps): JSX.Element;
8
+ declare function ProTable(props: ProTableProps): import("react/jsx-runtime").JSX.Element;
9
9
  declare namespace ProTable {
10
10
  var defaultProps: {
11
11
  quickConfig: boolean;
@@ -1,3 +1,3 @@
1
1
  import { CardProps } from '../../propType';
2
- declare const Card: (props: CardProps) => JSX.Element;
2
+ declare const Card: (props: CardProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default Card;
@@ -1,3 +1,3 @@
1
1
  import type { DevToolsPropsType } from '../../propsType';
2
- declare const PrdTools: ({ onReset, onClose, setState, open, state, tableBorder, tableStripe, }: DevToolsPropsType) => JSX.Element;
2
+ declare const PrdTools: ({ onReset, onClose, setState, open, state, tableBorder, tableStripe, }: DevToolsPropsType) => import("react/jsx-runtime").JSX.Element;
3
3
  export default PrdTools;
@@ -1,6 +1,6 @@
1
1
  import type { ProThemeToolsProps } from './propsType';
2
2
  declare const ProThemeTools: {
3
- ({ size, className, cacheTime, color, mode, iconFollowTheme, prefixCls, tableBorder, tableStripe, theme, onChange, ...props }: ProThemeToolsProps): JSX.Element;
3
+ ({ size, className, cacheTime, color, mode, iconFollowTheme, prefixCls, tableBorder, tableStripe, theme, onChange, ...props }: ProThemeToolsProps): import("react/jsx-runtime").JSX.Element;
4
4
  defaultProps: {
5
5
  size: number;
6
6
  mode: string;
@@ -1,4 +1,4 @@
1
1
  import { ProTooltipPropsType } from './propsType';
2
2
  import './style/index.less';
3
- declare const ProTooltip: (props: ProTooltipPropsType) => JSX.Element;
3
+ declare const ProTooltip: (props: ProTooltipPropsType) => import("react/jsx-runtime").JSX.Element;
4
4
  export default ProTooltip;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
- declare function CloseIcon(props: any): JSX.Element;
1
+ declare function CloseIcon(props: any): import("react/jsx-runtime").JSX.Element;
3
2
  export default CloseIcon;
@@ -12,6 +12,6 @@ interface ListProps {
12
12
  handleFilterClose?: (code: string) => void;
13
13
  optionRender?: (item: any, searchStr?: string) => string | ReactNode;
14
14
  }
15
- declare function List(props: ListProps): JSX.Element;
15
+ declare function List(props: ListProps): import("react/jsx-runtime").JSX.Element;
16
16
  declare const _default: import("react").MemoExoticComponent<typeof List>;
17
17
  export default _default;
@@ -1,4 +1,4 @@
1
1
  import { ProTreeProps } from '../propsType';
2
2
  import '../style/index.less';
3
- declare const ProTree: (props: ProTreeProps) => JSX.Element;
3
+ declare const ProTree: (props: ProTreeProps) => import("react/jsx-runtime").JSX.Element;
4
4
  export default ProTree;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { PropTreeSelectProps } from './propsType';
3
- export declare const ProTreeSelect: (props: PropTreeSelectProps, ref: React.Ref<unknown> | undefined) => JSX.Element;
3
+ export declare const ProTreeSelect: (props: PropTreeSelectProps, ref: React.Ref<unknown> | undefined) => import("react/jsx-runtime").JSX.Element;
4
4
  declare const _default: React.ForwardRefExoticComponent<PropTreeSelectProps & React.RefAttributes<unknown>>;
5
5
  export default _default;
@@ -4,6 +4,6 @@ declare function SearchTitle(props: {
4
4
  label?: string;
5
5
  showEllipse?: boolean;
6
6
  ellipseWidth?: string;
7
- }): JSX.Element;
7
+ }): import("react/jsx-runtime").JSX.Element;
8
8
  declare const _default: import("react").MemoExoticComponent<typeof SearchTitle>;
9
9
  export default _default;
@@ -23,5 +23,5 @@ interface ListProps extends ProTreeProps {
23
23
  handleFilterClose?: (code: string, node?: any) => void;
24
24
  [key: string]: any;
25
25
  }
26
- declare function List(props: ListProps): JSX.Element;
26
+ declare function List(props: ListProps): import("react/jsx-runtime").JSX.Element;
27
27
  export default List;
@@ -1,3 +1,3 @@
1
1
  import { ProTreeProps } from './propsType';
2
- declare const ProTreeHandle: (props: ProTreeProps) => JSX.Element;
2
+ declare const ProTreeHandle: (props: ProTreeProps) => import("react/jsx-runtime").JSX.Element;
3
3
  export default ProTreeHandle;
@@ -10,5 +10,5 @@ interface CascaderProps {
10
10
  handleOnChange?: (e: any, value: string) => void;
11
11
  optionRender?: (item: any, searchStr: string) => string | ReactNode;
12
12
  }
13
- declare const Cascader: (props: CascaderProps) => JSX.Element;
13
+ declare const Cascader: (props: CascaderProps) => import("react/jsx-runtime").JSX.Element;
14
14
  export default Cascader;
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
- declare function CloseIcon(props: any): JSX.Element;
1
+ declare function CloseIcon(props: any): import("react/jsx-runtime").JSX.Element;
3
2
  export default CloseIcon;
@@ -2,6 +2,6 @@
2
2
  declare function SearchTitle(props: {
3
3
  searchStr: string;
4
4
  label: string;
5
- }): JSX.Element;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
6
  declare const _default: import("react").MemoExoticComponent<typeof SearchTitle>;
7
7
  export default _default;
@@ -17,5 +17,5 @@ interface TriggerProps {
17
17
  handleClearAll: () => void;
18
18
  appointChange: (appoint?: boolean) => void;
19
19
  }
20
- declare function Trigger(props: TriggerProps): JSX.Element;
20
+ declare function Trigger(props: TriggerProps): import("react/jsx-runtime").JSX.Element;
21
21
  export default Trigger;
@@ -1,5 +1,5 @@
1
1
  import { ProTreeModalProps } from './propsType';
2
2
  import './style/index.less';
3
3
  export declare const CASCADER = "CASCADER";
4
- declare const ProTreeModal: (props: ProTreeModalProps) => JSX.Element;
4
+ declare const ProTreeModal: (props: ProTreeModalProps) => import("react/jsx-runtime").JSX.Element;
5
5
  export default ProTreeModal;
@@ -1,2 +1,2 @@
1
1
  import { DraggableUploadListItemProps } from '../propsType';
2
- export declare const DraggableUploadListItem: ({ file, children }: DraggableUploadListItemProps) => JSX.Element;
2
+ export declare const DraggableUploadListItem: ({ file, children }: DraggableUploadListItemProps) => import("react/jsx-runtime").JSX.Element;
@@ -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;
@@ -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;
@@ -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;
@@ -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[];
@@ -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;