sard-uniapp
Version:
sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库
30 lines (29 loc) • 899 B
TypeScript
import { type StyleValue } from 'vue';
import { type DefaultProps } from '../config';
import { type TransitionHookEmits } from '../popup/common';
export interface NotifyProps {
rootStyle?: StyleValue;
rootClass?: string;
type?: 'primary' | 'success' | 'warning' | 'error';
message?: string;
color?: string;
background?: string;
visible?: boolean;
position?: 'top' | 'bottom';
timeout?: number;
duration?: number;
statusBar?: boolean;
internalDefault?: number;
}
export declare const defaultNotifyProps: () => DefaultProps<NotifyProps>;
export interface NotifySlots {
default?(props: Record<string, never>): any;
}
export interface NotifyEmits extends TransitionHookEmits {
(e: 'click', event: any): void;
(e: 'update:visible', event: any): void;
}
export interface NotifyExpose {
reHideLater: () => void;
cancelHide: () => void;
}