UNPKG

vexip-ui

Version:

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

1 lines 1.57 kB
{"version":3,"file":"symbol.cjs","sources":["../../../components/notice/symbol.ts"],"sourcesContent":["import type { ComponentPublicInstance } from 'vue'\n\nexport type Key = string | number\nexport type NoticeType = 'primary' | 'info' | 'success' | 'warning' | 'error'\nexport type NoticePlacement = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left'\n\nexport interface NoticeOptions extends Record<string, any> {\n title?: string,\n content?: string,\n key?: Key,\n icon?: Record<string, any> | (() => any),\n iconColor?: string,\n type?: NoticeType | null,\n duration?: number,\n className?: string | Record<string, any>,\n style?: string | Record<string, any>,\n zIndex?: number,\n background?: boolean | string,\n color?: boolean | string,\n closable?: boolean,\n parseHtml?: boolean,\n liveOnEnter?: boolean,\n renderer?: () => any,\n}\n\nexport interface NoticeConfig {\n placement?: NoticePlacement,\n startOffset?: number,\n itemGap?: number,\n}\n\nexport interface NoticeInstance extends ComponentPublicInstance {\n add: (options: NoticeOptions) => void,\n remove: (key: string | number) => void,\n clear: () => void,\n config: (config: NoticeConfig) => void,\n}\n\nexport const effectiveTypes = Object.freeze(['primary', 'info', 'success', 'warning', 'error'])\n// For a11n\nexport const assertiveTypes = Object.freeze(['success', 'warning', 'error'])\n"],"names":["effectiveTypes","assertiveTypes"],"mappings":"gFAsCa,MAAAA,EAAiB,OAAO,OAAO,CAAC,UAAW,OAAQ,UAAW,UAAW,OAAO,CAAC,EAEjFC,EAAiB,OAAO,OAAO,CAAC,UAAW,UAAW,OAAO,CAAC"}