UNPKG

ant-design-vue

Version:

An enterprise-class UI design language and Vue-based implementation

63 lines (62 loc) 2.04 kB
import type { Key, VueNode } from '../_util/type'; import type { CSSProperties } from 'vue'; import type { NoticeProps } from './Notice'; export interface NoticeContent extends Omit<NoticeProps, 'prefixCls' | 'noticeKey' | 'onClose'> { prefixCls?: string; key?: Key; updateMark?: string; content?: string | ((arg: { prefixCls: string; }) => VueNode) | VueNode; onClose?: () => void; style?: CSSProperties; class?: String; } export type Placement = 'top' | 'topLeft' | 'topRight' | 'bottom' | 'bottomLeft' | 'bottomRight'; export interface OpenConfig extends NoticeProps { key: Key; placement?: Placement; content?: string | (() => VueNode) | VueNode; duration?: number | null; } export type NoticeFunc = (noticeProps: NoticeContent) => void; export type HolderReadyCallback = (div: HTMLDivElement, noticeProps: NoticeProps & { key: Key; }) => void; export interface NotificationInstance { notice: NoticeFunc; removeNotice: (key: Key) => void; destroy: () => void; component: Notification; } export interface NotificationProps { prefixCls?: string; transitionName?: string; animation?: string | object; maxCount?: number; closeIcon?: any; hashId?: string; } declare const Notification: import("vue").DefineComponent<Readonly<{ animation?: any; hashId?: any; prefixCls?: any; transitionName?: any; maxCount?: any; closeIcon?: any; }>, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<Readonly<{ animation?: any; hashId?: any; prefixCls?: any; transitionName?: any; maxCount?: any; closeIcon?: any; }>>>, { readonly animation?: any; readonly hashId?: any; readonly prefixCls?: any; readonly transitionName?: any; readonly maxCount?: any; readonly closeIcon?: any; }, {}>; export default Notification;