@cloudtower/eagle 0.32.24 → 0.32.26

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.
@@ -1,37 +1,60 @@
1
1
  /// <reference types="react" />
2
2
  import { ModalProps as AntdModalProps } from "antd/lib/modal";
3
3
  export type WizardSteps = {
4
+ /** 步骤标题 */
4
5
  title: string;
6
+ /** 步骤内容渲染 */
5
7
  render: React.ReactNode;
6
8
  /**
7
- * custom prev button text
9
+ * 自定义上一步按钮文本
8
10
  */
9
11
  prevText?: string | React.ReactNode;
10
12
  /**
11
- * custom prev button event handler
13
+ * 自定义上一步按钮事件处理
12
14
  * @returns void
13
15
  */
14
16
  onPrev?: () => void;
17
+ /** 自定义确认按钮文本 */
15
18
  okText?: string | React.ReactNode;
19
+ /** 确认按钮点击事件处理 */
16
20
  onOk?: (e: React.MouseEvent<HTMLElement>) => void;
21
+ /** 是否禁用当前步骤 */
17
22
  disabled?: boolean;
18
23
  }[];
19
24
  export type ModalProps = Omit<AntdModalProps, "okType"> & {
25
+ /** 确认按钮加载状态 */
20
26
  confirmLoading?: boolean;
27
+ /** 是否全屏显示 */
21
28
  fullscreen?: boolean;
29
+ /** 错误信息展示 */
22
30
  error?: string | React.ReactNode;
31
+ /** 是否使用普通模式 */
23
32
  normal?: boolean;
33
+ /** 模态框内容 */
24
34
  children?: React.ReactNode;
35
+ /** 是否显示取消按钮 */
25
36
  showCancel?: boolean;
37
+ /** 是否显示确认按钮 */
26
38
  showOk?: boolean;
39
+ /** 自定义关闭图标 */
27
40
  closeIcon?: React.ReactNode;
41
+ /** 向导模式配置 */
28
42
  wizard?: {
43
+ /** 当前步骤 */
29
44
  step: number;
45
+ /** 步骤改变时的回调 */
30
46
  onStepChange?: (step: number) => void;
47
+ /** 步骤配置数组 */
31
48
  steps: WizardSteps;
49
+ /** 是否隐藏左侧区域 */
32
50
  hideLeft?: boolean;
51
+ /** 右侧自定义内容 */
33
52
  right?: React.ReactNode;
53
+ /** 是否销毁其他步骤内容 */
34
54
  destroyOtherStep?: boolean;
55
+ /** 是否禁用上一步操作 */
35
56
  disablePrevStep?: boolean;
36
57
  } | boolean;
58
+ /** 是否隐藏底部按钮边框 */
59
+ hideFooterButtonBorder?: boolean;
37
60
  };
@@ -1,5 +1,6 @@
1
1
  /// <reference types="react" />
2
2
  import { InputProps } from "antd/lib/input";
3
+ import { SrcType } from "../BaseIcon";
3
4
  export type SearchInputProps = Omit<InputProps, "onChange"> & {
4
5
  /**
5
6
  * 防抖延迟的时间,单位为毫秒
@@ -21,5 +22,37 @@ export type SearchInputProps = Omit<InputProps, "onChange"> & {
21
22
  * 输入内容改变时的回调函数
22
23
  */
23
24
  onChange: (value: string) => void;
25
+ /**
26
+ * 搜索的图标
27
+ */
28
+ searchIcon?: SrcType;
29
+ /**
30
+ * 上一个图标
31
+ */
32
+ prefixIcon?: SrcType;
33
+ /**
34
+ * 上一个 hover 时的图标
35
+ */
36
+ prefixHoverIcon?: SrcType;
37
+ /**
38
+ * 下一个图标
39
+ */
40
+ nextIcon?: SrcType;
41
+ /**
42
+ * 下一个 hover 时的图标
43
+ */
44
+ nextHoverIcon?: SrcType;
45
+ /**
46
+ * 清空图标
47
+ */
48
+ clearIcon?: SrcType;
49
+ /**
50
+ * 清空 hover 时的图标
51
+ */
52
+ clearHoverIcon?: SrcType;
53
+ /**
54
+ * 搜索框高度,默认为 276
55
+ */
56
+ width?: number | string;
24
57
  };
25
58
  export type SearchInputComponentType = React.FC<SearchInputProps>;