UNPKG

@extclp/vexip-ui

Version:

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

1 lines 1.6 kB
{"version":3,"file":"symbol.mjs","sources":["../../../components/message/symbol.ts"],"sourcesContent":["import type { ComponentPublicInstance } from 'vue'\r\n\r\nexport type Key = string | number\r\nexport type MessageType = 'primary' | 'info' | 'success' | 'warning' | 'error'\r\nexport type MessagePlacement = 'top' | 'bottom'\r\n\r\nexport interface MessageOptions extends Record<string, any> {\r\n content?: string,\r\n key?: Key,\r\n icon?: Record<string, any> | (() => any),\r\n iconColor?: string,\r\n type?: MessageType | null,\r\n duration?: number,\r\n className?: string | Record<string, any>,\r\n style?: string | Record<string, any>,\r\n zIndex?: number,\r\n background?: boolean | string,\r\n color?: boolean | string,\r\n closable?: boolean,\r\n parseHtml?: boolean,\r\n liveOnEnter?: boolean,\r\n renderer?: () => any,\r\n}\r\n\r\nexport interface MessageConfig {\r\n placement?: MessagePlacement,\r\n startOffset?: number,\r\n itemGap?: number,\r\n}\r\n\r\nexport interface MessageInstance extends ComponentPublicInstance {\r\n add: (options: MessageOptions) => void,\r\n remove: (key: string | number) => void,\r\n clear: () => void,\r\n config: (config: MessageConfig) => void,\r\n}\r\n\r\nexport const effectiveTypes = Object.freeze(['primary', 'info', 'success', 'warning', 'error'])\r\n// For a11n\r\nexport const assertiveTypes = Object.freeze(['success', 'warning', 'error'])\r\n"],"names":["effectiveTypes","assertiveTypes"],"mappings":"AAqCa,MAAAA,IAAiB,OAAO,OAAO,CAAC,WAAW,QAAQ,WAAW,WAAW,OAAO,CAAC,GAEjFC,IAAiB,OAAO,OAAO,CAAC,WAAW,WAAW,OAAO,CAAC;"}