@cloudtower/eagle 0.33.3 → 0.33.5
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/__test__/mockLineChart.d.ts +4 -0
- package/dist/cjs/core/Button/index.js +1 -2
- package/dist/cjs/core/ConfigProvider/index.js +6 -6
- package/dist/cjs/core/LineChart/LineChartActions.js +52 -0
- package/dist/cjs/core/LineChart/LineChartLegend.js +101 -0
- package/dist/cjs/core/LineChart/LineChartToolBar.js +56 -0
- package/dist/cjs/core/LineChart/Pointer.js +45 -0
- package/dist/cjs/core/LineChart/RenderChart.js +304 -0
- package/dist/cjs/core/LineChart/TooltipFormatter.js +70 -0
- package/dist/cjs/core/LineChart/index.js +66 -0
- package/dist/cjs/core/LineChart/styled.js +35 -0
- package/dist/cjs/core/LineChart/type.js +30 -0
- package/dist/cjs/core/LineChart/utils.js +394 -0
- package/dist/cjs/core/Loading/index.js +2 -2
- package/dist/cjs/core/Progress/progress.widgets.js +1 -1
- package/dist/cjs/core/Second/index.js +12 -4
- package/dist/cjs/core/Timeline/Timeline.widget.js +4 -4
- package/dist/cjs/core/Timeline/index.js +4 -4
- package/dist/cjs/core/index.js +9 -9
- package/dist/cjs/coreX/CheckPointList/index.js +3 -3
- package/dist/cjs/coreX/CircleLoading/index.js +4 -4
- package/dist/cjs/coreX/DateRangePicker/Calendar.js +1 -1
- package/dist/cjs/coreX/Dialogs/DeleteDialog/DeleteDialog.js +47 -0
- package/dist/cjs/coreX/Dialogs/RejectDialog/RejectDialog.js +87 -0
- package/dist/cjs/coreX/Dialogs/RejectDialog/RejectDialog.type.js +11 -0
- package/dist/cjs/coreX/Dialogs/SmallDialog.js +86 -0
- package/dist/cjs/index.js +170 -133
- package/dist/cjs/stats1.html +1 -1
- package/dist/cjs/utils/constants.js +1 -1
- package/dist/cjs/utils/tower.js +81 -0
- package/dist/components.css +3328 -2995
- package/dist/esm/core/Button/index.js +1 -2
- package/dist/esm/core/ConfigProvider/index.js +4 -4
- package/dist/esm/core/LineChart/LineChartActions.js +46 -0
- package/dist/esm/core/LineChart/LineChartLegend.js +91 -0
- package/dist/esm/core/LineChart/LineChartToolBar.js +50 -0
- package/dist/esm/core/LineChart/Pointer.js +38 -0
- package/dist/esm/core/LineChart/RenderChart.js +296 -0
- package/dist/esm/core/LineChart/TooltipFormatter.js +63 -0
- package/dist/esm/core/LineChart/index.js +57 -0
- package/dist/esm/core/LineChart/styled.js +25 -0
- package/dist/esm/core/LineChart/type.js +26 -0
- package/dist/esm/core/LineChart/utils.js +369 -0
- package/dist/esm/core/Loading/index.js +1 -1
- package/dist/esm/core/Progress/progress.widgets.js +1 -1
- package/dist/esm/core/Second/index.js +11 -3
- package/dist/esm/core/Timeline/Timeline.widget.js +3 -3
- package/dist/esm/core/Timeline/index.js +3 -3
- package/dist/esm/coreX/CheckPointList/index.js +3 -3
- package/dist/esm/coreX/CircleLoading/index.js +3 -3
- package/dist/esm/coreX/DateRangePicker/Calendar.js +1 -1
- package/dist/esm/coreX/Dialogs/DeleteDialog/DeleteDialog.js +41 -0
- package/dist/esm/coreX/Dialogs/RejectDialog/RejectDialog.js +81 -0
- package/dist/esm/coreX/Dialogs/RejectDialog/RejectDialog.type.js +9 -0
- package/dist/esm/coreX/Dialogs/SmallDialog.js +80 -0
- package/dist/esm/index.js +10 -2
- package/dist/esm/stats1.html +1 -1
- package/dist/esm/utils/constants.js +1 -1
- package/dist/esm/utils/tower.js +77 -1
- package/dist/src/antd.d.ts +1 -1
- package/dist/src/core/ConfigProvider/index.d.ts +2 -2
- package/dist/src/core/LineChart/LineChartActions.d.ts +7 -0
- package/dist/src/core/LineChart/LineChartLegend.d.ts +18 -0
- package/dist/src/core/LineChart/LineChartToolBar.d.ts +20 -0
- package/dist/src/core/LineChart/Pointer.d.ts +6 -0
- package/dist/src/core/LineChart/RenderChart.d.ts +45 -0
- package/dist/src/core/LineChart/TooltipFormatter.d.ts +10 -0
- package/dist/src/core/LineChart/__test__/h5_css.test.d.ts +1 -0
- package/dist/src/core/LineChart/index.d.ts +8 -0
- package/dist/src/core/LineChart/styled.d.ts +12 -0
- package/dist/src/core/LineChart/type.d.ts +191 -0
- package/dist/src/core/LineChart/utils.d.ts +56 -0
- package/dist/src/core/Metric/metric.d.ts +1 -1
- package/dist/src/core/Timeline/Timeline.type.d.ts +2 -2
- package/dist/src/core/Units/units.type.d.ts +66 -0
- package/dist/src/core/index.d.ts +4 -1
- package/dist/src/coreX/CheckPointList/index.d.ts +1 -1
- package/dist/src/coreX/Dialogs/DeleteDialog/DeleteDialog.d.ts +3 -0
- package/dist/src/coreX/Dialogs/DeleteDialog/DeleteDialog.type.d.ts +19 -0
- package/dist/src/coreX/Dialogs/DeleteDialog/index.d.ts +2 -0
- package/dist/src/coreX/Dialogs/RejectDialog/RejectDialog.d.ts +3 -0
- package/dist/src/coreX/Dialogs/RejectDialog/RejectDialog.type.d.ts +59 -0
- package/dist/src/coreX/Dialogs/RejectDialog/index.d.ts +2 -0
- package/dist/src/coreX/Dialogs/SmallDialog.d.ts +31 -0
- package/dist/src/coreX/Dialogs/index.d.ts +3 -0
- package/dist/src/coreX/index.d.ts +2 -1
- package/dist/src/utils/tower.d.ts +12 -0
- package/dist/stories/docs/core/LineChart.stories.d.ts +16 -0
- package/dist/stories/docs/core/Second.stories.d.ts +57 -22
- package/dist/stories/docs/core/Timeline.stories.d.ts +2 -2
- package/dist/stories/docs/coreX/CheckPointList.stories.d.ts +1 -1
- package/dist/stories/docs/coreX/Dialogs/DeleteDialog.stories.d.ts +37 -0
- package/dist/stories/docs/coreX/Dialogs/RejectDialog.stories.d.ts +89 -0
- package/dist/stories/docs/coreX/Show.stories.d.ts +2 -2
- package/dist/style.css +3192 -2897
- package/dist/variables.scss +2 -0
- package/package.json +5 -6
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export type RejectReason = string;
|
|
3
|
+
export type RejectContent = Record<string, RejectReason[]>;
|
|
4
|
+
export declare enum RejectDialogType {
|
|
5
|
+
Single = "RejectSingle",
|
|
6
|
+
All = "RejectAll",
|
|
7
|
+
Part = "RejectPart",
|
|
8
|
+
Custom = "RejectCustom"
|
|
9
|
+
}
|
|
10
|
+
interface BaseRejectDialogProps {
|
|
11
|
+
/** 弹窗标题 */
|
|
12
|
+
title: React.ReactNode;
|
|
13
|
+
/** 补充描述文本 */
|
|
14
|
+
description?: React.ReactNode;
|
|
15
|
+
/** 取消按钮文案 */
|
|
16
|
+
cancelText?: string;
|
|
17
|
+
/** 点击取消按钮或关闭弹窗回调 */
|
|
18
|
+
onCancel?: (popModal: () => void) => void;
|
|
19
|
+
/** 弹窗宽度 */
|
|
20
|
+
width?: number;
|
|
21
|
+
/** 自定义类名 */
|
|
22
|
+
className?: string;
|
|
23
|
+
/** 自定义footer类名 */
|
|
24
|
+
footerClassName?: string;
|
|
25
|
+
}
|
|
26
|
+
interface SingleRejectDialogProps extends BaseRejectDialogProps {
|
|
27
|
+
type: RejectDialogType.Single;
|
|
28
|
+
/** 拒绝原因,可以是单个字符串或字符串数组 */
|
|
29
|
+
content: string | string[];
|
|
30
|
+
}
|
|
31
|
+
interface MultiAllRejectDialogProps extends BaseRejectDialogProps {
|
|
32
|
+
type: RejectDialogType.All;
|
|
33
|
+
/** 灰色的进一步描述 */
|
|
34
|
+
secondaryDesc?: React.ReactNode;
|
|
35
|
+
/** 多个对象的拒绝原因,格式为 { [对象名]: string[] } */
|
|
36
|
+
content: RejectContent;
|
|
37
|
+
}
|
|
38
|
+
interface MultiPartialRejectDialogProps extends BaseRejectDialogProps {
|
|
39
|
+
type: RejectDialogType.Part;
|
|
40
|
+
/** 灰色的进一步描述 */
|
|
41
|
+
secondaryDesc?: React.ReactNode;
|
|
42
|
+
/** 多个对象的拒绝原因,格式为 { [对象名]: string[] } */
|
|
43
|
+
content: Record<string, string[]>;
|
|
44
|
+
/** 部分拒绝时的额外说明 */
|
|
45
|
+
partialDescription: React.ReactNode;
|
|
46
|
+
/** 确认按钮文案 */
|
|
47
|
+
okText?: string;
|
|
48
|
+
/** 点击确认按钮回调 */
|
|
49
|
+
onOk?: (popModal: () => void) => void;
|
|
50
|
+
}
|
|
51
|
+
interface CustomRejectDialogProps extends BaseRejectDialogProps {
|
|
52
|
+
type: RejectDialogType.Custom;
|
|
53
|
+
/** 自定义内容 */
|
|
54
|
+
customContent: React.ReactNode;
|
|
55
|
+
/** 确认按钮文案 */
|
|
56
|
+
okText?: string;
|
|
57
|
+
}
|
|
58
|
+
export type RejectDialogProps = SingleRejectDialogProps | MultiAllRejectDialogProps | MultiPartialRejectDialogProps | CustomRejectDialogProps;
|
|
59
|
+
export {};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ButtonProps } from "antd/lib/button";
|
|
2
|
+
import React from "react";
|
|
3
|
+
interface SmallDialogProps {
|
|
4
|
+
/** 弹窗标题 */
|
|
5
|
+
title: React.ReactNode;
|
|
6
|
+
/** 取消按钮文案 */
|
|
7
|
+
cancelText?: string;
|
|
8
|
+
/** 确认按钮文案 */
|
|
9
|
+
okText?: string;
|
|
10
|
+
/** 是否显示确认按钮 */
|
|
11
|
+
showOk?: boolean;
|
|
12
|
+
/** 点击确认按钮回调 */
|
|
13
|
+
onOk?: (popModal: () => void) => void;
|
|
14
|
+
/** 点击取消按钮或关闭弹窗回调 */
|
|
15
|
+
onCancel?: (popModal: () => void) => void;
|
|
16
|
+
/** 是否可点击遮罩层关闭 */
|
|
17
|
+
maskClosable?: boolean;
|
|
18
|
+
/** 是否显示右上角关闭按钮 */
|
|
19
|
+
closable?: boolean;
|
|
20
|
+
/** 自定义类名 */
|
|
21
|
+
className?: string;
|
|
22
|
+
/** 自定义footer类名 */
|
|
23
|
+
footerClassName?: string;
|
|
24
|
+
/** 确认按钮属性,优先使用 okText */
|
|
25
|
+
okButtonProps?: ButtonProps;
|
|
26
|
+
/** 取消按钮属性,优先使用 cancelText */
|
|
27
|
+
cancelButtonProps?: ButtonProps;
|
|
28
|
+
children?: React.ReactNode;
|
|
29
|
+
}
|
|
30
|
+
export declare const SmallDialog: React.FC<SmallDialogProps>;
|
|
31
|
+
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./BarChart";
|
|
2
2
|
export * from "./BatchOperation";
|
|
3
3
|
export * from "./ChartWithTooltip";
|
|
4
|
+
export * from "./CheckPointList";
|
|
4
5
|
export * from "./CircleLoading";
|
|
5
6
|
export * from "./common";
|
|
6
7
|
export * from "./Counting";
|
|
@@ -8,6 +9,7 @@ export * from "./CronCalendar";
|
|
|
8
9
|
export * from "./CronPlan";
|
|
9
10
|
export * from "./DateRangePicker";
|
|
10
11
|
export * from "./DeprecatedDonutChart";
|
|
12
|
+
export * from "./Dialogs";
|
|
11
13
|
export * from "./DropdownTransition";
|
|
12
14
|
export * from "./GoBackButton";
|
|
13
15
|
export * from "./I18nNameTag";
|
|
@@ -22,7 +24,6 @@ export * from "./SummaryTable";
|
|
|
22
24
|
export * from "./SwitchWithText";
|
|
23
25
|
export * from "./TabMenu";
|
|
24
26
|
export * from "./UnitWithChart";
|
|
25
|
-
export * from "./CheckPointList";
|
|
26
27
|
export { default as BarChart } from "./BarChart";
|
|
27
28
|
export { default as BatchOperation } from "./BatchOperation";
|
|
28
29
|
export { default as ChartWithTooltip } from "./ChartWithTooltip";
|
|
@@ -64,4 +64,16 @@ export declare function formatSpeed(input: number, decimals?: number): {
|
|
|
64
64
|
value: number;
|
|
65
65
|
unit: string;
|
|
66
66
|
};
|
|
67
|
+
export declare const K = 1000;
|
|
68
|
+
export declare const M: number;
|
|
69
|
+
export declare const G: number;
|
|
70
|
+
export declare const T: number;
|
|
71
|
+
export declare const P: number;
|
|
72
|
+
export declare function formatCount(input: number): FormattedResult;
|
|
73
|
+
export declare function formatNanoSecond(input: number): FormattedResult;
|
|
74
|
+
export declare function formatTemperature(input: number, decimals?: number): FormattedResult;
|
|
75
|
+
export declare const unitRules: {
|
|
76
|
+
divider: number[];
|
|
77
|
+
unit: string[];
|
|
78
|
+
}[];
|
|
67
79
|
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src/core").LineChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
3
|
+
export default _default;
|
|
4
|
+
export declare const Primary: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src/core").LineChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export declare const PrimaryWithoutRight: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src/core").LineChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
6
|
+
export declare const PrimaryWithLongLabel: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src/core").LineChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
7
|
+
export declare const PrimaryWithSingleYAxis: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src/core").LineChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
8
|
+
export declare const PrimaryWithXAxisSm: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src/core").LineChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
9
|
+
export declare const PrimaryWithXAxisMd: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src/core").LineChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
10
|
+
export declare const PrimaryWithXAxisLg: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src/core").LineChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
11
|
+
export declare const Secondary: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src/core").LineChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export declare const EmptyDefault: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src/core").LineChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
13
|
+
export declare const EmptyWithCustomText: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src/core").LineChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
14
|
+
export declare const DifferentUnits: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src/core").LineChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
15
|
+
export declare const ZeroDataChart: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src/core").LineChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
16
|
+
export declare const DynamicTimeRange: import("@storybook/types").AnnotatedStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, import("../../../src/core").LineChartProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,22 +1,57 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import Second from "../../../src/core/Second";
|
|
2
|
+
import { StoryObj } from "@storybook/react";
|
|
3
|
+
/**
|
|
4
|
+
* * Second 组件
|
|
5
|
+
* * 用于展示秒数,支持不同的展示形式
|
|
6
|
+
* * 提供标准、缩写和自定义空值展示等功能
|
|
7
|
+
* * 继承自基础的 Units 系列组件
|
|
8
|
+
*/
|
|
9
|
+
declare const meta: {
|
|
10
|
+
title: string;
|
|
11
|
+
component: import("../../../src").UnitFn;
|
|
12
|
+
parameters: {
|
|
13
|
+
docs: {
|
|
14
|
+
description: {
|
|
15
|
+
component: string;
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
tags: string[];
|
|
20
|
+
};
|
|
21
|
+
export default meta;
|
|
22
|
+
type Story = StoryObj<typeof Second>;
|
|
23
|
+
/**
|
|
24
|
+
* 基础秒数展示
|
|
25
|
+
* 展示最基本的秒数,不做任何特殊处理
|
|
26
|
+
*/
|
|
27
|
+
export declare const Basic: Story;
|
|
28
|
+
/**
|
|
29
|
+
* 缩写形式展示
|
|
30
|
+
* 当需要节省空间时,可以使用缩写形式展示秒数
|
|
31
|
+
*/
|
|
32
|
+
export declare const Abbreviated: Story;
|
|
33
|
+
/**
|
|
34
|
+
* 精确小数位展示
|
|
35
|
+
* 可以指定保留的小数位数,提高精确度
|
|
36
|
+
*/
|
|
37
|
+
export declare const WithDecimals: Story;
|
|
38
|
+
/**
|
|
39
|
+
* 零值不带单位
|
|
40
|
+
* 当值为0时,可以选择不显示单位
|
|
41
|
+
*/
|
|
42
|
+
export declare const ZeroWithoutUnit: Story;
|
|
43
|
+
/**
|
|
44
|
+
* 大数值展示
|
|
45
|
+
* 展示较大的秒数
|
|
46
|
+
*/
|
|
47
|
+
export declare const LargeValue: Story;
|
|
48
|
+
/**
|
|
49
|
+
* 自定义空值展示
|
|
50
|
+
* 当没有有效值时的自定义展示
|
|
51
|
+
*/
|
|
52
|
+
export declare const CustomEmpty: Story;
|
|
53
|
+
/**
|
|
54
|
+
* 自定义样式
|
|
55
|
+
* 可以通过自定义类名来调整展示样式
|
|
56
|
+
*/
|
|
57
|
+
export declare const CustomStyle: Story;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
/**
|
|
3
|
+
* * 删除确认对话框组件
|
|
4
|
+
* * 用于需要用户二次确认的删除操作
|
|
5
|
+
* * 确认按钮使用危险样式以突出操作风险
|
|
6
|
+
*/
|
|
7
|
+
declare const meta: {
|
|
8
|
+
title: "CoreX/Dialog/DeleteDialog | 删除确认对话框";
|
|
9
|
+
component: React.FC<import("../../../../src/coreX").DeleteDialogProps>;
|
|
10
|
+
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, {
|
|
11
|
+
title: React.ReactNode;
|
|
12
|
+
description?: React.ReactNode;
|
|
13
|
+
secondaryDesc?: React.ReactNode;
|
|
14
|
+
cancelText?: string | undefined;
|
|
15
|
+
okText?: string | undefined;
|
|
16
|
+
onOk?: ((popModal: () => void) => void) | undefined;
|
|
17
|
+
onCancel?: ((popModal: () => void) => void) | undefined;
|
|
18
|
+
className?: string | undefined;
|
|
19
|
+
children?: React.ReactNode;
|
|
20
|
+
}>) => React.JSX.Element)[];
|
|
21
|
+
args: {};
|
|
22
|
+
parameters: {
|
|
23
|
+
design: {
|
|
24
|
+
type: string;
|
|
25
|
+
url: string;
|
|
26
|
+
};
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
export default meta;
|
|
30
|
+
/**
|
|
31
|
+
* 基础用法 - 删除单个项目
|
|
32
|
+
*/
|
|
33
|
+
export declare const Basic: () => React.JSX.Element;
|
|
34
|
+
/**
|
|
35
|
+
* 自定义按钮文案
|
|
36
|
+
*/
|
|
37
|
+
export declare const CustomButtonText: () => React.JSX.Element;
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import { RejectDialogType } from "../../../../src/coreX";
|
|
2
|
+
import React from "react";
|
|
3
|
+
/**
|
|
4
|
+
* * 回绝对话框组件
|
|
5
|
+
* * 用于展示操作被拒绝的反馈信息
|
|
6
|
+
* * 支持四种模式:单个对象拒绝、批量全部拒绝、批量部分拒绝、自定义内容
|
|
7
|
+
*/
|
|
8
|
+
declare const meta: {
|
|
9
|
+
title: "CoreX/Dialog/RejectDialog | 回绝对话框";
|
|
10
|
+
component: React.FC<import("../../../../src/coreX").RejectDialogProps>;
|
|
11
|
+
decorators: ((Story: import("@storybook/types").PartialStoryFn<import("@storybook/react/dist/types-0fc72a6d").R, {
|
|
12
|
+
type: RejectDialogType.Single;
|
|
13
|
+
content: string | string[];
|
|
14
|
+
title: React.ReactNode;
|
|
15
|
+
description?: React.ReactNode;
|
|
16
|
+
cancelText?: string | undefined;
|
|
17
|
+
onCancel?: ((popModal: () => void) => void) | undefined;
|
|
18
|
+
width?: number | undefined;
|
|
19
|
+
className?: string | undefined;
|
|
20
|
+
footerClassName?: string | undefined;
|
|
21
|
+
children?: React.ReactNode;
|
|
22
|
+
} | {
|
|
23
|
+
type: RejectDialogType.All;
|
|
24
|
+
secondaryDesc?: React.ReactNode;
|
|
25
|
+
content: import("../../../../src/coreX").RejectContent;
|
|
26
|
+
title: React.ReactNode;
|
|
27
|
+
description?: React.ReactNode;
|
|
28
|
+
cancelText?: string | undefined;
|
|
29
|
+
onCancel?: ((popModal: () => void) => void) | undefined;
|
|
30
|
+
width?: number | undefined;
|
|
31
|
+
className?: string | undefined;
|
|
32
|
+
footerClassName?: string | undefined;
|
|
33
|
+
children?: React.ReactNode;
|
|
34
|
+
} | {
|
|
35
|
+
type: RejectDialogType.Part;
|
|
36
|
+
secondaryDesc?: React.ReactNode;
|
|
37
|
+
content: Record<string, string[]>;
|
|
38
|
+
partialDescription: React.ReactNode;
|
|
39
|
+
okText?: string | undefined;
|
|
40
|
+
onOk?: ((popModal: () => void) => void) | undefined;
|
|
41
|
+
title: React.ReactNode;
|
|
42
|
+
description?: React.ReactNode;
|
|
43
|
+
cancelText?: string | undefined;
|
|
44
|
+
onCancel?: ((popModal: () => void) => void) | undefined;
|
|
45
|
+
width?: number | undefined;
|
|
46
|
+
className?: string | undefined;
|
|
47
|
+
footerClassName?: string | undefined;
|
|
48
|
+
children?: React.ReactNode;
|
|
49
|
+
} | {
|
|
50
|
+
type: RejectDialogType.Custom;
|
|
51
|
+
customContent: React.ReactNode;
|
|
52
|
+
okText?: string | undefined;
|
|
53
|
+
title: React.ReactNode;
|
|
54
|
+
description?: React.ReactNode;
|
|
55
|
+
cancelText?: string | undefined;
|
|
56
|
+
onCancel?: ((popModal: () => void) => void) | undefined;
|
|
57
|
+
width?: number | undefined;
|
|
58
|
+
className?: string | undefined;
|
|
59
|
+
footerClassName?: string | undefined;
|
|
60
|
+
children?: React.ReactNode;
|
|
61
|
+
}>) => React.JSX.Element)[];
|
|
62
|
+
parameters: {
|
|
63
|
+
design: {
|
|
64
|
+
type: string;
|
|
65
|
+
url: string;
|
|
66
|
+
};
|
|
67
|
+
};
|
|
68
|
+
};
|
|
69
|
+
export default meta;
|
|
70
|
+
/**
|
|
71
|
+
* 单个对象拒绝 - 单条原因
|
|
72
|
+
*/
|
|
73
|
+
export declare const SingleReject: () => React.JSX.Element;
|
|
74
|
+
/**
|
|
75
|
+
* 单个对象拒绝 - 多条原因
|
|
76
|
+
*/
|
|
77
|
+
export declare const SingleRejectMultiReasons: () => React.JSX.Element;
|
|
78
|
+
/**
|
|
79
|
+
* 批量全部拒绝
|
|
80
|
+
*/
|
|
81
|
+
export declare const AllReject: () => React.JSX.Element;
|
|
82
|
+
/**
|
|
83
|
+
* 批量部分拒绝
|
|
84
|
+
*/
|
|
85
|
+
export declare const PartialReject: () => React.JSX.Element;
|
|
86
|
+
/**
|
|
87
|
+
* 自定义内容
|
|
88
|
+
*/
|
|
89
|
+
export declare const CustomContent: () => React.JSX.Element;
|