@cloudtower/eagle 0.32.28 → 0.32.30
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/Show/index.js +20 -0
- package/dist/cjs/index.js +2 -0
- package/dist/cjs/stats1.html +1 -1
- package/dist/components.css +3031 -3032
- package/dist/esm/coreX/Show/index.js +14 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/stats1.html +1 -1
- package/dist/src/coreX/Show/index.d.ts +3 -0
- package/dist/src/coreX/Show/show.type.d.ts +13 -0
- package/dist/src/coreX/index.d.ts +1 -0
- package/dist/stories/docs/coreX/Show.stories.d.ts +31 -0
- package/dist/style.css +2302 -2302
- package/package.json +4 -4
|
@@ -20,6 +20,7 @@ export * from "./SwitchWithText";
|
|
|
20
20
|
export * from "./TabMenu";
|
|
21
21
|
export * from "./UnitWithChart";
|
|
22
22
|
export * from "./CircleLoading";
|
|
23
|
+
export * from "./Show";
|
|
23
24
|
export { default as BarChart } from "./BarChart";
|
|
24
25
|
export { default as BatchOperation } from "./BatchOperation";
|
|
25
26
|
export { default as ChartWithTooltip } from "./ChartWithTooltip";
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { StoryObj } from "@storybook/react";
|
|
3
|
+
import { Show } from "../../../src/coreX/Show";
|
|
4
|
+
/**
|
|
5
|
+
* * Show 条件渲染组件
|
|
6
|
+
* * 根据条件决定显示内容还是备用内容
|
|
7
|
+
* * 提供了一种声明式的方式来替代 JSX 中的条件渲染
|
|
8
|
+
* * 支持布尔值条件和函数条件
|
|
9
|
+
*/
|
|
10
|
+
declare const meta: {
|
|
11
|
+
component: React.FC<import("../../../src/coreX/Show/show.type").ShowProps>;
|
|
12
|
+
title: string;
|
|
13
|
+
};
|
|
14
|
+
export default meta;
|
|
15
|
+
type Story = StoryObj<typeof Show>;
|
|
16
|
+
export declare const BasicTrue: Story;
|
|
17
|
+
export declare const BasicFalse: Story;
|
|
18
|
+
export declare const FunctionCondition: Story;
|
|
19
|
+
export declare const NoFallback: Story;
|
|
20
|
+
export declare const Interactive: {
|
|
21
|
+
name: string;
|
|
22
|
+
render: () => React.JSX.Element;
|
|
23
|
+
};
|
|
24
|
+
export declare const NestedShows: {
|
|
25
|
+
name: string;
|
|
26
|
+
render: () => React.JSX.Element;
|
|
27
|
+
};
|
|
28
|
+
export declare const CombinedWithOtherComponents: {
|
|
29
|
+
name: string;
|
|
30
|
+
render: () => React.JSX.Element;
|
|
31
|
+
};
|