@extclp/vexip-ui
Version:
A Vue 3 UI library, Highly customizability, full TypeScript, performance pretty good
1 lines • 1.17 kB
Source Map (JSON)
{"version":3,"file":"symbol.mjs","sources":["../../../components/toast/symbol.ts"],"sourcesContent":["import type { ComponentPublicInstance } from 'vue'\nimport type { ClassType, StyleType } from '@vexip-ui/config'\nimport type { IconMinorProps } from '@/components/icon'\n\nexport type ToastType = 'success' | 'warning' | 'error' | 'loading'\nexport type ToastPosition = 'top' | 'center' | 'bottom'\n\nexport interface ToastOptions extends Record<string, any> {\n type?: ToastType | null,\n content?: string,\n icon?: Record<string, any> | (() => any) | null,\n iconProps?: IconMinorProps,\n position?: ToastPosition,\n transitionName?: string,\n closable?: boolean,\n maskClose?: boolean,\n showMask?: boolean,\n maskClass?: ClassType,\n maskStyle?: StyleType,\n parseHtml?: boolean,\n onClose?: () => void\n}\n\nexport interface ToastInstance extends ComponentPublicInstance {\n openToast: (options: ToastOptions) => Promise<void>,\n closeToast: () => void\n}\n\nexport const effectiveTypes = Object.freeze(['success', 'warning', 'error', 'loading'])\n"],"names":["effectiveTypes"],"mappings":"AA4Ba,MAAAA,IAAiB,OAAO,OAAO,CAAC,WAAW,WAAW,SAAS,SAAS,CAAC;"}