# Function: showToast

showToast(params: ShowToastParams): Promise‹ShowToastRes

显示消息提示框

# 参数:

属性 类型 描述
params ShowToastParams 显示消息提示框

ShowToastParams

属性 类型 描述
duration? number 提示的延迟时间
icon? Icon 图标
image? string 自定义图标的本地路径,image 的优先级高于 icon
mask? boolean 是否显示透明蒙层,防止触摸穿透
title string 提示的内容
complete? Method 接口调用结束的回调函数(调用成功、失败都会执行)
fail? Method 接口调用失败的回调函数
success? Method 接口调用成功的回调函数

# 返回值:

Promise‹ShowToastRes