first commit

This commit is contained in:
lingxiao865
2026-02-10 08:05:03 +08:00
commit c5af079d8c
1094 changed files with 97530 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
declare type Context = any;
declare type ToastType = 'loading' | 'success' | 'warning' | 'error';
declare type ToastPositionType = 'top' | 'middle' | 'bottom';
declare type ToastDirectionType = 'row' | 'column';
export declare type ToastOptionsType = {
context?: Context;
selector?: string;
icon?: string;
message?: string;
duration?: number;
theme?: ToastType;
placement?: ToastPositionType;
preventScrollThrough?: boolean;
direction?: ToastDirectionType;
close?: () => void;
};
declare function Toast(options: ToastOptionsType): void;
declare function showToast(options?: ToastOptionsType): void;
declare function hideToast(options?: ToastOptionsType): void;
export { Toast as default, showToast, hideToast };