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

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 (148) hide show
  1. package/es/ProDrawerForm/components/ProDrawer/index.d.ts +2 -2
  2. package/es/ProDrawerForm/components/ProModal/index.d.ts +2 -2
  3. package/es/ProDrawerForm/index.d.ts +1 -2
  4. package/es/ProDrawerForm/propsType.d.ts +38 -27
  5. package/es/ProDrawerForm/utils/index.d.ts +2 -2
  6. package/es/ProEditLabel/propsType.d.ts +2 -2
  7. package/es/ProEditTable/components/Summary/index.d.ts +2 -2
  8. package/es/ProEditTable/index.d.ts +2 -2
  9. package/es/ProEditTable/propsType.d.ts +232 -93
  10. package/es/ProEnum/propsType.d.ts +2 -2
  11. package/es/ProForm/components/FormFooter/index.d.ts +2 -2
  12. package/es/ProForm/components/FormFooter/propsType.d.ts +8 -3
  13. package/es/ProForm/components/base/Checkbox/index.d.ts +2 -2
  14. package/es/ProForm/components/base/Input/index.d.ts +2 -2
  15. package/es/ProForm/components/base/Input/propsType.d.ts +8 -4
  16. package/es/ProForm/components/base/InputNumber/index.d.ts +2 -2
  17. package/es/ProForm/components/base/Radio/index.d.ts +2 -2
  18. package/es/ProForm/components/base/RangePicker/index.d.ts +2 -2
  19. package/es/ProForm/components/base/Select/index.d.ts +2 -2
  20. package/es/ProForm/components/base/Switch/index.d.ts +2 -2
  21. package/es/ProForm/components/base/SwitchCheckbox/index.d.ts +2 -2
  22. package/es/ProForm/components/base/TextArea/index.d.ts +2 -2
  23. package/es/ProForm/components/base/TimePicker/index.d.ts +2 -2
  24. package/es/ProForm/components/combination/Container/index.d.ts +2 -2
  25. package/es/ProForm/components/combination/Container/propsType.d.ts +9 -5
  26. package/es/ProForm/components/combination/FormList/components/ActionButton.d.ts +4 -4
  27. package/es/ProForm/components/combination/FormList/components/BlockFields.d.ts +4 -4
  28. package/es/ProForm/components/combination/FormList/components/LineFields.d.ts +4 -4
  29. package/es/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +2 -2
  30. package/es/ProForm/components/combination/FormList/index.d.ts +2 -2
  31. package/es/ProForm/components/combination/FormList/propsType.d.ts +18 -10
  32. package/es/ProForm/components/combination/Group/index.d.ts +2 -2
  33. package/es/ProForm/components/combination/Group/propsType.d.ts +10 -5
  34. package/es/ProForm/components/combination/Group/utils.d.ts +4 -4
  35. package/es/ProForm/components/combination/ProCascader/index.d.ts +2 -1
  36. package/es/ProForm/components/combination/ProCascader/propsType.d.ts +6 -2
  37. package/es/ProForm/components/combination/ProCombination/index.d.ts +3 -3
  38. package/es/ProForm/components/combination/ProCombination/propsType.d.ts +10 -5
  39. package/es/ProForm/components/combination/ProModalSelect/index.d.ts +2 -2
  40. package/es/ProForm/components/combination/ProModalSelect/propsType.d.ts +60 -8
  41. package/es/ProForm/components/combination/ProNumberRange/propsType.d.ts +7 -3
  42. package/es/ProForm/components/combination/ProTimeLimit/index.d.ts +14 -8
  43. package/es/ProForm/components/render/ChangedWrapper.d.ts +2 -2
  44. package/es/ProForm/components/render/Render.d.ts +2 -2
  45. package/es/ProForm/components/render/RenderFields.d.ts +4 -4
  46. package/es/ProForm/components/render/propsType.d.ts +54 -43
  47. package/es/ProForm/index.d.ts +2 -2
  48. package/es/ProForm/propsType.d.ts +22 -15
  49. package/es/ProForm/utils/transformValue.d.ts +2 -2
  50. package/es/ProForm/utils/useFieldProps.d.ts +3 -3
  51. package/es/ProForm/utils/useShouldUpdate.d.ts +3 -3
  52. package/es/ProLayout/components/ProHeader/PropTypes.d.ts +2 -2
  53. package/es/ProLayout/index.d.ts +1 -1
  54. package/es/ProSelect/propsType.d.ts +2 -2
  55. package/es/ProStep/components/Item/index.d.ts +2 -2
  56. package/es/ProStep/components/Step/index.d.ts +2 -2
  57. package/es/ProStep/index.d.ts +2 -2
  58. package/es/ProStep/index.js +12 -1
  59. package/es/ProStep/propsType.d.ts +60 -12
  60. package/es/ProStep/utils/index.d.ts +2 -2
  61. package/es/ProTable/components/FormatColumn/index.d.ts +2 -2
  62. package/es/ProTable/hooks/useAntdTable.d.ts +2 -2
  63. package/es/ProTable/index.d.ts +2 -2
  64. package/es/ProTable/propsType.d.ts +590 -39
  65. package/es/ProTooltip/index.d.ts +2 -2
  66. package/es/ProTooltip/propsType.d.ts +52 -9
  67. package/es/ProTree/components/ProTreeSelect/propsType.d.ts +2 -2
  68. package/es/ProTree/components/SearchTitle.d.ts +2 -2
  69. package/es/ProTree/propsType.d.ts +3 -3
  70. package/es/ProTreeModal/propsType.d.ts +2 -2
  71. package/es/ProUpload/propsType.d.ts +3 -3
  72. package/es/index.d.ts +1 -0
  73. package/es/index.js +1 -0
  74. package/lib/ProDrawerForm/components/ProDrawer/index.d.ts +2 -2
  75. package/lib/ProDrawerForm/components/ProModal/index.d.ts +2 -2
  76. package/lib/ProDrawerForm/index.d.ts +1 -2
  77. package/lib/ProDrawerForm/propsType.d.ts +38 -27
  78. package/lib/ProDrawerForm/utils/index.d.ts +2 -2
  79. package/lib/ProEditLabel/propsType.d.ts +2 -2
  80. package/lib/ProEditTable/components/Summary/index.d.ts +2 -2
  81. package/lib/ProEditTable/index.d.ts +2 -2
  82. package/lib/ProEditTable/propsType.d.ts +232 -93
  83. package/lib/ProEnum/propsType.d.ts +2 -2
  84. package/lib/ProForm/components/FormFooter/index.d.ts +2 -2
  85. package/lib/ProForm/components/FormFooter/propsType.d.ts +8 -3
  86. package/lib/ProForm/components/base/Checkbox/index.d.ts +2 -2
  87. package/lib/ProForm/components/base/Input/index.d.ts +2 -2
  88. package/lib/ProForm/components/base/Input/propsType.d.ts +8 -4
  89. package/lib/ProForm/components/base/InputNumber/index.d.ts +2 -2
  90. package/lib/ProForm/components/base/Radio/index.d.ts +2 -2
  91. package/lib/ProForm/components/base/RangePicker/index.d.ts +2 -2
  92. package/lib/ProForm/components/base/Select/index.d.ts +2 -2
  93. package/lib/ProForm/components/base/Switch/index.d.ts +2 -2
  94. package/lib/ProForm/components/base/SwitchCheckbox/index.d.ts +2 -2
  95. package/lib/ProForm/components/base/TextArea/index.d.ts +2 -2
  96. package/lib/ProForm/components/base/TimePicker/index.d.ts +2 -2
  97. package/lib/ProForm/components/combination/Container/index.d.ts +2 -2
  98. package/lib/ProForm/components/combination/Container/propsType.d.ts +9 -5
  99. package/lib/ProForm/components/combination/FormList/components/ActionButton.d.ts +4 -4
  100. package/lib/ProForm/components/combination/FormList/components/BlockFields.d.ts +4 -4
  101. package/lib/ProForm/components/combination/FormList/components/LineFields.d.ts +4 -4
  102. package/lib/ProForm/components/combination/FormList/components/ToolbarButton.d.ts +2 -2
  103. package/lib/ProForm/components/combination/FormList/index.d.ts +2 -2
  104. package/lib/ProForm/components/combination/FormList/propsType.d.ts +18 -10
  105. package/lib/ProForm/components/combination/Group/index.d.ts +2 -2
  106. package/lib/ProForm/components/combination/Group/propsType.d.ts +10 -5
  107. package/lib/ProForm/components/combination/Group/utils.d.ts +4 -4
  108. package/lib/ProForm/components/combination/ProCascader/index.d.ts +2 -1
  109. package/lib/ProForm/components/combination/ProCascader/propsType.d.ts +6 -2
  110. package/lib/ProForm/components/combination/ProCombination/index.d.ts +3 -3
  111. package/lib/ProForm/components/combination/ProCombination/propsType.d.ts +10 -5
  112. package/lib/ProForm/components/combination/ProModalSelect/index.d.ts +2 -2
  113. package/lib/ProForm/components/combination/ProModalSelect/propsType.d.ts +60 -8
  114. package/lib/ProForm/components/combination/ProNumberRange/propsType.d.ts +7 -3
  115. package/lib/ProForm/components/combination/ProTimeLimit/index.d.ts +14 -8
  116. package/lib/ProForm/components/render/ChangedWrapper.d.ts +2 -2
  117. package/lib/ProForm/components/render/Render.d.ts +2 -2
  118. package/lib/ProForm/components/render/RenderFields.d.ts +4 -4
  119. package/lib/ProForm/components/render/propsType.d.ts +54 -43
  120. package/lib/ProForm/index.d.ts +2 -2
  121. package/lib/ProForm/propsType.d.ts +22 -15
  122. package/lib/ProForm/utils/transformValue.d.ts +2 -2
  123. package/lib/ProForm/utils/useFieldProps.d.ts +3 -3
  124. package/lib/ProForm/utils/useShouldUpdate.d.ts +3 -3
  125. package/lib/ProLayout/components/ProHeader/PropTypes.d.ts +2 -2
  126. package/lib/ProLayout/index.d.ts +1 -1
  127. package/lib/ProSelect/propsType.d.ts +2 -2
  128. package/lib/ProStep/components/Item/index.d.ts +2 -2
  129. package/lib/ProStep/components/Step/index.d.ts +2 -2
  130. package/lib/ProStep/index.d.ts +2 -2
  131. package/lib/ProStep/index.js +12 -1
  132. package/lib/ProStep/propsType.d.ts +60 -12
  133. package/lib/ProStep/utils/index.d.ts +2 -2
  134. package/lib/ProTable/components/FormatColumn/index.d.ts +2 -2
  135. package/lib/ProTable/hooks/useAntdTable.d.ts +2 -2
  136. package/lib/ProTable/index.d.ts +2 -2
  137. package/lib/ProTable/propsType.d.ts +590 -39
  138. package/lib/ProTooltip/index.d.ts +2 -2
  139. package/lib/ProTooltip/propsType.d.ts +52 -9
  140. package/lib/ProTree/components/ProTreeSelect/propsType.d.ts +2 -2
  141. package/lib/ProTree/components/SearchTitle.d.ts +2 -2
  142. package/lib/ProTree/propsType.d.ts +3 -3
  143. package/lib/ProTreeModal/propsType.d.ts +2 -2
  144. package/lib/ProUpload/propsType.d.ts +3 -3
  145. package/lib/index.d.ts +1 -0
  146. package/lib/index.js +12 -0
  147. package/package.json +1 -1
  148. package/.vscode/extensions.json +0 -5
@@ -1,4 +1,4 @@
1
- import { ProTooltipPropsType } from './propsType';
1
+ import type { ProTooltipType } 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: ProTooltipType) => import("react/jsx-runtime").JSX.Element;
4
4
  export default ProTooltip;
@@ -1,19 +1,62 @@
1
- import React from 'react';
2
- export interface ProTooltipPropsType {
3
- text?: string | React.ReactNode;
1
+ import { ReactNode, CSSProperties } from 'react';
2
+ export interface ProTooltipType {
3
+ /**
4
+ * 提示文本内容
5
+ * @description 支持字符串或React节点
6
+ * @default undefined
7
+ */
8
+ text?: string | ReactNode;
9
+ /**
10
+ * 提示框宽度
11
+ * @description 设置提示框的宽度,支持各种CSS宽度单位
12
+ * @default 'auto'
13
+ */
4
14
  width?: string;
15
+ /**
16
+ * 显示的行数
17
+ * @description 当内容超过设定行数时将截断显示
18
+ * @default 1
19
+ */
5
20
  line?: number;
21
+ /**
22
+ * 是否响应式宽度
23
+ * @description 启用后提示框宽度将根据内容自适应
24
+ * @default false
25
+ */
6
26
  isResponsiveWidth?: Boolean;
27
+ /**
28
+ * 自定义类名
29
+ * @description 额外的CSS类名
30
+ * @default ''
31
+ */
7
32
  className?: string;
8
- children?: React.ReactNode;
9
- /** 样式 */
10
- style?: React.CSSProperties;
11
- /** 兼容 */
33
+ /**
34
+ * 子元素
35
+ * @description 组件包裹的内容
36
+ * @default null
37
+ */
38
+ children?: ReactNode;
39
+ /**
40
+ * 自定义样式对象
41
+ * @description 直接应用于组件的内联样式
42
+ * @default {}
43
+ */
44
+ style?: CSSProperties;
45
+ /**
46
+ * 兼容属性
47
+ * @description 支持传入其他属性
48
+ */
12
49
  [key: string]: any;
13
50
  }
14
- export interface RefObjectPropsType<T> {
51
+ export interface ProTooltipRefObjectType<T> {
52
+ /** 当前引用的DOM元素 */
15
53
  readonly current: T | null;
16
54
  }
17
- export type ProtooltipTriggerNodeType = HTMLElement & {
55
+ export type ProTooltipTriggerNodeType = HTMLElement & {
56
+ /** 父节点元素 */
18
57
  parentNode: HTMLElement;
19
58
  };
59
+ export type ProTooltipPropsType = ProTooltipType;
60
+ export type ProTooltipProps = ProTooltipType;
61
+ export type RefObjectPropsType<T> = ProTooltipRefObjectType<T>;
62
+ export type ProtooltipTriggerNodeType = ProTooltipTriggerNodeType;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { TreeSelectProps } from 'antd';
3
3
  import { Service, Options, Result } from 'ahooks/lib/useRequest/src/types';
4
- import { ProFormOtherProps } from '../../../ProForm/propsType';
4
+ import { ProFormOtherType } from '../../../ProForm/propsType';
5
5
  export interface DataProps {
6
6
  label: string;
7
7
  value?: string;
@@ -62,7 +62,7 @@ export interface PropTreeSelectProps extends Omit<TreeSelectProps, 'onSearch'> {
62
62
  /** 是否展示 code-label 形式 */
63
63
  showCodeName?: boolean;
64
64
  /** 集成表单 form 的属性 */
65
- otherProps?: ProFormOtherProps;
65
+ otherProps?: ProFormOtherType;
66
66
  onSearch?: (value: string, useRequest: Result<any, any>) => void;
67
67
  /** 远程请求接口 */
68
68
  useRequest?: {
@@ -1,11 +1,11 @@
1
1
  /// <reference types="react" />
2
- import { ProFormOtherProps } from '../../ProForm/propsType';
2
+ import { ProFormOtherType } from '../../ProForm/propsType';
3
3
  declare function SearchTitle(props: {
4
4
  searchStr?: string;
5
5
  label?: string;
6
6
  showEllipse?: boolean;
7
7
  ellipseWidth?: string;
8
- otherProps?: ProFormOtherProps;
8
+ otherProps?: ProFormOtherType;
9
9
  }): import("react/jsx-runtime").JSX.Element;
10
10
  declare const _default: import("react").MemoExoticComponent<typeof SearchTitle>;
11
11
  export default _default;
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
2
  import { Service, Options, Result } from 'ahooks/lib/useRequest/src/types';
3
3
  import type { TreeSelectProps } from 'antd';
4
- import { ProFormOtherProps } from '../ProForm/propsType';
4
+ import { ProFormOtherType } from '../ProForm/propsType';
5
5
  export interface TreeDataProps {
6
6
  label?: string;
7
7
  value?: string;
@@ -76,7 +76,7 @@ export interface ProTreeProps extends PropTreeSelectProps {
76
76
  transformResponse?: (data: any) => TreeDataProps[];
77
77
  /** tags 集合 */
78
78
  tags?: string[];
79
- otherProps?: ProFormOtherProps;
79
+ otherProps?: ProFormOtherType;
80
80
  /** 远程请求接口 */
81
81
  useRequest?: {
82
82
  service: Service<any, any>;
@@ -186,7 +186,7 @@ export interface PropTreeSelectProps extends Omit<TreeSelectProps, 'onSearch'> {
186
186
  /** 是否展示 code-label 形式 */
187
187
  showCodeName?: boolean;
188
188
  /** 集成表单 form 的属性 */
189
- otherProps?: ProFormOtherProps;
189
+ otherProps?: ProFormOtherType;
190
190
  onSearch?: (value: string, useRequest: Result<any, any>) => void;
191
191
  /** 远程请求接口 */
192
192
  useRequest?: {
@@ -1,6 +1,6 @@
1
1
  import { ReactNode, CSSProperties } from 'react';
2
2
  import { Service, Options } from 'ahooks/lib/useRequest/src/types';
3
- import { ProFormOtherProps } from '../ProForm/propsType';
3
+ import { ProFormOtherType } from '../ProForm/propsType';
4
4
  export interface TreeDataProps {
5
5
  label: string;
6
6
  value: string;
@@ -74,7 +74,7 @@ export interface ProTreeModalProps {
74
74
  style?: CSSProperties;
75
75
  /** tags 集合 */
76
76
  tags?: string[];
77
- otherProps?: ProFormOtherProps;
77
+ otherProps?: ProFormOtherType;
78
78
  /** 远程请求接口 */
79
79
  useRequest?: {
80
80
  service?: Service<any, any>;
@@ -29,7 +29,7 @@ export interface ExampleModalType {
29
29
  */
30
30
  [key: string]: any;
31
31
  }
32
- export interface fieldNamesType {
32
+ export interface FieldNamesType {
33
33
  /**
34
34
  * @description 文件唯一标识字段
35
35
  * @default -
@@ -223,7 +223,7 @@ export interface ProUploadType {
223
223
  * @description 文件对象的字段映射
224
224
  * @default true
225
225
  */
226
- fieldNames?: fieldNamesType;
226
+ fieldNames?: FieldNamesType;
227
227
  /**
228
228
  * @description 删除已经上传的文件时是否二次提示
229
229
  * @default false
@@ -259,6 +259,6 @@ export interface DraggableUploadListItemType {
259
259
  }
260
260
  export type UploadFileRes = UploadFileResType;
261
261
  export type ExampleModalProps = ExampleModalType;
262
- export type fieldNamesProps = fieldNamesType;
262
+ export type fieldNamesProps = FieldNamesType;
263
263
  export type ProUploadProps = ProUploadType;
264
264
  export type DraggableUploadListItemProps = DraggableUploadListItemType;
package/lib/index.d.ts CHANGED
@@ -31,4 +31,5 @@ export * from './ProTable/propsType';
31
31
  export * from './ProEditTable/propsType';
32
32
  export * from './ProUpload/propsType';
33
33
  export * from './ProTabs/propType';
34
+ export * from './ProLayout/components/ProHeader/PropTypes';
34
35
  export * from './tokens';
package/lib/index.js CHANGED
@@ -297,6 +297,18 @@ Object.keys(_propType).forEach(function (key) {
297
297
  }
298
298
  });
299
299
  });
300
+ var _PropTypes = require("./ProLayout/components/ProHeader/PropTypes");
301
+ Object.keys(_PropTypes).forEach(function (key) {
302
+ if (key === "default" || key === "__esModule") return;
303
+ if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
304
+ if (key in exports && exports[key] === _PropTypes[key]) return;
305
+ Object.defineProperty(exports, key, {
306
+ enumerable: true,
307
+ get: function get() {
308
+ return _PropTypes[key];
309
+ }
310
+ });
311
+ });
300
312
  var _tokens = require("./tokens");
301
313
  Object.keys(_tokens).forEach(function (key) {
302
314
  if (key === "default" || key === "__esModule") return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.11.14-beta.7",
3
+ "version": "3.11.14-beta.9",
4
4
  "license": "MIT",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -1,5 +0,0 @@
1
- {
2
- "recommendations": [
3
- "kisstkondoros.vscode-codemetrics"
4
- ]
5
- }