UNPKG

@extclp/vexip-ui

Version:

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

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