feat:init

This commit is contained in:
zhongyidian committed 2025-12-29 19:19:10 +08:00
1 parent 53d0eeac6b
commit ae0c050010
494 files changed
+17701 -2318

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
// 全局 toast 对象(推荐使用)
export { toast } from "./ToastManager";
// Toast 组件
export { Toast } from "./Toast";
// Hook(向后兼容,推荐直接使用 toast 对象)
export { useToast } from "./useToast";
// 类型导出
export type {
ToastType,
ToastPosition,
ToastOptions,
ToastInstance,
} from "./types";
// 废弃的 Provider(保留以保持向后兼容,但不推荐使用)
export { ToastProvider, useToastContext } from "./ToastProvider";