@cloudtower/eagle 0.32.45 → 0.32.47
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/core/Legend/index.js +128 -0
- package/dist/cjs/core/index.js +9 -9
- package/dist/cjs/coreX/CheckPointList/index.js +4 -3
- package/dist/cjs/index.js +187 -183
- package/dist/cjs/stats1.html +1 -1
- package/dist/components.css +3022 -2941
- package/dist/esm/core/Legend/index.js +117 -0
- package/dist/esm/coreX/CheckPointList/index.js +4 -3
- package/dist/esm/index.js +1 -0
- package/dist/esm/stats1.html +1 -1
- package/dist/src/core/Legend/index.d.ts +1 -1
- package/dist/src/core/index.d.ts +2 -0
- package/dist/src/coreX/CheckPointList/checkpointlist.type.d.ts +4 -1
- package/dist/stories/docs/coreX/CheckPointList.stories.d.ts +10 -0
- package/dist/style.css +2927 -2859
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from "react";
|
|
2
2
|
import { LegendColor, LegendComponentType, LegendShapes } from "./legend.type";
|
|
3
3
|
export declare const LegendPresetColors: LegendColor[];
|
|
4
|
-
export declare const
|
|
4
|
+
export declare const LegendIcon: React.FC<{
|
|
5
5
|
shape: LegendShapes;
|
|
6
6
|
}>;
|
|
7
7
|
declare const Legend: LegendComponentType;
|
package/dist/src/core/index.d.ts
CHANGED
|
@@ -45,6 +45,7 @@ export * from "./LegacySelect";
|
|
|
45
45
|
export * from "./LineChart";
|
|
46
46
|
export * from "./LineChart";
|
|
47
47
|
export * from "./Link";
|
|
48
|
+
export * from "./Legend";
|
|
48
49
|
export * from "./Loading";
|
|
49
50
|
export * from "./message";
|
|
50
51
|
export * from "./message-group";
|
|
@@ -146,6 +147,7 @@ export { default as LegacySelect } from "./LegacySelect";
|
|
|
146
147
|
export { default as LineChart } from "./LineChart";
|
|
147
148
|
export { default as Link } from "./Link";
|
|
148
149
|
export { default as Loading } from "./Loading";
|
|
150
|
+
export { default as Legend } from "./Legend";
|
|
149
151
|
export { default as message } from "./message";
|
|
150
152
|
export { default as Metric } from "./Metric";
|
|
151
153
|
export { default as Modal } from "./Modal";
|
|
@@ -46,6 +46,7 @@ export interface CheckPointItem {
|
|
|
46
46
|
* @property {string | React.ReactNode} [emptyText] - 列表为空时显示的文本
|
|
47
47
|
* @property {string} [emptyTextClassName] - 空状态文本的自定义类名
|
|
48
48
|
* @property {(emptyText: string | React.ReactNode) => React.ReactNode} [emptyRender] - 自定义渲染空状态的函数
|
|
49
|
+
* @property {boolean} [defaultChecked] - 开关的默认选中状态,决定是否默认只显示未通过的检查项
|
|
49
50
|
* @example
|
|
50
51
|
* {
|
|
51
52
|
* title: "系统检查项",
|
|
@@ -63,7 +64,8 @@ export interface CheckPointItem {
|
|
|
63
64
|
* }
|
|
64
65
|
* ],
|
|
65
66
|
* showSwitchControl: true,
|
|
66
|
-
* switchText: "只显示失败项"
|
|
67
|
+
* switchText: "只显示失败项",
|
|
68
|
+
* defaultChecked: true
|
|
67
69
|
* }
|
|
68
70
|
* @example
|
|
69
71
|
* {
|
|
@@ -79,6 +81,7 @@ export interface CheckPointListProps {
|
|
|
79
81
|
emptyTextClassName?: string;
|
|
80
82
|
emptyRender?: (emptyText: string | React.ReactNode) => React.ReactNode;
|
|
81
83
|
showSwitchControl?: boolean;
|
|
84
|
+
defaultChecked?: boolean;
|
|
82
85
|
onClickSwitch?: (checked: boolean) => void;
|
|
83
86
|
title: string | React.ReactNode;
|
|
84
87
|
switchText?: string;
|
|
@@ -65,3 +65,13 @@ export declare const CustomEmptyRender: Story;
|
|
|
65
65
|
* 展示如何在描述中使用复杂的ReactNode内容
|
|
66
66
|
*/
|
|
67
67
|
export declare const ComplexDescription: Story;
|
|
68
|
+
/**
|
|
69
|
+
* 默认开启筛选
|
|
70
|
+
* 展示如何设置默认只显示未通过的检查项
|
|
71
|
+
*/
|
|
72
|
+
export declare const DefaultFilterEnabled: Story;
|
|
73
|
+
/**
|
|
74
|
+
* 自定义筛选回调函数
|
|
75
|
+
* 展示如何监听筛选状态变化
|
|
76
|
+
*/
|
|
77
|
+
export declare const CustomSwitchCallback: Story;
|