sard-uniapp
Version:
sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库
28 lines (27 loc) • 717 B
TypeScript
import { type StyleValue } from 'vue';
export interface ToastProps {
rootStyle?: StyleValue;
rootClass?: string;
type?: 'text' | 'loading' | 'success' | 'fail';
title?: string | number;
visible?: boolean;
position?: 'top' | 'center' | 'bottom';
overlay?: boolean;
transparent?: boolean;
timeout?: number;
duration?: number;
}
export declare const defaultToastProps: {
type: ToastProps["type"];
position: ToastProps["position"];
overlay: boolean;
timeout: number;
duration: number;
};
export interface ToastEmits {
(e: 'update:visible', visible: boolean): void;
}
export interface ToastExpose {
reHideLater: () => void;
cancelHide: () => void;
}