@zat-design/sisyphus-react 3.6.5-beta.4 → 3.6.5-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 (105) 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 +2 -1
  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 +2 -1
  17. package/es/ProForm/components/old/ProRangeBox/index.d.ts +2 -1
  18. package/es/ProForm/utils/useWatch.js +2 -1
  19. package/es/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +1 -1
  20. package/es/ProLayout/components/ProCollapse/index.d.ts +1 -1
  21. package/es/ProLayout/components/ProFooter/index.d.ts +1 -1
  22. package/es/ProLayout/components/ProHeader/components/Copy/index.d.ts +1 -1
  23. package/es/ProLayout/components/ProHeader/index.d.ts +1 -1
  24. package/es/ProLayout/index.d.ts +4 -4
  25. package/es/ProSelect/components/AdaptiveTooltip.d.ts +1 -1
  26. package/es/ProSelect/index.d.ts +1 -1
  27. package/es/ProStep/components/Anchor/index.d.ts +1 -1
  28. package/es/ProStep/components/Item/index.d.ts +1 -1
  29. package/es/ProStep/components/Step/index.d.ts +1 -1
  30. package/es/ProStep/index.d.ts +2 -2
  31. package/es/ProTable/components/ResizableLine/index.d.ts +1 -1
  32. package/es/ProTable/components/TableResizable/index.d.ts +1 -1
  33. package/es/ProTable/index.d.ts +1 -1
  34. package/es/ProTable/utils.js +1 -1
  35. package/es/ProTabs/components/Card/index.d.ts +1 -1
  36. package/es/ProThemeTools/component/PrdTools/index.d.ts +1 -1
  37. package/es/ProThemeTools/index.d.ts +1 -1
  38. package/es/ProTooltip/index.d.ts +1 -1
  39. package/es/ProTree/components/CloseIcon.d.ts +2 -1
  40. package/es/ProTree/components/List.d.ts +1 -1
  41. package/es/ProTree/components/ProTree.d.ts +1 -1
  42. package/es/ProTree/components/ProTreeSelect/index.d.ts +1 -1
  43. package/es/ProTree/components/ProTreeSelect/index.js +11 -2
  44. package/es/ProTree/components/SearchTitle.d.ts +1 -1
  45. package/es/ProTree/components/Tree.d.ts +1 -1
  46. package/es/ProTree/index.d.ts +1 -1
  47. package/es/ProTreeModal/components/Cascader.d.ts +1 -1
  48. package/es/ProTreeModal/components/CloseIcon.d.ts +2 -1
  49. package/es/ProTreeModal/components/SearchTitle.d.ts +1 -1
  50. package/es/ProTreeModal/components/Trigger.d.ts +1 -1
  51. package/es/ProTreeModal/index.d.ts +1 -1
  52. package/es/ProUpload/components/DraggableUploadListItem.d.ts +1 -1
  53. package/lib/ProDownload/index.d.ts +1 -1
  54. package/lib/ProEditTable/components/ActionButton/index.d.ts +1 -1
  55. package/lib/ProEditTable/components/RenderField/index.d.ts +1 -1
  56. package/lib/ProEditTable/components/RenderToolbar/index.d.ts +1 -1
  57. package/lib/ProEditTable/components/Summary/index.d.ts +1 -1
  58. package/lib/ProEditTable/utils/config.d.ts +1 -1
  59. package/lib/ProEnum/components/Group.d.ts +1 -1
  60. package/lib/ProEnum/components/Tag.d.ts +1 -1
  61. package/lib/ProEnum/index.d.ts +2 -2
  62. package/lib/ProEnum/utils/eventCenter.js +2 -1
  63. package/lib/ProEnum/utils/getEnumLabel.d.ts +1 -1
  64. package/lib/ProForm/components/base/Input/index.d.ts +1 -1
  65. package/lib/ProForm/components/combination/ProCascader/index.d.ts +1 -1
  66. package/lib/ProForm/components/old/InputRange/index.d.ts +1 -1
  67. package/lib/ProForm/components/old/InputWithSuffix/index.d.ts +1 -1
  68. package/lib/ProForm/components/old/ProAddress/index.d.ts +2 -1
  69. package/lib/ProForm/components/old/ProRangeBox/index.d.ts +2 -1
  70. package/lib/ProForm/utils/useWatch.js +3 -2
  71. package/lib/ProLayout/components/Layout/Menu/OpenMenu/index.d.ts +1 -1
  72. package/lib/ProLayout/components/ProCollapse/index.d.ts +1 -1
  73. package/lib/ProLayout/components/ProFooter/index.d.ts +1 -1
  74. package/lib/ProLayout/components/ProHeader/components/Copy/index.d.ts +1 -1
  75. package/lib/ProLayout/components/ProHeader/index.d.ts +1 -1
  76. package/lib/ProLayout/index.d.ts +4 -4
  77. package/lib/ProSelect/components/AdaptiveTooltip.d.ts +1 -1
  78. package/lib/ProSelect/index.d.ts +1 -1
  79. package/lib/ProStep/components/Anchor/index.d.ts +1 -1
  80. package/lib/ProStep/components/Item/index.d.ts +1 -1
  81. package/lib/ProStep/components/Step/index.d.ts +1 -1
  82. package/lib/ProStep/index.d.ts +2 -2
  83. package/lib/ProTable/components/ResizableLine/index.d.ts +1 -1
  84. package/lib/ProTable/components/TableResizable/index.d.ts +1 -1
  85. package/lib/ProTable/index.d.ts +1 -1
  86. package/lib/ProTable/utils.js +1 -1
  87. package/lib/ProTabs/components/Card/index.d.ts +1 -1
  88. package/lib/ProThemeTools/component/PrdTools/index.d.ts +1 -1
  89. package/lib/ProThemeTools/index.d.ts +1 -1
  90. package/lib/ProTooltip/index.d.ts +1 -1
  91. package/lib/ProTree/components/CloseIcon.d.ts +2 -1
  92. package/lib/ProTree/components/List.d.ts +1 -1
  93. package/lib/ProTree/components/ProTree.d.ts +1 -1
  94. package/lib/ProTree/components/ProTreeSelect/index.d.ts +1 -1
  95. package/lib/ProTree/components/ProTreeSelect/index.js +11 -2
  96. package/lib/ProTree/components/SearchTitle.d.ts +1 -1
  97. package/lib/ProTree/components/Tree.d.ts +1 -1
  98. package/lib/ProTree/index.d.ts +1 -1
  99. package/lib/ProTreeModal/components/Cascader.d.ts +1 -1
  100. package/lib/ProTreeModal/components/CloseIcon.d.ts +2 -1
  101. package/lib/ProTreeModal/components/SearchTitle.d.ts +1 -1
  102. package/lib/ProTreeModal/components/Trigger.d.ts +1 -1
  103. package/lib/ProTreeModal/index.d.ts +1 -1
  104. package/lib/ProUpload/components/DraggableUploadListItem.d.ts +1 -1
  105. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
1
  import { IProDownloadProps } from './propsType';
2
2
  declare const ProDownload: {
3
- (props: IProDownloadProps): import("react/jsx-runtime").JSX.Element;
3
+ (props: IProDownloadProps): 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) => import("react/jsx-runtime").JSX.Element;
1
+ declare const ActionButton: ({ record, index, config, btnConfig }: any) => JSX.Element;
2
2
  export default ActionButton;
@@ -1,2 +1,2 @@
1
- declare const RenderField: ({ text: value, record, index, column, config }: any) => import("react/jsx-runtime").JSX.Element;
1
+ declare const RenderField: ({ text: value, record, index, column, config }: any) => JSX.Element;
2
2
  export default RenderField;
@@ -1,2 +1,2 @@
1
- declare const RenderToolbar: (config: any) => import("react/jsx-runtime").JSX.Element;
1
+ declare const RenderToolbar: (config: any) => 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) => import("react/jsx-runtime").JSX.Element;
11
+ declare const Summary: ({ data, summary, rowSelection, }: SummaryProps) => 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: import("react/jsx-runtime").JSX.Element;
12
+ add: 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) => import("react/jsx-runtime").JSX.Element;
9
+ declare const Group: (props: Props) => 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) => import("react/jsx-runtime").JSX.Element;
6
+ declare const ProEnumTag: (props: Props) => 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): 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;
5
+ (props: ProEnumProps): JSX.Element;
6
+ getEnumLabel: (code: string | string[], value: any, compose?: boolean, fieldNameLabel?: string, fieldNameValue?: string) => 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
- return _createClass(SimpleEventCenter, [{
10
+ _createClass(SimpleEventCenter, [{
11
11
  key: "subscribe",
12
12
  value: function subscribe(eventName, callback) {
13
13
  if (!this.events.has(eventName)) {
@@ -34,5 +34,6 @@ var SimpleEventCenter = /*#__PURE__*/function () {
34
34
  }
35
35
  }
36
36
  }]);
37
+ return SimpleEventCenter;
37
38
  }(); // 将 eventCenter 实例添加到 window 对象上
38
39
  window.eventCenter = new SimpleEventCenter();
@@ -1,2 +1,2 @@
1
- declare const getEnumLabel: (code: string | string[], value: any, compose?: boolean, fieldNameLabel?: string, fieldNameValue?: string) => import("react/jsx-runtime").JSX.Element;
1
+ declare const getEnumLabel: (code: string | string[], value: any, compose?: boolean, fieldNameLabel?: string, fieldNameValue?: string) => JSX.Element;
2
2
  export default getEnumLabel;
@@ -1,3 +1,3 @@
1
1
  import { IProps } from './propsType';
2
- declare const Input: (props: IProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const Input: (props: IProps) => 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) => import("react/jsx-runtime").JSX.Element>;
3
+ declare const _default: import("react").MemoExoticComponent<(props: ProCascaderProps) => 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) => import("react/jsx-runtime").JSX.Element;
15
+ declare const InputRange: ({ value, onChange, min, max, group, disabled, precision, isPositiveInteger, }: InputRangeProps) => JSX.Element;
16
16
  export default InputRange;
@@ -1,3 +1,3 @@
1
1
  import { comPropsType } from './propsTypes';
2
- declare const InputWithSuffix: (props: comPropsType) => import("react/jsx-runtime").JSX.Element;
2
+ declare const InputWithSuffix: (props: comPropsType) => JSX.Element;
3
3
  export default InputWithSuffix;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ProAddressPropsType } from './propsTypes';
2
3
  export declare const transferAddressInfoToRegion: () => {
3
4
  normalize: (value: any) => {
@@ -23,5 +24,5 @@ export declare const transferAddressInfoToRegion: () => {
23
24
  };
24
25
  };
25
26
  };
26
- export declare function ProAddress({ ...props }: ProAddressPropsType): import("react/jsx-runtime").JSX.Element;
27
+ export declare function ProAddress({ ...props }: ProAddressPropsType): JSX.Element;
27
28
  export default ProAddress;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { ProRangeBoxPropsType } from './propsType';
2
- export default function ProRangeBox({ configOption }: ProRangeBoxPropsType): import("react/jsx-runtime").JSX.Element;
3
+ export default function ProRangeBox({ configOption }: ProRangeBoxPropsType): JSX.Element;
@@ -1,6 +1,7 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
2
- import { debounce, get } from 'lodash';
2
+ import { debounce } from 'lodash';
3
3
  import { HOOK_MARK } from 'rc-field-form/es/FieldContext';
4
+ import get from 'rc-util/lib/utils/get';
4
5
  import warning from 'rc-util/lib/warning';
5
6
  import { useState, useEffect, useRef, useMemo } from 'react';
6
7
  export function toArray(value) {
@@ -1,3 +1,3 @@
1
1
  import type { OpenMenuPropsType } from './propsType';
2
- declare const OpenMenu: (props: OpenMenuPropsType) => import("react/jsx-runtime").JSX.Element;
2
+ declare const OpenMenu: (props: OpenMenuPropsType) => JSX.Element;
3
3
  export default OpenMenu;
@@ -1,3 +1,3 @@
1
1
  import { ProCollapseProps } from './PropTypes';
2
- declare const ProCollapse: (props: ProCollapseProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const ProCollapse: (props: ProCollapseProps) => JSX.Element;
3
3
  export default ProCollapse;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { ProFooterProps } from './PropTypes';
3
- declare const _default: import("react").MemoExoticComponent<(props: ProFooterProps) => import("react/jsx-runtime").JSX.Element>;
3
+ declare const _default: import("react").MemoExoticComponent<(props: ProFooterProps) => JSX.Element>;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
1
  declare const Copy: ({ text }: {
2
2
  text: any;
3
- }) => import("react/jsx-runtime").JSX.Element;
3
+ }) => JSX.Element;
4
4
  export default Copy;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import type { ProHeaderProps } from './PropTypes';
3
- declare const _default: React.MemoExoticComponent<(props: ProHeaderProps) => import("react/jsx-runtime").JSX.Element>;
3
+ declare const _default: React.MemoExoticComponent<(props: ProHeaderProps) => JSX.Element>;
4
4
  export default _default;
@@ -5,7 +5,7 @@ export declare const LayoutContext: import("react").Context<{
5
5
  onSelected: (params: any) => void;
6
6
  }>;
7
7
  declare const ProLayout: {
8
- (props: ProLayoutProps): import("react/jsx-runtime").JSX.Element;
8
+ (props: ProLayoutProps): JSX.Element;
9
9
  defaultProps: {
10
10
  menus: any[];
11
11
  iconfontUrl: string;
@@ -17,8 +17,8 @@ declare const ProLayout: {
17
17
  headerHeight: number;
18
18
  contentStyle: {};
19
19
  };
20
- ProCollapse: (props: import("./components/ProCollapse/PropTypes").ProCollapseProps) => import("react/jsx-runtime").JSX.Element;
21
- ProFooter: import("react").MemoExoticComponent<(props: import("./components/ProFooter/PropTypes").ProFooterProps) => import("react/jsx-runtime").JSX.Element>;
22
- ProHeader: import("react").MemoExoticComponent<(props: import("./components/ProHeader/PropTypes").ProHeaderProps) => import("react/jsx-runtime").JSX.Element>;
20
+ ProCollapse: (props: import("./components/ProCollapse/PropTypes").ProCollapseProps) => JSX.Element;
21
+ ProFooter: import("react").MemoExoticComponent<(props: import("./components/ProFooter/PropTypes").ProFooterProps) => JSX.Element>;
22
+ ProHeader: import("react").MemoExoticComponent<(props: import("./components/ProHeader/PropTypes").ProHeaderProps) => JSX.Element>;
23
23
  };
24
24
  export default ProLayout;
@@ -1,4 +1,4 @@
1
1
  declare const AdaptiveTooltip: ({ children }: {
2
2
  children: any;
3
- }) => import("react/jsx-runtime").JSX.Element;
3
+ }) => JSX.Element;
4
4
  export default AdaptiveTooltip;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { PropSelectProps, ProSelectAction } from './propsType';
3
3
  import './index.less';
4
- export declare const ProSelect: (props: PropSelectProps, ref: React.Ref<ProSelectAction> | undefined) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const ProSelect: (props: PropSelectProps, ref: React.Ref<ProSelectAction> | undefined) => JSX.Element;
5
5
  declare const _default: React.ForwardRefExoticComponent<PropSelectProps & React.RefAttributes<ProSelectAction>>;
6
6
  export default _default;
@@ -1,2 +1,2 @@
1
- export declare const MenuItem: (props: any) => import("react/jsx-runtime").JSX.Element;
1
+ export declare const MenuItem: (props: any) => JSX.Element;
2
2
  export default MenuItem;
@@ -1,3 +1,3 @@
1
1
  import { ProStepItem } from '../../propsType';
2
- declare const _default: ({ id, title, collapse: collapseItem, children, ...restProps }: ProStepItem) => import("react/jsx-runtime").JSX.Element;
2
+ declare const _default: ({ id, title, collapse: collapseItem, children, ...restProps }: ProStepItem) => JSX.Element;
3
3
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { ProStepPropsType } from '../../propsType';
2
2
  export declare const Step: ({ fixedTop, dataSource, activeKey, errorCollection, style, targetOffset, scrollToError, }: ProStepPropsType & {
3
3
  errorCollection: object;
4
- }) => import("react/jsx-runtime").JSX.Element;
4
+ }) => JSX.Element;
5
5
  export default Step;
@@ -4,9 +4,9 @@ import './style/index.less';
4
4
  export declare const ProStepContext: import("react").Context<any>;
5
5
  export declare const useStep: () => any;
6
6
  declare const ProStep: {
7
- ({ children, ...resetProps }: ProStepPropsType): import("react/jsx-runtime").JSX.Element;
7
+ ({ children, ...resetProps }: ProStepPropsType): JSX.Element;
8
8
  useStep: () => any;
9
- Item: ({ id, title, collapse: collapseItem, children, ...restProps }: import("./propsType").ProStepItem) => import("react/jsx-runtime").JSX.Element;
9
+ Item: ({ id, title, collapse: collapseItem, children, ...restProps }: import("./propsType").ProStepItem) => JSX.Element;
10
10
  Listener: ({ children, delayTime, ...props }: any) => import("react").DetailedReactHTMLElement<any, HTMLElement>;
11
11
  };
12
12
  export default ProStep;
@@ -1,2 +1,2 @@
1
- declare const ResizableLine: () => import("react/jsx-runtime").JSX.Element;
1
+ declare const ResizableLine: () => 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
- }) => import("react/jsx-runtime").JSX.Element;
9
+ }) => 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): import("react/jsx-runtime").JSX.Element;
8
+ declare function ProTable(props: ProTableProps): JSX.Element;
9
9
  declare namespace ProTable {
10
10
  var defaultProps: {
11
11
  quickConfig: boolean;
@@ -105,7 +105,7 @@ export var formatColumn = function formatColumn(column, originalObj, dataSourceO
105
105
  if (['percentage', 'permillage'].includes(valueType)) {
106
106
  column.render = function (value, record, index) {
107
107
  var multiple = valueType === 'percentage' ? 100 : 1000;
108
- var realValue = tools.calc(Number(value), '*', multiple);
108
+ var realValue = tools.calc(Number(value !== null && value !== void 0 ? value : 0), '*', multiple);
109
109
  var renderValue = getDecimalDigits(value) > valueTypePrecision ? realValue : realValue.toFixed(valueTypePrecision);
110
110
  var originalValue = getOriginalValue(value, record, originalObj, rowKey, dataIndex);
111
111
  var originalRealValue = tools.calc(Number(originalValue || null), '*', multiple);
@@ -1,3 +1,3 @@
1
1
  import { CardProps } from '../../propType';
2
- declare const Card: (props: CardProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const Card: (props: CardProps) => 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) => import("react/jsx-runtime").JSX.Element;
2
+ declare const PrdTools: ({ onReset, onClose, setState, open, state, tableBorder, tableStripe, }: DevToolsPropsType) => 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): import("react/jsx-runtime").JSX.Element;
3
+ ({ size, className, cacheTime, color, mode, iconFollowTheme, prefixCls, tableBorder, tableStripe, theme, onChange, ...props }: ProThemeToolsProps): 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) => import("react/jsx-runtime").JSX.Element;
3
+ declare const ProTooltip: (props: ProTooltipPropsType) => JSX.Element;
4
4
  export default ProTooltip;
@@ -1,2 +1,3 @@
1
- declare function CloseIcon(props: any): import("react/jsx-runtime").JSX.Element;
1
+ /// <reference types="react" />
2
+ declare function CloseIcon(props: any): JSX.Element;
2
3
  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): import("react/jsx-runtime").JSX.Element;
15
+ declare function List(props: ListProps): 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) => import("react/jsx-runtime").JSX.Element;
3
+ declare const ProTree: (props: ProTreeProps) => 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) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const ProTreeSelect: (props: PropTreeSelectProps, ref: React.Ref<unknown> | undefined) => JSX.Element;
4
4
  declare const _default: React.ForwardRefExoticComponent<PropTreeSelectProps & React.RefAttributes<unknown>>;
5
5
  export default _default;
@@ -419,11 +419,20 @@ export var ProTreeSelect = function ProTreeSelect(props, ref) {
419
419
  }
420
420
  var handleChange = function handleChange(newVal, label, extra) {
421
421
  // newVal回来得一定是label、value
422
+ var _selectList = selectList.map(function (item) {
423
+ var label = item.label;
424
+ var _label = label;
425
+ var regex = /<span class="highlight-search-text">(.*?)<\/span>/g;
426
+ _label = item[label] = label.replace(regex, '$1');
427
+ return _objectSpread(_objectSpread({}, item), {}, {
428
+ label: _label
429
+ });
430
+ });
422
431
  var result = newVal;
423
432
  if (props === null || props === void 0 ? void 0 : props.labelInValue) {
424
- result = getLabelByValue(selectList, newVal);
433
+ result = getLabelByValue(_selectList, newVal);
425
434
  }
426
- var options = findTreeNode(selectList, extra === null || extra === void 0 ? void 0 : extra.triggerValue);
435
+ var options = findTreeNode(_selectList, extra === null || extra === void 0 ? void 0 : extra.triggerValue);
427
436
  onChange && onChange(result, options, extra);
428
437
  // 重置搜索
429
438
  showSearch && searchTreeEvent('');
@@ -4,6 +4,6 @@ declare function SearchTitle(props: {
4
4
  label?: string;
5
5
  showEllipse?: boolean;
6
6
  ellipseWidth?: string;
7
- }): import("react/jsx-runtime").JSX.Element;
7
+ }): 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): import("react/jsx-runtime").JSX.Element;
26
+ declare function List(props: ListProps): JSX.Element;
27
27
  export default List;
@@ -1,3 +1,3 @@
1
1
  import { ProTreeProps } from './propsType';
2
- declare const ProTreeHandle: (props: ProTreeProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const ProTreeHandle: (props: ProTreeProps) => 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) => import("react/jsx-runtime").JSX.Element;
13
+ declare const Cascader: (props: CascaderProps) => JSX.Element;
14
14
  export default Cascader;
@@ -1,2 +1,3 @@
1
- declare function CloseIcon(props: any): import("react/jsx-runtime").JSX.Element;
1
+ /// <reference types="react" />
2
+ declare function CloseIcon(props: any): JSX.Element;
2
3
  export default CloseIcon;
@@ -2,6 +2,6 @@
2
2
  declare function SearchTitle(props: {
3
3
  searchStr: string;
4
4
  label: string;
5
- }): import("react/jsx-runtime").JSX.Element;
5
+ }): 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): import("react/jsx-runtime").JSX.Element;
20
+ declare function Trigger(props: TriggerProps): 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) => import("react/jsx-runtime").JSX.Element;
4
+ declare const ProTreeModal: (props: ProTreeModalProps) => 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) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const DraggableUploadListItem: ({ file, children }: DraggableUploadListItemProps) => JSX.Element;
@@ -1,6 +1,6 @@
1
1
  import { IProDownloadProps } from './propsType';
2
2
  declare const ProDownload: {
3
- (props: IProDownloadProps): import("react/jsx-runtime").JSX.Element;
3
+ (props: IProDownloadProps): 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) => import("react/jsx-runtime").JSX.Element;
1
+ declare const ActionButton: ({ record, index, config, btnConfig }: any) => JSX.Element;
2
2
  export default ActionButton;
@@ -1,2 +1,2 @@
1
- declare const RenderField: ({ text: value, record, index, column, config }: any) => import("react/jsx-runtime").JSX.Element;
1
+ declare const RenderField: ({ text: value, record, index, column, config }: any) => JSX.Element;
2
2
  export default RenderField;
@@ -1,2 +1,2 @@
1
- declare const RenderToolbar: (config: any) => import("react/jsx-runtime").JSX.Element;
1
+ declare const RenderToolbar: (config: any) => 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) => import("react/jsx-runtime").JSX.Element;
11
+ declare const Summary: ({ data, summary, rowSelection, }: SummaryProps) => 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: import("react/jsx-runtime").JSX.Element;
12
+ add: 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) => import("react/jsx-runtime").JSX.Element;
9
+ declare const Group: (props: Props) => 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) => import("react/jsx-runtime").JSX.Element;
6
+ declare const ProEnumTag: (props: Props) => 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): 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;
5
+ (props: ProEnumProps): JSX.Element;
6
+ getEnumLabel: (code: string | string[], value: any, compose?: boolean, fieldNameLabel?: string, fieldNameValue?: string) => JSX.Element;
7
7
  useEnum: typeof useEnum;
8
8
  };
9
9
  export default ProEnum;
@@ -10,7 +10,7 @@ var SimpleEventCenter = /*#__PURE__*/function () {
10
10
  this.events = void 0;
11
11
  this.events = new Map();
12
12
  }
13
- return (0, _createClass2.default)(SimpleEventCenter, [{
13
+ (0, _createClass2.default)(SimpleEventCenter, [{
14
14
  key: "subscribe",
15
15
  value: function subscribe(eventName, callback) {
16
16
  if (!this.events.has(eventName)) {
@@ -37,5 +37,6 @@ var SimpleEventCenter = /*#__PURE__*/function () {
37
37
  }
38
38
  }
39
39
  }]);
40
+ return SimpleEventCenter;
40
41
  }(); // 将 eventCenter 实例添加到 window 对象上
41
42
  window.eventCenter = new SimpleEventCenter();
@@ -1,2 +1,2 @@
1
- declare const getEnumLabel: (code: string | string[], value: any, compose?: boolean, fieldNameLabel?: string, fieldNameValue?: string) => import("react/jsx-runtime").JSX.Element;
1
+ declare const getEnumLabel: (code: string | string[], value: any, compose?: boolean, fieldNameLabel?: string, fieldNameValue?: string) => JSX.Element;
2
2
  export default getEnumLabel;
@@ -1,3 +1,3 @@
1
1
  import { IProps } from './propsType';
2
- declare const Input: (props: IProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const Input: (props: IProps) => 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) => import("react/jsx-runtime").JSX.Element>;
3
+ declare const _default: import("react").MemoExoticComponent<(props: ProCascaderProps) => 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) => import("react/jsx-runtime").JSX.Element;
15
+ declare const InputRange: ({ value, onChange, min, max, group, disabled, precision, isPositiveInteger, }: InputRangeProps) => JSX.Element;
16
16
  export default InputRange;
@@ -1,3 +1,3 @@
1
1
  import { comPropsType } from './propsTypes';
2
- declare const InputWithSuffix: (props: comPropsType) => import("react/jsx-runtime").JSX.Element;
2
+ declare const InputWithSuffix: (props: comPropsType) => JSX.Element;
3
3
  export default InputWithSuffix;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  import { ProAddressPropsType } from './propsTypes';
2
3
  export declare const transferAddressInfoToRegion: () => {
3
4
  normalize: (value: any) => {
@@ -23,5 +24,5 @@ export declare const transferAddressInfoToRegion: () => {
23
24
  };
24
25
  };
25
26
  };
26
- export declare function ProAddress({ ...props }: ProAddressPropsType): import("react/jsx-runtime").JSX.Element;
27
+ export declare function ProAddress({ ...props }: ProAddressPropsType): JSX.Element;
27
28
  export default ProAddress;
@@ -1,2 +1,3 @@
1
+ /// <reference types="react" />
1
2
  import { ProRangeBoxPropsType } from './propsType';
2
- export default function ProRangeBox({ configOption }: ProRangeBoxPropsType): import("react/jsx-runtime").JSX.Element;
3
+ export default function ProRangeBox({ configOption }: ProRangeBoxPropsType): JSX.Element;
@@ -11,6 +11,7 @@ exports.toArray = toArray;
11
11
  var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
12
12
  var _lodash = require("lodash");
13
13
  var _FieldContext = require("rc-field-form/es/FieldContext");
14
+ var _get = _interopRequireDefault(require("rc-util/lib/utils/get"));
14
15
  var _warning = _interopRequireDefault(require("rc-util/lib/warning"));
15
16
  var _react = require("react");
16
17
  function toArray(value) {
@@ -62,7 +63,7 @@ function useWatch(dependencies, form, wait) {
62
63
  registerWatch = _getInternalHooks.registerWatch;
63
64
  var callback = function callback(store) {
64
65
  var newValue = namePathsRef.current.map(function (namePath) {
65
- return (0, _lodash.get)(store, namePath);
66
+ return (0, _get.default)(store, namePath);
66
67
  });
67
68
  var nextValueStr = stringify(newValue);
68
69
  // Compare stringify in case it's nest object
@@ -77,7 +78,7 @@ function useWatch(dependencies, form, wait) {
77
78
  }
78
79
  var cancelRegister = registerWatch(callback);
79
80
  var initialValue = namePathsRef.current.map(function (namePath) {
80
- return (0, _lodash.get)(getFieldsValue(), namePath);
81
+ return (0, _get.default)(getFieldsValue(), namePath);
81
82
  });
82
83
  setValue(initialValue);
83
84
  return cancelRegister;
@@ -1,3 +1,3 @@
1
1
  import type { OpenMenuPropsType } from './propsType';
2
- declare const OpenMenu: (props: OpenMenuPropsType) => import("react/jsx-runtime").JSX.Element;
2
+ declare const OpenMenu: (props: OpenMenuPropsType) => JSX.Element;
3
3
  export default OpenMenu;
@@ -1,3 +1,3 @@
1
1
  import { ProCollapseProps } from './PropTypes';
2
- declare const ProCollapse: (props: ProCollapseProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const ProCollapse: (props: ProCollapseProps) => JSX.Element;
3
3
  export default ProCollapse;
@@ -1,4 +1,4 @@
1
1
  /// <reference types="react" />
2
2
  import { ProFooterProps } from './PropTypes';
3
- declare const _default: import("react").MemoExoticComponent<(props: ProFooterProps) => import("react/jsx-runtime").JSX.Element>;
3
+ declare const _default: import("react").MemoExoticComponent<(props: ProFooterProps) => JSX.Element>;
4
4
  export default _default;
@@ -1,4 +1,4 @@
1
1
  declare const Copy: ({ text }: {
2
2
  text: any;
3
- }) => import("react/jsx-runtime").JSX.Element;
3
+ }) => JSX.Element;
4
4
  export default Copy;
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import type { ProHeaderProps } from './PropTypes';
3
- declare const _default: React.MemoExoticComponent<(props: ProHeaderProps) => import("react/jsx-runtime").JSX.Element>;
3
+ declare const _default: React.MemoExoticComponent<(props: ProHeaderProps) => JSX.Element>;
4
4
  export default _default;
@@ -5,7 +5,7 @@ export declare const LayoutContext: import("react").Context<{
5
5
  onSelected: (params: any) => void;
6
6
  }>;
7
7
  declare const ProLayout: {
8
- (props: ProLayoutProps): import("react/jsx-runtime").JSX.Element;
8
+ (props: ProLayoutProps): JSX.Element;
9
9
  defaultProps: {
10
10
  menus: any[];
11
11
  iconfontUrl: string;
@@ -17,8 +17,8 @@ declare const ProLayout: {
17
17
  headerHeight: number;
18
18
  contentStyle: {};
19
19
  };
20
- ProCollapse: (props: import("./components/ProCollapse/PropTypes").ProCollapseProps) => import("react/jsx-runtime").JSX.Element;
21
- ProFooter: import("react").MemoExoticComponent<(props: import("./components/ProFooter/PropTypes").ProFooterProps) => import("react/jsx-runtime").JSX.Element>;
22
- ProHeader: import("react").MemoExoticComponent<(props: import("./components/ProHeader/PropTypes").ProHeaderProps) => import("react/jsx-runtime").JSX.Element>;
20
+ ProCollapse: (props: import("./components/ProCollapse/PropTypes").ProCollapseProps) => JSX.Element;
21
+ ProFooter: import("react").MemoExoticComponent<(props: import("./components/ProFooter/PropTypes").ProFooterProps) => JSX.Element>;
22
+ ProHeader: import("react").MemoExoticComponent<(props: import("./components/ProHeader/PropTypes").ProHeaderProps) => JSX.Element>;
23
23
  };
24
24
  export default ProLayout;
@@ -1,4 +1,4 @@
1
1
  declare const AdaptiveTooltip: ({ children }: {
2
2
  children: any;
3
- }) => import("react/jsx-runtime").JSX.Element;
3
+ }) => JSX.Element;
4
4
  export default AdaptiveTooltip;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { PropSelectProps, ProSelectAction } from './propsType';
3
3
  import './index.less';
4
- export declare const ProSelect: (props: PropSelectProps, ref: React.Ref<ProSelectAction> | undefined) => import("react/jsx-runtime").JSX.Element;
4
+ export declare const ProSelect: (props: PropSelectProps, ref: React.Ref<ProSelectAction> | undefined) => JSX.Element;
5
5
  declare const _default: React.ForwardRefExoticComponent<PropSelectProps & React.RefAttributes<ProSelectAction>>;
6
6
  export default _default;
@@ -1,2 +1,2 @@
1
- export declare const MenuItem: (props: any) => import("react/jsx-runtime").JSX.Element;
1
+ export declare const MenuItem: (props: any) => JSX.Element;
2
2
  export default MenuItem;
@@ -1,3 +1,3 @@
1
1
  import { ProStepItem } from '../../propsType';
2
- declare const _default: ({ id, title, collapse: collapseItem, children, ...restProps }: ProStepItem) => import("react/jsx-runtime").JSX.Element;
2
+ declare const _default: ({ id, title, collapse: collapseItem, children, ...restProps }: ProStepItem) => JSX.Element;
3
3
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { ProStepPropsType } from '../../propsType';
2
2
  export declare const Step: ({ fixedTop, dataSource, activeKey, errorCollection, style, targetOffset, scrollToError, }: ProStepPropsType & {
3
3
  errorCollection: object;
4
- }) => import("react/jsx-runtime").JSX.Element;
4
+ }) => JSX.Element;
5
5
  export default Step;
@@ -4,9 +4,9 @@ import './style/index.less';
4
4
  export declare const ProStepContext: import("react").Context<any>;
5
5
  export declare const useStep: () => any;
6
6
  declare const ProStep: {
7
- ({ children, ...resetProps }: ProStepPropsType): import("react/jsx-runtime").JSX.Element;
7
+ ({ children, ...resetProps }: ProStepPropsType): JSX.Element;
8
8
  useStep: () => any;
9
- Item: ({ id, title, collapse: collapseItem, children, ...restProps }: import("./propsType").ProStepItem) => import("react/jsx-runtime").JSX.Element;
9
+ Item: ({ id, title, collapse: collapseItem, children, ...restProps }: import("./propsType").ProStepItem) => JSX.Element;
10
10
  Listener: ({ children, delayTime, ...props }: any) => import("react").DetailedReactHTMLElement<any, HTMLElement>;
11
11
  };
12
12
  export default ProStep;
@@ -1,2 +1,2 @@
1
- declare const ResizableLine: () => import("react/jsx-runtime").JSX.Element;
1
+ declare const ResizableLine: () => 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
- }) => import("react/jsx-runtime").JSX.Element;
9
+ }) => 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): import("react/jsx-runtime").JSX.Element;
8
+ declare function ProTable(props: ProTableProps): JSX.Element;
9
9
  declare namespace ProTable {
10
10
  var defaultProps: {
11
11
  quickConfig: boolean;
@@ -112,7 +112,7 @@ var formatColumn = exports.formatColumn = function formatColumn(column, original
112
112
  if (['percentage', 'permillage'].includes(valueType)) {
113
113
  column.render = function (value, record, index) {
114
114
  var multiple = valueType === 'percentage' ? 100 : 1000;
115
- var realValue = _utils.tools.calc(Number(value), '*', multiple);
115
+ var realValue = _utils.tools.calc(Number(value !== null && value !== void 0 ? value : 0), '*', multiple);
116
116
  var renderValue = getDecimalDigits(value) > valueTypePrecision ? realValue : realValue.toFixed(valueTypePrecision);
117
117
  var originalValue = getOriginalValue(value, record, originalObj, rowKey, dataIndex);
118
118
  var originalRealValue = _utils.tools.calc(Number(originalValue || null), '*', multiple);
@@ -1,3 +1,3 @@
1
1
  import { CardProps } from '../../propType';
2
- declare const Card: (props: CardProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const Card: (props: CardProps) => 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) => import("react/jsx-runtime").JSX.Element;
2
+ declare const PrdTools: ({ onReset, onClose, setState, open, state, tableBorder, tableStripe, }: DevToolsPropsType) => 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): import("react/jsx-runtime").JSX.Element;
3
+ ({ size, className, cacheTime, color, mode, iconFollowTheme, prefixCls, tableBorder, tableStripe, theme, onChange, ...props }: ProThemeToolsProps): 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) => import("react/jsx-runtime").JSX.Element;
3
+ declare const ProTooltip: (props: ProTooltipPropsType) => JSX.Element;
4
4
  export default ProTooltip;
@@ -1,2 +1,3 @@
1
- declare function CloseIcon(props: any): import("react/jsx-runtime").JSX.Element;
1
+ /// <reference types="react" />
2
+ declare function CloseIcon(props: any): JSX.Element;
2
3
  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): import("react/jsx-runtime").JSX.Element;
15
+ declare function List(props: ListProps): 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) => import("react/jsx-runtime").JSX.Element;
3
+ declare const ProTree: (props: ProTreeProps) => 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) => import("react/jsx-runtime").JSX.Element;
3
+ export declare const ProTreeSelect: (props: PropTreeSelectProps, ref: React.Ref<unknown> | undefined) => JSX.Element;
4
4
  declare const _default: React.ForwardRefExoticComponent<PropTreeSelectProps & React.RefAttributes<unknown>>;
5
5
  export default _default;
@@ -419,11 +419,20 @@ var ProTreeSelect = exports.ProTreeSelect = function ProTreeSelect(props, ref) {
419
419
  }
420
420
  var handleChange = function handleChange(newVal, label, extra) {
421
421
  // newVal回来得一定是label、value
422
+ var _selectList = selectList.map(function (item) {
423
+ var label = item.label;
424
+ var _label = label;
425
+ var regex = /<span class="highlight-search-text">(.*?)<\/span>/g;
426
+ _label = item[label] = label.replace(regex, '$1');
427
+ return (0, _objectSpread2.default)((0, _objectSpread2.default)({}, item), {}, {
428
+ label: _label
429
+ });
430
+ });
422
431
  var result = newVal;
423
432
  if (props === null || props === void 0 ? void 0 : props.labelInValue) {
424
- result = getLabelByValue(selectList, newVal);
433
+ result = getLabelByValue(_selectList, newVal);
425
434
  }
426
- var options = findTreeNode(selectList, extra === null || extra === void 0 ? void 0 : extra.triggerValue);
435
+ var options = findTreeNode(_selectList, extra === null || extra === void 0 ? void 0 : extra.triggerValue);
427
436
  onChange && onChange(result, options, extra);
428
437
  // 重置搜索
429
438
  showSearch && searchTreeEvent('');
@@ -4,6 +4,6 @@ declare function SearchTitle(props: {
4
4
  label?: string;
5
5
  showEllipse?: boolean;
6
6
  ellipseWidth?: string;
7
- }): import("react/jsx-runtime").JSX.Element;
7
+ }): 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): import("react/jsx-runtime").JSX.Element;
26
+ declare function List(props: ListProps): JSX.Element;
27
27
  export default List;
@@ -1,3 +1,3 @@
1
1
  import { ProTreeProps } from './propsType';
2
- declare const ProTreeHandle: (props: ProTreeProps) => import("react/jsx-runtime").JSX.Element;
2
+ declare const ProTreeHandle: (props: ProTreeProps) => 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) => import("react/jsx-runtime").JSX.Element;
13
+ declare const Cascader: (props: CascaderProps) => JSX.Element;
14
14
  export default Cascader;
@@ -1,2 +1,3 @@
1
- declare function CloseIcon(props: any): import("react/jsx-runtime").JSX.Element;
1
+ /// <reference types="react" />
2
+ declare function CloseIcon(props: any): JSX.Element;
2
3
  export default CloseIcon;
@@ -2,6 +2,6 @@
2
2
  declare function SearchTitle(props: {
3
3
  searchStr: string;
4
4
  label: string;
5
- }): import("react/jsx-runtime").JSX.Element;
5
+ }): 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): import("react/jsx-runtime").JSX.Element;
20
+ declare function Trigger(props: TriggerProps): 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) => import("react/jsx-runtime").JSX.Element;
4
+ declare const ProTreeModal: (props: ProTreeModalProps) => 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) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const DraggableUploadListItem: ({ file, children }: DraggableUploadListItemProps) => JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.6.5-beta.4",
3
+ "version": "3.6.5-beta.6",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",