UNPKG

gtht-miniapp-sdk

Version:

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

33 lines (32 loc) 907 B
import { type StyleValue } from 'vue'; 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; } export declare const defaultNotifyProps: { type: NotifyProps["type"]; position: NotifyProps["position"]; duration: number; timeout: number; }; 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; }