UNPKG

sard-uniapp

Version:

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

34 lines (33 loc) 1.28 kB
import { type NotifyEmits, type NotifyProps, type NotifySlots } from '../notify/common'; import { type DefaultProps } from '../config'; import { type TransitionHookCallbacks } from '../popup/common'; export interface NotifyAgentProps extends NotifyProps, TransitionHookCallbacks { id?: string; } export declare const defaultNotifyAgentProps: () => DefaultProps<NotifyAgentProps>; export interface NotifyAgentSlots extends NotifySlots { } export interface NotifyAgentEmits extends NotifyEmits { } export declare const imperativeName = "notify"; export interface NotifyImperative { show(newProps: Record<string, any>): void; hide(): void; } export type NotifyOptions = NotifyAgentProps; export interface NotifySimpleShowFunction { (options: NotifyOptions): void; (message: string, options?: NotifyOptions): void; } export interface NotifyShowFunction { (optionsOrMessage: string | NotifyOptions, options?: NotifyOptions, internalType?: NotifyOptions['type']): void; } export type NotifyFunction = NotifySimpleShowFunction & { success: NotifySimpleShowFunction; warning: NotifySimpleShowFunction; error: NotifySimpleShowFunction; hide: (id?: string) => void; hideAll: () => void; }; declare const notify: NotifyFunction; export { notify };