feat: 微客宝H5客户端 - 基础架构+核心页面

This commit is contained in:
li
2026-03-14 19:44:03 +08:00
parent 54d2f617bb
commit 0e974da09c
3738 changed files with 811180 additions and 21 deletions
+36
View File
@@ -0,0 +1,36 @@
import type { ToastType, ToastOptions, ToastWrapperInstance } from './types';
/**
* Display a text toast
*/
export declare function showToast(options?: string | ToastOptions): ToastWrapperInstance;
/**
* Display a loading toast
*/
export declare const showLoadingToast: (options: string | ToastOptions) => ToastWrapperInstance;
/**
* Display a success toast
*/
export declare const showSuccessToast: (options: string | ToastOptions) => ToastWrapperInstance;
/**
* Display a fail toast
*/
export declare const showFailToast: (options: string | ToastOptions) => ToastWrapperInstance;
/**
* Close the currently displayed toast
*/
export declare const closeToast: (all?: boolean) => void;
/**
* Modify the default configuration that affects all `showToast` calls.
* Specify the `type` parameter to modify the default configuration of a specific type of toast
*/
export declare function setToastDefaultOptions(options: ToastOptions): void;
export declare function setToastDefaultOptions(type: ToastType, options: ToastOptions): void;
/**
* Reset the default configuration that affects all `showToast` calls.
* Specify the `type` parameter to reset the default configuration of a specific type of toast
*/
export declare const resetToastDefaultOptions: (type?: ToastType) => void;
/**
* Allow multiple toasts to be displayed as the same time
*/
export declare const allowMultipleToast: (value?: boolean) => void;