UNPKG

sard-uniapp

Version:

sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库

32 lines (31 loc) 940 B
import { type StyleValue } from 'vue'; import { type DefaultProps } from '../config'; import { type TransitionHookEmits } from '../popup/common'; export interface ToastProps { rootStyle?: StyleValue; rootClass?: string; type?: 'text' | 'loading' | 'success' | 'fail'; title?: string | number; icon?: string; iconFamily?: string; visible?: boolean; position?: 'top' | 'center' | 'bottom'; overlay?: boolean; transparent?: boolean; timeout?: number; duration?: number; internalIcon?: number; internalDefault?: number; } export declare const defaultToastProps: () => DefaultProps<ToastProps>; export interface ToastSlots { default?(props?: any): any; icon?(props?: any): any; } export interface ToastEmits extends TransitionHookEmits { (e: 'update:visible', visible: boolean): void; } export interface ToastExpose { reHideLater: () => void; cancelHide: () => void; }