UNPKG

959 BTypeScriptView Raw
1import { VNodeTypes, CSSProperties } from 'vue';
2export declare type NotificationPlacement = 'topLeft' | 'topRight' | 'bottomLeft' | 'bottomRight';
3export declare type IconType = 'success' | 'info' | 'error' | 'warning';
4export interface ConfigProps {
5 top?: string | number;
6 bottom?: string | number;
7 duration?: number;
8 placement?: NotificationPlacement;
9 getContainer?: () => HTMLElement;
10 closeIcon?: VNodeTypes;
11}
12export 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}
31declare const api: any;
32export default api;