@fesjs/fes-design
Version:
fes-design for PC
25 lines (24 loc) • 1 kB
TypeScript
import { type CSSProperties, type VNode, type VNodeChild } from 'vue';
export interface Notice {
key?: string;
afterRemove?: () => void;
duration: number;
style: CSSProperties;
children: VNode | (() => VNodeChild);
}
export interface NoticeManagerInst {
remove: (key: string) => void;
append: (notice: Notice) => Notice;
destroy: () => void;
exited: () => boolean;
}
export declare function createManager(opt: {
getContainer?: () => HTMLElement;
[key: string]: any;
}): Promise<NoticeManagerInst>;
export declare const iconComponentMap: {
info: (props?: import("../icon/IconWrapper").IconProps) => import("vue/jsx-runtime").JSX.Element;
success: (props?: import("../icon/IconWrapper").IconProps) => import("vue/jsx-runtime").JSX.Element;
error: (props?: import("../icon/IconWrapper").IconProps) => import("vue/jsx-runtime").JSX.Element;
warning: (props?: import("../icon/IconWrapper").IconProps) => import("vue/jsx-runtime").JSX.Element;
};