1 | import { VNodeTypes, CSSProperties } from 'vue';
|
2 | export declare type NotificationPlacement = 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
|
3 | export declare type IconType = 'success' | 'info' | 'error' | 'warning';
|
4 | export interface ConfigProps {
|
5 | top?: string | number;
|
6 | bottom?: string | number;
|
7 | duration?: number;
|
8 | placement?: NotificationPlacement;
|
9 | getContainer?: () => HTMLElement;
|
10 | closeIcon?: VNodeTypes;
|
11 | }
|
12 | export interface ArgsProps {
|
13 | message: VNodeTypes;
|
14 | description?: VNodeTypes;
|
15 | btn?: VNodeTypes;
|
16 | key?: string;
|
17 | onClose?: () => void;
|
18 | duration?: number | null;
|
19 | icon?: VNodeTypes;
|
20 | placement?: NotificationPlacement;
|
21 | style?: CSSProperties;
|
22 | prefixCls?: string;
|
23 | class?: string;
|
24 | readonly type?: IconType;
|
25 | onClick?: () => void;
|
26 | top?: string;
|
27 | bottom?: string;
|
28 | getContainer?: () => HTMLElement;
|
29 | closeIcon?: VNodeTypes;
|
30 | }
|
31 | declare const api: any;
|
32 | export default api;
|