UNPKG

@extclp/vexip-ui

Version:

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

1 lines 1.65 kB
{"version":3,"file":"symbol.mjs","sources":["../../../components/notice/symbol.ts"],"sourcesContent":["import type { ComponentPublicInstance } from 'vue'\r\n\r\nexport type Key = string | number\r\nexport type NoticeType = 'primary' | 'info' | 'success' | 'warning' | 'error'\r\nexport type NoticePlacement = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left'\r\n\r\nexport interface NoticeOptions extends Record<string, any> {\r\n title?: string,\r\n content?: string,\r\n key?: Key,\r\n icon?: Record<string, any> | (() => any),\r\n iconColor?: string,\r\n type?: NoticeType | 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 NoticeConfig {\r\n placement?: NoticePlacement,\r\n startOffset?: number,\r\n itemGap?: number,\r\n}\r\n\r\nexport interface NoticeInstance extends ComponentPublicInstance {\r\n add: (options: NoticeOptions) => void,\r\n remove: (key: string | number) => void,\r\n clear: () => void,\r\n config: (config: NoticeConfig) => 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":"AAsCa,MAAAA,IAAiB,OAAO,OAAO,CAAC,WAAW,QAAQ,WAAW,WAAW,OAAO,CAAC,GAEjFC,IAAiB,OAAO,OAAO,CAAC,WAAW,WAAW,OAAO,CAAC;"}