@agentscope-ai/design 1.0.13 → 1.0.15-rc.0
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/README.md +237 -178
- package/README.zh-CN.md +312 -0
- package/lib/antd/styles/alert.style.js +7 -1
- package/lib/antd/styles/dropdown.style.js +5 -1
- package/lib/antd/styles/select.style.js +9 -1
- package/lib/components/commonComponents/Alert/demo/demo2.js +5 -0
- package/lib/components/commonComponents/AlertDialog/index.d.ts +37 -325
- package/lib/components/commonComponents/AlertDialog/index.js +151 -3
- package/lib/components/commonComponents/AlertDialog/index.style.js +2 -14
- package/lib/components/commonComponents/Drawer/index.style.js +2 -42
- package/lib/components/commonComponents/Modal/index.d.ts +16 -2
- package/lib/components/commonComponents/Modal/index.js +71 -3
- package/lib/components/commonComponents/Modal/index.style.js +2 -62
- package/lib/components/commonComponents/PromptsEditor/VarRender.d.ts +1 -1
- package/lib/components/commonComponents/Tabs/index.style.js +7 -1
- package/lib/components/commonComponents/Tag/demo/demo1.js +1 -1
- package/lib/components/commonComponents/Tag/index.d.ts +5 -1
- package/lib/components/commonComponents/Tag/index.js +4 -0
- package/lib/components/commonComponents/Tag/index.style.js +65 -1
- package/lib/components/mobileComponents/MobileAlertDialog/demo/demo1.d.ts +3 -0
- package/lib/components/mobileComponents/MobileAlertDialog/demo/demo1.js +20 -0
- package/lib/components/mobileComponents/MobileAlertDialog/demo/demo2.d.ts +3 -0
- package/lib/components/mobileComponents/MobileAlertDialog/demo/demo2.js +50 -0
- package/lib/components/{commonComponents/AlertDialog/mobile.d.ts → mobileComponents/MobileAlertDialog/index.d.ts} +8 -8
- package/lib/components/{commonComponents/AlertDialog/mobile.js → mobileComponents/MobileAlertDialog/index.js} +3 -3
- package/lib/components/mobileComponents/MobileAlertDialog/index.style.d.ts +1 -0
- package/lib/components/mobileComponents/MobileAlertDialog/index.style.js +22 -0
- package/lib/components/mobileComponents/MobileDrawer/Confirm.d.ts +46 -0
- package/lib/components/mobileComponents/MobileDrawer/Confirm.js +63 -0
- package/lib/components/mobileComponents/MobileDrawer/demo/demo1.d.ts +2 -0
- package/lib/components/mobileComponents/MobileDrawer/demo/demo1.js +49 -0
- package/lib/components/mobileComponents/MobileDrawer/demo/demo2.d.ts +7 -0
- package/lib/components/mobileComponents/MobileDrawer/demo/demo2.js +90 -0
- package/lib/components/mobileComponents/MobileDrawer/demo/demo3.d.ts +2 -0
- package/lib/components/mobileComponents/MobileDrawer/demo/demo3.js +64 -0
- package/lib/components/mobileComponents/MobileDrawer/demo/demo4.d.ts +2 -0
- package/lib/components/mobileComponents/MobileDrawer/demo/demo4.js +99 -0
- package/lib/components/mobileComponents/MobileDrawer/demo/demo5.d.ts +2 -0
- package/lib/components/mobileComponents/MobileDrawer/demo/demo5.js +73 -0
- package/lib/components/mobileComponents/MobileDrawer/index.d.ts +16 -0
- package/lib/components/{commonComponents/Modal/pc.js → mobileComponents/MobileDrawer/index.js} +25 -52
- package/lib/components/mobileComponents/MobileDrawer/index.style.d.ts +1 -0
- package/lib/components/mobileComponents/MobileDrawer/index.style.js +44 -0
- package/lib/components/mobileComponents/MobileModal/demo/basic.d.ts +1 -0
- package/lib/components/mobileComponents/MobileModal/demo/basic.js +49 -0
- package/lib/components/mobileComponents/MobileModal/demo/styles.d.ts +1 -0
- package/lib/components/mobileComponents/MobileModal/demo/styles.js +158 -0
- package/lib/components/mobileComponents/MobileModal/demo/width.d.ts +1 -0
- package/lib/components/mobileComponents/MobileModal/demo/width.js +68 -0
- package/lib/components/mobileComponents/MobileModal/index.d.ts +43 -0
- package/lib/components/{commonComponents/Modal/mobile.js → mobileComponents/MobileModal/index.js} +45 -11
- package/lib/components/mobileComponents/MobileModal/index.style.d.ts +1 -0
- package/lib/components/mobileComponents/MobileModal/index.style.js +70 -0
- package/lib/index.d.ts +7 -1
- package/lib/index.js +10 -1
- package/lib/libs/env/index.d.ts +1 -1
- package/lib/typings.d.ts +0 -2
- package/llms/all.llms.txt +4953 -0
- package/llms/components/commonComponents/Alert/index.zh-CN.llms.txt +32 -0
- package/llms/components/commonComponents/AlertDialog/index.zh-CN.llms.txt +171 -0
- package/llms/components/commonComponents/Anchor/index.zh-CN.llms.txt +51 -0
- package/llms/components/commonComponents/Avatar/index.zh-CN.llms.txt +37 -0
- package/llms/components/commonComponents/Breadcrumb/index.zh-CN.llms.txt +117 -0
- package/llms/components/commonComponents/Button/index.zh-CN.llms.txt +54 -0
- package/llms/components/commonComponents/Card/index.zh-CN.llms.txt +61 -0
- package/llms/components/commonComponents/Checkbox/index.zh-CN.llms.txt +69 -0
- package/llms/components/commonComponents/CodeBlock/index.zh-CN.llms.txt +13 -0
- package/llms/components/commonComponents/Collapse/index.zh-CN.llms.txt +56 -0
- package/llms/components/commonComponents/CollapsePanel/index.zh-CN.llms.txt +69 -0
- package/llms/components/commonComponents/DatePicker/index.zh-CN.llms.txt +221 -0
- package/llms/components/commonComponents/Descriptions/index.zh-CN.llms.txt +37 -0
- package/llms/components/commonComponents/Drawer/index.zh-CN.llms.txt +62 -0
- package/llms/components/commonComponents/Dropdown/index.zh-CN.llms.txt +149 -0
- package/llms/components/commonComponents/Empty/index.zh-CN.llms.txt +40 -0
- package/llms/components/commonComponents/FloatButton/index.zh-CN.llms.txt +51 -0
- package/llms/components/commonComponents/Form/index.zh-CN.llms.txt +558 -0
- package/llms/components/commonComponents/IconButton/index.zh-CN.llms.txt +45 -0
- package/llms/components/commonComponents/Image/index.zh-CN.llms.txt +165 -0
- package/llms/components/commonComponents/Input/index.zh-CN.llms.txt +133 -0
- package/llms/components/commonComponents/InputNumber/index.zh-CN.llms.txt +51 -0
- package/llms/components/commonComponents/Message/index.zh-CN.llms.txt +98 -0
- package/llms/components/commonComponents/Modal/index.zh-CN.llms.txt +168 -0
- package/llms/components/commonComponents/Notification/index.zh-CN.llms.txt +94 -0
- package/llms/components/commonComponents/Pagination/index.zh-CN.llms.txt +45 -0
- package/llms/components/commonComponents/Popconfirm/index.zh-CN.llms.txt +55 -0
- package/llms/components/commonComponents/Popover/index.zh-CN.llms.txt +43 -0
- package/llms/components/commonComponents/Progress/index.zh-CN.llms.txt +50 -0
- package/llms/components/commonComponents/PromptsEditor/index.zh-CN.llms.txt +15 -0
- package/llms/components/commonComponents/Radio/index.zh-CN.llms.txt +66 -0
- package/llms/components/commonComponents/RadioButton/index.zh-CN.llms.txt +73 -0
- package/llms/components/commonComponents/Result/index.zh-CN.llms.txt +10 -0
- package/llms/components/commonComponents/Select/index.zh-CN.llms.txt +96 -0
- package/llms/components/commonComponents/Skeleton/index.zh-CN.llms.txt +59 -0
- package/llms/components/commonComponents/Slider/index.zh-CN.llms.txt +62 -0
- package/llms/components/commonComponents/Spinner/index.zh-CN.llms.txt +15 -0
- package/llms/components/commonComponents/Statistic/index.zh-CN.llms.txt +58 -0
- package/llms/components/commonComponents/Steps/index.zh-CN.llms.txt +57 -0
- package/llms/components/commonComponents/Switch/index.zh-CN.llms.txt +39 -0
- package/llms/components/commonComponents/Table/index.zh-CN.llms.txt +254 -0
- package/llms/components/commonComponents/Tabs/index.zh-CN.llms.txt +68 -0
- package/llms/components/commonComponents/Tag/index.zh-CN.llms.txt +33 -0
- package/llms/components/commonComponents/TimePicker/index.zh-CN.llms.txt +111 -0
- package/llms/components/commonComponents/Tooltip/index.zh-CN.llms.txt +44 -0
- package/llms/components/commonComponents/Upload/index.zh-CN.llms.txt +95 -0
- package/llms/components/commonComponents/Video/index.zh-CN.llms.txt +7 -0
- package/llms/docs/guide/fromAntd.zh-CN.llms.txt +156 -0
- package/llms/docs/guide/fromScratch.zh-CN.llms.txt +83 -0
- package/llms/docs/guide/iconfont.zh-CN.llms.txt +69 -0
- package/llms/docs/guide/overview.zh-CN.llms.txt +51 -0
- package/llms/docs/guide/sparkIcons.zh-CN.llms.txt +25 -0
- package/llms/docs/guide/theme.zh-CN.llms.txt +61 -0
- package/llms/docs/guide/tokens&variables.zh-CN.llms.txt +425 -0
- package/llms/docs/guide/vibe-coding.zh-CN.llms.txt +29 -0
- package/llms/index.llms.txt +49 -0
- package/package.json +14 -4
- package/scripts/mcp-docs-server.js +14079 -0
- package/lib/components/commonComponents/AlertDialog/pc.d.ts +0 -38
- package/lib/components/commonComponents/AlertDialog/pc.js +0 -152
- package/lib/components/commonComponents/Modal/mobile.d.ts +0 -28
- package/lib/components/commonComponents/Modal/pc.d.ts +0 -28
|
@@ -1,326 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
afterOpenChange?: (open: boolean) => void;
|
|
38
|
-
onClose?: (e: import("react").SyntheticEvent<Element, Event>) => any;
|
|
39
|
-
maskClosable?: boolean;
|
|
40
|
-
destroyOnClose?: boolean;
|
|
41
|
-
mousePosition?: {
|
|
42
|
-
x: number;
|
|
43
|
-
y: number;
|
|
44
|
-
};
|
|
45
|
-
maskTransitionName?: string;
|
|
46
|
-
maskAnimation?: any;
|
|
47
|
-
wrapStyle?: Record<string, any>;
|
|
48
|
-
bodyStyle?: import("react").CSSProperties;
|
|
49
|
-
maskStyle?: import("react").CSSProperties;
|
|
50
|
-
wrapClassName?: string;
|
|
51
|
-
bodyProps?: any;
|
|
52
|
-
maskProps?: any;
|
|
53
|
-
wrapProps?: any;
|
|
54
|
-
getContainer?: string | false | HTMLElement | (() => HTMLElement);
|
|
55
|
-
modalRender?: (node: import("react").ReactNode) => import("react").ReactNode;
|
|
56
|
-
forceRender?: boolean;
|
|
57
|
-
focusTriggerAfterClose?: boolean;
|
|
58
|
-
panelRef?: import("react").Ref<HTMLDivElement>;
|
|
59
|
-
showDivider?: boolean;
|
|
60
|
-
confirmLoading?: boolean;
|
|
61
|
-
onCancel?: (e: import("react").MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
62
|
-
okText?: import("react").ReactNode;
|
|
63
|
-
okType?: import("antd/es/button/button").LegacyButtonType;
|
|
64
|
-
cancelText?: import("react").ReactNode;
|
|
65
|
-
okButtonProps?: import("antd").ButtonProps;
|
|
66
|
-
cancelButtonProps?: import("antd").ButtonProps;
|
|
67
|
-
}) => void;
|
|
68
|
-
info: (props?: {
|
|
69
|
-
title?: import("react").ReactNode;
|
|
70
|
-
styles?: import("rc-dialog/lib/IDialogPropTypes").ModalStyles;
|
|
71
|
-
footer?: import("react").ReactNode | ((originNode: import("react").ReactNode, extra: {
|
|
72
|
-
OkBtn: import("react").FC<{}>;
|
|
73
|
-
CancelBtn: import("react").FC<{}>;
|
|
74
|
-
}) => import("react").ReactNode);
|
|
75
|
-
children?: import("react").ReactNode;
|
|
76
|
-
style?: import("react").CSSProperties;
|
|
77
|
-
mask?: boolean;
|
|
78
|
-
info?: import("react").ReactNode;
|
|
79
|
-
visible?: boolean;
|
|
80
|
-
closable?: boolean | ({
|
|
81
|
-
closeIcon?: import("react").ReactNode;
|
|
82
|
-
disabled?: boolean;
|
|
83
|
-
} & import("react").AriaAttributes);
|
|
84
|
-
closeIcon?: import("react").ReactNode;
|
|
85
|
-
loading?: boolean;
|
|
86
|
-
danger?: boolean;
|
|
87
|
-
height?: string | number;
|
|
88
|
-
width?: string | number | Partial<Record<import("antd").Breakpoint, string | number>>;
|
|
89
|
-
className?: string;
|
|
90
|
-
content?: import("react").ReactNode;
|
|
91
|
-
zIndex?: number;
|
|
92
|
-
animation?: any;
|
|
93
|
-
onOk?: (e: import("react").MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
94
|
-
prefixCls?: string;
|
|
95
|
-
classNames?: import("rc-dialog/lib/IDialogPropTypes").ModalClassNames;
|
|
96
|
-
transitionName?: string;
|
|
97
|
-
rootClassName?: string;
|
|
98
|
-
centered?: boolean;
|
|
99
|
-
keyboard?: boolean;
|
|
100
|
-
afterClose?: () => void;
|
|
101
|
-
afterOpenChange?: (open: boolean) => void;
|
|
102
|
-
onClose?: (e: import("react").SyntheticEvent<Element, Event>) => any;
|
|
103
|
-
maskClosable?: boolean;
|
|
104
|
-
destroyOnClose?: boolean;
|
|
105
|
-
mousePosition?: {
|
|
106
|
-
x: number;
|
|
107
|
-
y: number;
|
|
108
|
-
};
|
|
109
|
-
maskTransitionName?: string;
|
|
110
|
-
maskAnimation?: any;
|
|
111
|
-
wrapStyle?: Record<string, any>;
|
|
112
|
-
bodyStyle?: import("react").CSSProperties;
|
|
113
|
-
maskStyle?: import("react").CSSProperties;
|
|
114
|
-
wrapClassName?: string;
|
|
115
|
-
bodyProps?: any;
|
|
116
|
-
maskProps?: any;
|
|
117
|
-
wrapProps?: any;
|
|
118
|
-
getContainer?: string | false | HTMLElement | (() => HTMLElement);
|
|
119
|
-
modalRender?: (node: import("react").ReactNode) => import("react").ReactNode;
|
|
120
|
-
forceRender?: boolean;
|
|
121
|
-
focusTriggerAfterClose?: boolean;
|
|
122
|
-
panelRef?: import("react").Ref<HTMLDivElement>;
|
|
123
|
-
showDivider?: boolean;
|
|
124
|
-
confirmLoading?: boolean;
|
|
125
|
-
onCancel?: (e: import("react").MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
126
|
-
okText?: import("react").ReactNode;
|
|
127
|
-
okType?: import("antd/es/button/button").LegacyButtonType;
|
|
128
|
-
cancelText?: import("react").ReactNode;
|
|
129
|
-
okButtonProps?: import("antd").ButtonProps;
|
|
130
|
-
cancelButtonProps?: import("antd").ButtonProps;
|
|
131
|
-
}) => void;
|
|
132
|
-
warning: (props?: {
|
|
133
|
-
title?: import("react").ReactNode;
|
|
134
|
-
styles?: import("rc-dialog/lib/IDialogPropTypes").ModalStyles;
|
|
135
|
-
footer?: import("react").ReactNode | ((originNode: import("react").ReactNode, extra: {
|
|
136
|
-
OkBtn: import("react").FC<{}>;
|
|
137
|
-
CancelBtn: import("react").FC<{}>;
|
|
138
|
-
}) => import("react").ReactNode);
|
|
139
|
-
children?: import("react").ReactNode;
|
|
140
|
-
style?: import("react").CSSProperties;
|
|
141
|
-
mask?: boolean;
|
|
142
|
-
info?: import("react").ReactNode;
|
|
143
|
-
visible?: boolean;
|
|
144
|
-
closable?: boolean | ({
|
|
145
|
-
closeIcon?: import("react").ReactNode;
|
|
146
|
-
disabled?: boolean;
|
|
147
|
-
} & import("react").AriaAttributes);
|
|
148
|
-
closeIcon?: import("react").ReactNode;
|
|
149
|
-
loading?: boolean;
|
|
150
|
-
danger?: boolean;
|
|
151
|
-
height?: string | number;
|
|
152
|
-
width?: string | number | Partial<Record<import("antd").Breakpoint, string | number>>;
|
|
153
|
-
className?: string;
|
|
154
|
-
content?: import("react").ReactNode;
|
|
155
|
-
zIndex?: number;
|
|
156
|
-
animation?: any;
|
|
157
|
-
onOk?: (e: import("react").MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
158
|
-
prefixCls?: string;
|
|
159
|
-
classNames?: import("rc-dialog/lib/IDialogPropTypes").ModalClassNames;
|
|
160
|
-
transitionName?: string;
|
|
161
|
-
rootClassName?: string;
|
|
162
|
-
centered?: boolean;
|
|
163
|
-
keyboard?: boolean;
|
|
164
|
-
afterClose?: () => void;
|
|
165
|
-
afterOpenChange?: (open: boolean) => void;
|
|
166
|
-
onClose?: (e: import("react").SyntheticEvent<Element, Event>) => any;
|
|
167
|
-
maskClosable?: boolean;
|
|
168
|
-
destroyOnClose?: boolean;
|
|
169
|
-
mousePosition?: {
|
|
170
|
-
x: number;
|
|
171
|
-
y: number;
|
|
172
|
-
};
|
|
173
|
-
maskTransitionName?: string;
|
|
174
|
-
maskAnimation?: any;
|
|
175
|
-
wrapStyle?: Record<string, any>;
|
|
176
|
-
bodyStyle?: import("react").CSSProperties;
|
|
177
|
-
maskStyle?: import("react").CSSProperties;
|
|
178
|
-
wrapClassName?: string;
|
|
179
|
-
bodyProps?: any;
|
|
180
|
-
maskProps?: any;
|
|
181
|
-
wrapProps?: any;
|
|
182
|
-
getContainer?: string | false | HTMLElement | (() => HTMLElement);
|
|
183
|
-
modalRender?: (node: import("react").ReactNode) => import("react").ReactNode;
|
|
184
|
-
forceRender?: boolean;
|
|
185
|
-
focusTriggerAfterClose?: boolean;
|
|
186
|
-
panelRef?: import("react").Ref<HTMLDivElement>;
|
|
187
|
-
showDivider?: boolean;
|
|
188
|
-
confirmLoading?: boolean;
|
|
189
|
-
onCancel?: (e: import("react").MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
190
|
-
okText?: import("react").ReactNode;
|
|
191
|
-
okType?: import("antd/es/button/button").LegacyButtonType;
|
|
192
|
-
cancelText?: import("react").ReactNode;
|
|
193
|
-
okButtonProps?: import("antd").ButtonProps;
|
|
194
|
-
cancelButtonProps?: import("antd").ButtonProps;
|
|
195
|
-
}) => void;
|
|
196
|
-
error: (props?: {
|
|
197
|
-
title?: import("react").ReactNode;
|
|
198
|
-
styles?: import("rc-dialog/lib/IDialogPropTypes").ModalStyles;
|
|
199
|
-
footer?: import("react").ReactNode | ((originNode: import("react").ReactNode, extra: {
|
|
200
|
-
OkBtn: import("react").FC<{}>;
|
|
201
|
-
CancelBtn: import("react").FC<{}>;
|
|
202
|
-
}) => import("react").ReactNode);
|
|
203
|
-
children?: import("react").ReactNode;
|
|
204
|
-
style?: import("react").CSSProperties;
|
|
205
|
-
mask?: boolean;
|
|
206
|
-
info?: import("react").ReactNode;
|
|
207
|
-
visible?: boolean;
|
|
208
|
-
closable?: boolean | ({
|
|
209
|
-
closeIcon?: import("react").ReactNode;
|
|
210
|
-
disabled?: boolean;
|
|
211
|
-
} & import("react").AriaAttributes);
|
|
212
|
-
closeIcon?: import("react").ReactNode;
|
|
213
|
-
loading?: boolean;
|
|
214
|
-
danger?: boolean;
|
|
215
|
-
height?: string | number;
|
|
216
|
-
width?: string | number | Partial<Record<import("antd").Breakpoint, string | number>>;
|
|
217
|
-
className?: string;
|
|
218
|
-
content?: import("react").ReactNode;
|
|
219
|
-
zIndex?: number;
|
|
220
|
-
animation?: any;
|
|
221
|
-
onOk?: (e: import("react").MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
222
|
-
prefixCls?: string;
|
|
223
|
-
classNames?: import("rc-dialog/lib/IDialogPropTypes").ModalClassNames;
|
|
224
|
-
transitionName?: string;
|
|
225
|
-
rootClassName?: string;
|
|
226
|
-
centered?: boolean;
|
|
227
|
-
keyboard?: boolean;
|
|
228
|
-
afterClose?: () => void;
|
|
229
|
-
afterOpenChange?: (open: boolean) => void;
|
|
230
|
-
onClose?: (e: import("react").SyntheticEvent<Element, Event>) => any;
|
|
231
|
-
maskClosable?: boolean;
|
|
232
|
-
destroyOnClose?: boolean;
|
|
233
|
-
mousePosition?: {
|
|
234
|
-
x: number;
|
|
235
|
-
y: number;
|
|
236
|
-
};
|
|
237
|
-
maskTransitionName?: string;
|
|
238
|
-
maskAnimation?: any;
|
|
239
|
-
wrapStyle?: Record<string, any>;
|
|
240
|
-
bodyStyle?: import("react").CSSProperties;
|
|
241
|
-
maskStyle?: import("react").CSSProperties;
|
|
242
|
-
wrapClassName?: string;
|
|
243
|
-
bodyProps?: any;
|
|
244
|
-
maskProps?: any;
|
|
245
|
-
wrapProps?: any;
|
|
246
|
-
getContainer?: string | false | HTMLElement | (() => HTMLElement);
|
|
247
|
-
modalRender?: (node: import("react").ReactNode) => import("react").ReactNode;
|
|
248
|
-
forceRender?: boolean;
|
|
249
|
-
focusTriggerAfterClose?: boolean;
|
|
250
|
-
panelRef?: import("react").Ref<HTMLDivElement>;
|
|
251
|
-
showDivider?: boolean;
|
|
252
|
-
confirmLoading?: boolean;
|
|
253
|
-
onCancel?: (e: import("react").MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
254
|
-
okText?: import("react").ReactNode;
|
|
255
|
-
okType?: import("antd/es/button/button").LegacyButtonType;
|
|
256
|
-
cancelText?: import("react").ReactNode;
|
|
257
|
-
okButtonProps?: import("antd").ButtonProps;
|
|
258
|
-
cancelButtonProps?: import("antd").ButtonProps;
|
|
259
|
-
}) => void;
|
|
260
|
-
confirm: (props?: {
|
|
261
|
-
title?: import("react").ReactNode;
|
|
262
|
-
styles?: import("rc-dialog/lib/IDialogPropTypes").ModalStyles;
|
|
263
|
-
footer?: import("react").ReactNode | ((originNode: import("react").ReactNode, extra: {
|
|
264
|
-
OkBtn: import("react").FC<{}>;
|
|
265
|
-
CancelBtn: import("react").FC<{}>;
|
|
266
|
-
}) => import("react").ReactNode);
|
|
267
|
-
children?: import("react").ReactNode;
|
|
268
|
-
style?: import("react").CSSProperties;
|
|
269
|
-
mask?: boolean;
|
|
270
|
-
info?: import("react").ReactNode;
|
|
271
|
-
visible?: boolean;
|
|
272
|
-
closable?: boolean | ({
|
|
273
|
-
closeIcon?: import("react").ReactNode;
|
|
274
|
-
disabled?: boolean;
|
|
275
|
-
} & import("react").AriaAttributes);
|
|
276
|
-
closeIcon?: import("react").ReactNode;
|
|
277
|
-
loading?: boolean;
|
|
278
|
-
danger?: boolean;
|
|
279
|
-
height?: string | number;
|
|
280
|
-
width?: string | number | Partial<Record<import("antd").Breakpoint, string | number>>;
|
|
281
|
-
className?: string;
|
|
282
|
-
content?: import("react").ReactNode;
|
|
283
|
-
zIndex?: number;
|
|
284
|
-
animation?: any;
|
|
285
|
-
onOk?: (e: import("react").MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
286
|
-
prefixCls?: string;
|
|
287
|
-
classNames?: import("rc-dialog/lib/IDialogPropTypes").ModalClassNames;
|
|
288
|
-
transitionName?: string;
|
|
289
|
-
rootClassName?: string;
|
|
290
|
-
centered?: boolean;
|
|
291
|
-
keyboard?: boolean;
|
|
292
|
-
afterClose?: () => void;
|
|
293
|
-
afterOpenChange?: (open: boolean) => void;
|
|
294
|
-
onClose?: (e: import("react").SyntheticEvent<Element, Event>) => any;
|
|
295
|
-
maskClosable?: boolean;
|
|
296
|
-
destroyOnClose?: boolean;
|
|
297
|
-
mousePosition?: {
|
|
298
|
-
x: number;
|
|
299
|
-
y: number;
|
|
300
|
-
};
|
|
301
|
-
maskTransitionName?: string;
|
|
302
|
-
maskAnimation?: any;
|
|
303
|
-
wrapStyle?: Record<string, any>;
|
|
304
|
-
bodyStyle?: import("react").CSSProperties;
|
|
305
|
-
maskStyle?: import("react").CSSProperties;
|
|
306
|
-
wrapClassName?: string;
|
|
307
|
-
bodyProps?: any;
|
|
308
|
-
maskProps?: any;
|
|
309
|
-
wrapProps?: any;
|
|
310
|
-
getContainer?: string | false | HTMLElement | (() => HTMLElement);
|
|
311
|
-
modalRender?: (node: import("react").ReactNode) => import("react").ReactNode;
|
|
312
|
-
forceRender?: boolean;
|
|
313
|
-
focusTriggerAfterClose?: boolean;
|
|
314
|
-
panelRef?: import("react").Ref<HTMLDivElement>;
|
|
315
|
-
showDivider?: boolean;
|
|
316
|
-
confirmLoading?: boolean;
|
|
317
|
-
onCancel?: (e: import("react").MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
318
|
-
okText?: import("react").ReactNode;
|
|
319
|
-
okType?: import("antd/es/button/button").LegacyButtonType;
|
|
320
|
-
cancelText?: import("react").ReactNode;
|
|
321
|
-
okButtonProps?: import("antd").ButtonProps;
|
|
322
|
-
cancelButtonProps?: import("antd").ButtonProps;
|
|
323
|
-
}) => void;
|
|
1
|
+
import { ModalProps } from "../../../index";
|
|
2
|
+
import { SyntheticEvent } from 'react';
|
|
3
|
+
export interface AlertDialogProps extends ModalProps {
|
|
4
|
+
/**
|
|
5
|
+
* @description 类型
|
|
6
|
+
* @descriptionEn type
|
|
7
|
+
* @default info
|
|
8
|
+
*/
|
|
9
|
+
type?: 'success' | 'info' | 'warning' | 'error' | 'confirm';
|
|
10
|
+
/**
|
|
11
|
+
* @description 确认按钮是否带有danger属性
|
|
12
|
+
* @descriptionEn whether the confirm button has a danger property
|
|
13
|
+
* @default false
|
|
14
|
+
*/
|
|
15
|
+
danger?: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* @description 内容
|
|
18
|
+
* @descriptionEn content
|
|
19
|
+
* @default -
|
|
20
|
+
*/
|
|
21
|
+
content?: React.ReactNode;
|
|
22
|
+
/**
|
|
23
|
+
* @description 关闭时触发的回调函数
|
|
24
|
+
* @descriptionEn callback function triggered when closed
|
|
25
|
+
* @default -
|
|
26
|
+
*/
|
|
27
|
+
onClose?: (e: SyntheticEvent<Element, Event>) => any;
|
|
28
|
+
}
|
|
29
|
+
type AlertDialogStaticProps = Omit<AlertDialogProps, 'type' | 'open'>;
|
|
30
|
+
declare const _default: {
|
|
31
|
+
(props: AlertDialogProps): JSX.Element;
|
|
32
|
+
success: (props?: AlertDialogStaticProps) => void;
|
|
33
|
+
info: (props?: AlertDialogStaticProps) => void;
|
|
34
|
+
warning: (props?: AlertDialogStaticProps) => void;
|
|
35
|
+
error: (props?: AlertDialogStaticProps) => void;
|
|
36
|
+
confirm: (props?: AlertDialogStaticProps) => void;
|
|
324
37
|
};
|
|
325
|
-
export default
|
|
326
|
-
export type { AlertDialogProps } from './pc';
|
|
38
|
+
export default _default;
|
|
@@ -1,4 +1,152 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
var _excluded = ["children", "type", "danger", "title", "width", "className"];
|
|
3
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
|
|
7
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
8
|
+
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
9
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
10
|
+
import $i18n from "../../../i18n";
|
|
11
|
+
import { CheckCircleOutlined, CloseCircleOutlined, ExclamationCircleOutlined, InfoCircleOutlined } from "@agentscope-ai/icons-override-antd";
|
|
12
|
+
import { Flex, Modal } from 'antd';
|
|
13
|
+
import classNames from 'classnames';
|
|
14
|
+
import { getCommonConfig } from "../../../config";
|
|
15
|
+
import { useStyle } from "./index.style";
|
|
16
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
17
|
+
import { jsxs as _jsxs } from "react/jsx-runtime";
|
|
18
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
19
|
+
var getCommonProps = function getCommonProps(props) {
|
|
20
|
+
var renderTitle = function renderTitle(_ref) {
|
|
21
|
+
var type = _ref.type,
|
|
22
|
+
title = _ref.title;
|
|
23
|
+
var _getCommonConfig = getCommonConfig(),
|
|
24
|
+
antPrefix = _getCommonConfig.antPrefix;
|
|
25
|
+
switch (type) {
|
|
26
|
+
case 'success':
|
|
27
|
+
return /*#__PURE__*/_jsxs(Flex, {
|
|
28
|
+
align: "center",
|
|
29
|
+
gap: 8,
|
|
30
|
+
className: "leading-[28px]",
|
|
31
|
+
children: [/*#__PURE__*/_jsx(CheckCircleOutlined, {
|
|
32
|
+
style: {
|
|
33
|
+
color: "var(--".concat(antPrefix, "-color-success)"),
|
|
34
|
+
fontSize: 18,
|
|
35
|
+
margin: '0 3px'
|
|
36
|
+
}
|
|
37
|
+
}), title]
|
|
38
|
+
});
|
|
39
|
+
case 'warning':
|
|
40
|
+
case 'confirm':
|
|
41
|
+
return /*#__PURE__*/_jsxs(Flex, {
|
|
42
|
+
align: "center",
|
|
43
|
+
gap: 8,
|
|
44
|
+
className: "leading-[28px]",
|
|
45
|
+
children: [/*#__PURE__*/_jsx(ExclamationCircleOutlined, {
|
|
46
|
+
style: {
|
|
47
|
+
color: "var(--".concat(antPrefix, "-color-warning)"),
|
|
48
|
+
fontSize: 18,
|
|
49
|
+
margin: '0 3px'
|
|
50
|
+
}
|
|
51
|
+
}), title]
|
|
52
|
+
});
|
|
53
|
+
case 'info':
|
|
54
|
+
return /*#__PURE__*/_jsxs(Flex, {
|
|
55
|
+
align: "center",
|
|
56
|
+
gap: 8,
|
|
57
|
+
className: "leading-[28px]",
|
|
58
|
+
children: [/*#__PURE__*/_jsx(InfoCircleOutlined, {
|
|
59
|
+
style: {
|
|
60
|
+
color: "var(--".concat(antPrefix, "-color-info)"),
|
|
61
|
+
fontSize: 18,
|
|
62
|
+
margin: '0 3px'
|
|
63
|
+
}
|
|
64
|
+
}), title]
|
|
65
|
+
});
|
|
66
|
+
case 'error':
|
|
67
|
+
return /*#__PURE__*/_jsxs(Flex, {
|
|
68
|
+
align: "center",
|
|
69
|
+
gap: 8,
|
|
70
|
+
className: "leading-[28px]",
|
|
71
|
+
children: [/*#__PURE__*/_jsx(CloseCircleOutlined, {
|
|
72
|
+
style: {
|
|
73
|
+
color: "var(--".concat(antPrefix, "-color-error)"),
|
|
74
|
+
fontSize: 18,
|
|
75
|
+
margin: '0 3px'
|
|
76
|
+
}
|
|
77
|
+
}), title]
|
|
78
|
+
});
|
|
79
|
+
default:
|
|
80
|
+
return $i18n.get({
|
|
81
|
+
id: 'components.commonComponents.AlertDialog.Prompt',
|
|
82
|
+
dm: '提示'
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
};
|
|
86
|
+
var children = props.children,
|
|
87
|
+
_props$type = props.type,
|
|
88
|
+
type = _props$type === void 0 ? 'info' : _props$type,
|
|
89
|
+
_props$danger = props.danger,
|
|
90
|
+
danger = _props$danger === void 0 ? false : _props$danger,
|
|
91
|
+
title = props.title,
|
|
92
|
+
_props$width = props.width,
|
|
93
|
+
width = _props$width === void 0 ? '400px' : _props$width,
|
|
94
|
+
_props$className = props.className,
|
|
95
|
+
className = _props$className === void 0 ? '' : _props$className,
|
|
96
|
+
restProps = _objectWithoutProperties(props, _excluded);
|
|
97
|
+
return {
|
|
98
|
+
width: width,
|
|
99
|
+
transitionName: '',
|
|
100
|
+
restProps: restProps,
|
|
101
|
+
closeIcon: null,
|
|
102
|
+
title: renderTitle({
|
|
103
|
+
type: type,
|
|
104
|
+
title: title
|
|
105
|
+
}),
|
|
106
|
+
okButtonProps: {
|
|
107
|
+
danger: type === 'error' || type === 'warning' || danger
|
|
108
|
+
},
|
|
109
|
+
destroyOnClose: true,
|
|
110
|
+
className: classNames(className, 'animate-in', "".concat(getCommonConfig().sparkPrefix, "-alert-dialog")),
|
|
111
|
+
content: props.content || children,
|
|
112
|
+
children: children
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
var AlertDialog = function AlertDialog(props) {
|
|
116
|
+
var commonProps = getCommonProps(props);
|
|
117
|
+
var Style = useStyle();
|
|
118
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
119
|
+
children: [/*#__PURE__*/_jsx(Style, {}), /*#__PURE__*/_jsx(Modal, _objectSpread(_objectSpread({
|
|
120
|
+
width: commonProps.width,
|
|
121
|
+
transitionName: ""
|
|
122
|
+
}, commonProps.restProps), {}, {
|
|
123
|
+
closeIcon: null,
|
|
124
|
+
title: commonProps.title,
|
|
125
|
+
okButtonProps: commonProps.okButtonProps || {},
|
|
126
|
+
destroyOnClose: commonProps.destroyOnClose,
|
|
127
|
+
className: commonProps.className,
|
|
128
|
+
children: commonProps.content || commonProps.children
|
|
129
|
+
}))]
|
|
130
|
+
});
|
|
131
|
+
};
|
|
132
|
+
var staticFns = ['success', 'info', 'warning', 'error', 'confirm'];
|
|
133
|
+
staticFns.forEach(function (type) {
|
|
134
|
+
AlertDialog[type] = function (props) {
|
|
135
|
+
var commonProps = getCommonProps(_objectSpread(_objectSpread({}, props), {}, {
|
|
136
|
+
type: type
|
|
137
|
+
}));
|
|
138
|
+
function Content() {
|
|
139
|
+
var Style = useStyle();
|
|
140
|
+
return /*#__PURE__*/_jsxs(_Fragment, {
|
|
141
|
+
children: [/*#__PURE__*/_jsx(Style, {}), commonProps.content]
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
// @ts-ignore
|
|
146
|
+
return Modal.confirm(_objectSpread(_objectSpread(_objectSpread({}, commonProps), commonProps.restProps), {}, {
|
|
147
|
+
content: /*#__PURE__*/_jsx(Content, {}),
|
|
148
|
+
icon: null
|
|
149
|
+
}));
|
|
150
|
+
};
|
|
151
|
+
});
|
|
4
152
|
export default AlertDialog;
|
|
@@ -1,19 +1,7 @@
|
|
|
1
|
-
var _templateObject
|
|
1
|
+
var _templateObject;
|
|
2
2
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
3
|
import createGlobalStyle from "../../../libs/createStyle";
|
|
4
|
-
export var useStyle =
|
|
5
|
-
return p.sparkPrefix;
|
|
6
|
-
}, function (p) {
|
|
7
|
-
return p.antPrefix;
|
|
8
|
-
}, function (p) {
|
|
9
|
-
return p.antPrefix;
|
|
10
|
-
}, function (p) {
|
|
11
|
-
return p.antPrefix;
|
|
12
|
-
}, function (p) {
|
|
13
|
-
return p.antPrefix;
|
|
14
|
-
}, function (p) {
|
|
15
|
-
return p.antPrefix;
|
|
16
|
-
}) : createGlobalStyle(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n.", "-alert-dialog {\n .", "-modal-body {\n padding: 0 0 12px 32px;\n font-size: 14px;\n color: var(--", "-color-text-secondary);\n }\n\n .", "-modal-confirm-content {\n padding: 0 0 12px 32px;\n font-size: 14px;\n color: var(--", "-color-text-secondary);\n }\n\n .", "-modal-confirm-paragraph {\n max-width: 100%;\n }\n}\n"])), function (p) {
|
|
4
|
+
export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-alert-dialog {\n .", "-modal-body {\n padding: 0 0 12px 32px;\n font-size: 14px;\n color: var(--", "-color-text-secondary);\n }\n\n .", "-modal-confirm-content {\n padding: 0 0 12px 32px;\n font-size: 14px;\n color: var(--", "-color-text-secondary);\n }\n\n .", "-modal-confirm-paragraph {\n max-width: 100%;\n }\n}\n"])), function (p) {
|
|
17
5
|
return p.sparkPrefix;
|
|
18
6
|
}, function (p) {
|
|
19
7
|
return p.antPrefix;
|
|
@@ -1,47 +1,7 @@
|
|
|
1
|
-
var _templateObject
|
|
1
|
+
var _templateObject;
|
|
2
2
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
3
3
|
import createGlobalStyle from "../../../libs/createStyle";
|
|
4
|
-
export var useStyle =
|
|
5
|
-
return p.sparkPrefix;
|
|
6
|
-
}, function (p) {
|
|
7
|
-
return p.antPrefix;
|
|
8
|
-
}, function (p) {
|
|
9
|
-
return p.antPrefix;
|
|
10
|
-
}, function (p) {
|
|
11
|
-
return p.antPrefix;
|
|
12
|
-
}, function (p) {
|
|
13
|
-
return p.antPrefix;
|
|
14
|
-
}, function (p) {
|
|
15
|
-
return p.antPrefix;
|
|
16
|
-
}, function (p) {
|
|
17
|
-
return p.antPrefix;
|
|
18
|
-
}, function (p) {
|
|
19
|
-
return p.antPrefix;
|
|
20
|
-
}, function (p) {
|
|
21
|
-
return p.antPrefix;
|
|
22
|
-
}, function (p) {
|
|
23
|
-
return p.antPrefix;
|
|
24
|
-
}, function (p) {
|
|
25
|
-
return p.antPrefix;
|
|
26
|
-
}, function (p) {
|
|
27
|
-
return p.antPrefix;
|
|
28
|
-
}, function (p) {
|
|
29
|
-
return p.antPrefix;
|
|
30
|
-
}, function (p) {
|
|
31
|
-
return p.antPrefix;
|
|
32
|
-
}, function (p) {
|
|
33
|
-
return p.sparkPrefix;
|
|
34
|
-
}, function (p) {
|
|
35
|
-
return p.antPrefix;
|
|
36
|
-
}, function (p) {
|
|
37
|
-
return p.antPrefix;
|
|
38
|
-
}, function (p) {
|
|
39
|
-
return p.antPrefix;
|
|
40
|
-
}, function (p) {
|
|
41
|
-
return p.antPrefix;
|
|
42
|
-
}, function (p) {
|
|
43
|
-
return p.antPrefix;
|
|
44
|
-
}) : createGlobalStyle(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n.", "-drawer {\n .", "-drawer-header {\n padding: 16px 20px;\n border-bottom: none;\n \n .", "-drawer-header-title {\n display: flex;\n flex-direction: row-reverse;\n \n .", "-drawer-title {\n font-size: 16px;\n font-weight: 500;\n line-height: 28px;\n color: var(--", "-color-text);\n }\n \n .", "-drawer-close {\n width: 32px;\n height: 32px;\n }\n }\n }\n \n .", "-drawer-body {\n --", "-padding-lg: 20px;\n }\n \n .", "-drawer-footer {\n padding: 16px 20px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-top: none;\n \n .", "-drawer-footer-info {\n font-size: 14px;\n line-height: 24px;\n color: var(--", "-color-text-tertiary);\n }\n \n .", "-drawer-footer-buttons {\n display: flex;\n gap: 12px;\n }\n }\n \n .", "-drawer-close {\n color: var(--", "-color-text);\n margin: 0;\n }\n}\n\n.", "-drawer.", "-show-divider {\n .", "-drawer-header {\n border-bottom: 1px solid var(--", "-color-border-secondary);\n }\n \n .", "-drawer-footer {\n border-top: 1px solid var(--", "-color-border-secondary);\n }\n}\n"])), function (p) {
|
|
4
|
+
export var useStyle = createGlobalStyle(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n.", "-drawer {\n .", "-drawer-header {\n padding: 16px 20px;\n border-bottom: none;\n \n .", "-drawer-header-title {\n display: flex;\n flex-direction: row-reverse;\n \n .", "-drawer-title {\n font-size: 16px;\n font-weight: 500;\n line-height: 28px;\n color: var(--", "-color-text);\n }\n \n .", "-drawer-close {\n width: 32px;\n height: 32px;\n }\n }\n }\n \n .", "-drawer-body {\n --", "-padding-lg: 20px;\n }\n \n .", "-drawer-footer {\n padding: 16px 20px;\n display: flex;\n align-items: center;\n justify-content: space-between;\n border-top: none;\n \n .", "-drawer-footer-info {\n font-size: 14px;\n line-height: 24px;\n color: var(--", "-color-text-tertiary);\n }\n \n .", "-drawer-footer-buttons {\n display: flex;\n gap: 12px;\n }\n }\n \n .", "-drawer-close {\n color: var(--", "-color-text);\n margin: 0;\n }\n}\n\n.", "-drawer.", "-show-divider {\n .", "-drawer-header {\n border-bottom: 1px solid var(--", "-color-border-secondary);\n }\n \n .", "-drawer-footer {\n border-top: 1px solid var(--", "-color-border-secondary);\n }\n}\n"])), function (p) {
|
|
45
5
|
return p.sparkPrefix;
|
|
46
6
|
}, function (p) {
|
|
47
7
|
return p.antPrefix;
|
|
@@ -1,5 +1,20 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ModalProps } from 'antd';
|
|
3
|
+
export interface SparkModalProps extends ModalProps {
|
|
4
|
+
/**
|
|
5
|
+
* @description 底部额外内容
|
|
6
|
+
* @descriptionEn footer extra content
|
|
7
|
+
*/
|
|
8
|
+
info?: string | React.ReactNode;
|
|
9
|
+
/**
|
|
10
|
+
* @description 是否显示分割线
|
|
11
|
+
* @descriptionEn whether to show divider
|
|
12
|
+
* @default true
|
|
13
|
+
*/
|
|
14
|
+
showDivider?: boolean;
|
|
15
|
+
}
|
|
1
16
|
declare const SparkModal: {
|
|
2
|
-
(props:
|
|
17
|
+
(props: SparkModalProps): import("react/jsx-runtime").JSX.Element;
|
|
3
18
|
useModal: typeof import("antd/es/modal/useModal").default;
|
|
4
19
|
success: import("antd/es/modal/confirm").ModalFunc;
|
|
5
20
|
error: import("antd/es/modal/confirm").ModalFunc;
|
|
@@ -11,4 +26,3 @@ declare const SparkModal: {
|
|
|
11
26
|
LARGE_WIDTH: number;
|
|
12
27
|
};
|
|
13
28
|
export default SparkModal;
|
|
14
|
-
export type { SparkModalProps } from './pc';
|