@cloudtower/eagle 0.34.8 → 0.34.10
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.
- package/dist/cjs/coreX/BarChart/index.js +5 -2
- package/dist/cjs/coreX/CheckPointList/index.js +39 -13
- package/dist/cjs/coreX/Dialogs/RejectDialog/RejectDialog.js +28 -8
- package/dist/cjs/stats1.html +1 -1
- package/dist/components.css +2578 -2560
- package/dist/esm/coreX/BarChart/index.js +4 -2
- package/dist/esm/coreX/CheckPointList/index.js +37 -12
- package/dist/esm/coreX/Dialogs/RejectDialog/RejectDialog.js +28 -8
- package/dist/esm/stats1.html +1 -1
- package/dist/linaria.merged.scss +2929 -2904
- package/dist/src/coreX/BarChart/index.d.ts +1 -0
- package/dist/src/coreX/CheckPointList/checkpointlist.type.d.ts +17 -1
- package/dist/src/coreX/Dialogs/RejectDialog/RejectDialog.type.d.ts +5 -0
- package/dist/stories/docs/core/MediumDialog.stories.d.ts +4 -0
- package/dist/stories/docs/coreX/CheckPointList.stories.d.ts +1 -1
- package/dist/stories/docs/coreX/Dialogs/RejectDialog.stories.d.ts +8 -0
- package/dist/style.css +2578 -2560
- package/package.json +4 -4
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { AlertProps } from "../../core/Alert";
|
|
2
|
+
import { ButtonProps } from "../../core/Button";
|
|
3
|
+
import { IconProps } from "../../core/Icon";
|
|
2
4
|
import { TagProps } from "../../core/Tag";
|
|
5
|
+
import { LinkProps } from "../../core/Link";
|
|
3
6
|
import React from "react";
|
|
4
7
|
/**
|
|
5
8
|
* 检查点项的属性
|
|
@@ -30,9 +33,20 @@ import React from "react";
|
|
|
30
33
|
* }
|
|
31
34
|
* }
|
|
32
35
|
*/
|
|
36
|
+
export type CheckPointItemAction = {
|
|
37
|
+
type: "button";
|
|
38
|
+
props: ButtonProps;
|
|
39
|
+
} | {
|
|
40
|
+
type: "link";
|
|
41
|
+
props: LinkProps;
|
|
42
|
+
} | {
|
|
43
|
+
type: "icon";
|
|
44
|
+
props: IconProps;
|
|
45
|
+
};
|
|
33
46
|
export interface CheckPointItem {
|
|
34
47
|
description: React.ReactNode;
|
|
35
|
-
status: "success" | "failed" | "loading" | "warning";
|
|
48
|
+
status: "success" | "failed" | "loading" | "warning" | "idle";
|
|
49
|
+
actions?: CheckPointItemAction[];
|
|
36
50
|
tagProps?: TagProps;
|
|
37
51
|
alertProps?: AlertProps;
|
|
38
52
|
}
|
|
@@ -47,6 +61,7 @@ export interface CheckPointItem {
|
|
|
47
61
|
* @property {string} [emptyTextClassName] - 空状态文本的自定义类名
|
|
48
62
|
* @property {(emptyText: string | React.ReactNode) => React.ReactNode} [emptyRender] - 自定义渲染空状态的函数
|
|
49
63
|
* @property {boolean} [defaultChecked] - 开关的默认选中状态,决定是否默认只显示未通过的检查项
|
|
64
|
+
* @property {boolean} [border] - 是否显示边框, 默认为显示
|
|
50
65
|
* @example
|
|
51
66
|
* {
|
|
52
67
|
* title: "系统检查项",
|
|
@@ -86,6 +101,7 @@ export interface CheckPointListProps {
|
|
|
86
101
|
title: string | React.ReactNode;
|
|
87
102
|
switchText?: string;
|
|
88
103
|
className?: string;
|
|
104
|
+
border?: boolean;
|
|
89
105
|
}
|
|
90
106
|
/**
|
|
91
107
|
* CheckPointItem 组件的属性
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
+
import type { ButtonProps } from "../../../core/Button";
|
|
2
3
|
export type RejectReason = string;
|
|
3
4
|
export type RejectContent = Record<string, RejectReason[]>;
|
|
4
5
|
export declare enum RejectDialogType {
|
|
@@ -10,12 +11,16 @@ export declare enum RejectDialogType {
|
|
|
10
11
|
interface BaseRejectDialogProps {
|
|
11
12
|
/** 弹窗标题 */
|
|
12
13
|
title: React.ReactNode;
|
|
14
|
+
/** 在描述文本之前的内容 */
|
|
15
|
+
beforeDescription?: React.ReactNode;
|
|
13
16
|
/** 补充描述文本 */
|
|
14
17
|
description?: React.ReactNode;
|
|
15
18
|
/** 取消按钮文案 */
|
|
16
19
|
cancelText?: string;
|
|
17
20
|
/** 点击取消按钮或关闭弹窗回调 */
|
|
18
21
|
onCancel?: (popModal: () => void) => void;
|
|
22
|
+
/** 确认按钮属性 */
|
|
23
|
+
okButtonProps?: ButtonProps;
|
|
19
24
|
/** 弹窗宽度 */
|
|
20
25
|
width?: number;
|
|
21
26
|
/** 自定义类名 */
|
|
@@ -12,9 +12,11 @@ declare const meta: {
|
|
|
12
12
|
type: RejectDialogType.Single;
|
|
13
13
|
content: string | string[];
|
|
14
14
|
title: React.ReactNode;
|
|
15
|
+
beforeDescription?: React.ReactNode;
|
|
15
16
|
description?: React.ReactNode;
|
|
16
17
|
cancelText?: string | undefined;
|
|
17
18
|
onCancel?: ((popModal: () => void) => void) | undefined;
|
|
19
|
+
okButtonProps?: import("../../../../src/core").ButtonProps | undefined;
|
|
18
20
|
width?: number | undefined;
|
|
19
21
|
className?: string | undefined;
|
|
20
22
|
footerClassName?: string | undefined;
|
|
@@ -25,9 +27,11 @@ declare const meta: {
|
|
|
25
27
|
content: import("../../../../src/coreX").RejectContent;
|
|
26
28
|
resourceIcon?: React.ReactNode;
|
|
27
29
|
title: React.ReactNode;
|
|
30
|
+
beforeDescription?: React.ReactNode;
|
|
28
31
|
description?: React.ReactNode;
|
|
29
32
|
cancelText?: string | undefined;
|
|
30
33
|
onCancel?: ((popModal: () => void) => void) | undefined;
|
|
34
|
+
okButtonProps?: import("../../../../src/core").ButtonProps | undefined;
|
|
31
35
|
width?: number | undefined;
|
|
32
36
|
className?: string | undefined;
|
|
33
37
|
footerClassName?: string | undefined;
|
|
@@ -41,9 +45,11 @@ declare const meta: {
|
|
|
41
45
|
okText?: string | undefined;
|
|
42
46
|
onOk?: ((popModal: () => void) => void) | undefined;
|
|
43
47
|
title: React.ReactNode;
|
|
48
|
+
beforeDescription?: React.ReactNode;
|
|
44
49
|
description?: React.ReactNode;
|
|
45
50
|
cancelText?: string | undefined;
|
|
46
51
|
onCancel?: ((popModal: () => void) => void) | undefined;
|
|
52
|
+
okButtonProps?: import("../../../../src/core").ButtonProps | undefined;
|
|
47
53
|
width?: number | undefined;
|
|
48
54
|
className?: string | undefined;
|
|
49
55
|
footerClassName?: string | undefined;
|
|
@@ -53,9 +59,11 @@ declare const meta: {
|
|
|
53
59
|
customContent: React.ReactNode;
|
|
54
60
|
okText?: string | undefined;
|
|
55
61
|
title: React.ReactNode;
|
|
62
|
+
beforeDescription?: React.ReactNode;
|
|
56
63
|
description?: React.ReactNode;
|
|
57
64
|
cancelText?: string | undefined;
|
|
58
65
|
onCancel?: ((popModal: () => void) => void) | undefined;
|
|
66
|
+
okButtonProps?: import("../../../../src/core").ButtonProps | undefined;
|
|
59
67
|
width?: number | undefined;
|
|
60
68
|
className?: string | undefined;
|
|
61
69
|
footerClassName?: string | undefined;
|