@cloudtower/eagle 0.34.9 → 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/CheckPointList/index.js +39 -13
- package/dist/cjs/stats1.html +1 -1
- package/dist/components.css +2384 -2370
- package/dist/esm/coreX/CheckPointList/index.js +37 -12
- package/dist/esm/stats1.html +1 -1
- package/dist/linaria.merged.scss +2240 -2219
- package/dist/src/coreX/CheckPointList/checkpointlist.type.d.ts +17 -1
- package/dist/stories/docs/core/MediumDialog.stories.d.ts +4 -0
- package/dist/stories/docs/coreX/CheckPointList.stories.d.ts +1 -1
- package/dist/style.css +2384 -2370
- 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 组件的属性
|