UNPKG

@extclp/vexip-ui

Version:

A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good

33 lines (32 loc) 1.12 kB
import { ComponentPublicInstance } from 'vue'; export type Key = string | number; export type MessageType = 'primary' | 'info' | 'success' | 'warning' | 'error'; export type MessagePlacement = 'top' | 'bottom'; export interface MessageOptions extends Record<string, any> { content?: string; key?: Key; icon?: Record<string, any> | (() => any); iconColor?: string; type?: MessageType | null; duration?: number; className?: string | Record<string, any>; style?: string | Record<string, any>; zIndex?: number; background?: boolean | string; color?: boolean | string; closable?: boolean; parseHtml?: boolean; liveOnEnter?: boolean; renderer?: () => any; } export interface MessageConfig { placement?: MessagePlacement; } export interface MessageInstance extends ComponentPublicInstance { add: (options: MessageOptions) => void; remove: (key: string | number) => void; clear: () => void; config: (config: MessageConfig) => void; } export declare const effectiveTypes: readonly string[]; export declare const assertiveTypes: readonly string[];