# harmonyToast **Repository Path**: StephenTom/harmony-toast ## Basic Information - **Project Name**: harmonyToast - **Description**: 基于CustomDialogController自定义Toast - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-07-02 - **Last Updated**: 2024-07-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # harmonyToast #### 介绍 基于CustomDialogController自定义Toast #### 安装教程 1. ohpm install @hong/harmonytoast #### 使用说明 1. 设置 toast 主题 public setThemeConfig(setting: (config: ToastTheme) => void) 2. 显示文本 public showText(msg: string, duration?: number) 3. 显示成功提示 public showSuccess(msg?: string, duration?: number) 4. 显示失败提示 public showFail(msg?: string, duration?: number) 5. 显示加载 public showLoading(msg?: string)