Skip to content

Toast 提示

Toast 提示打开
9:41
/pages/toast/index

介绍

weui-toast 用于轻量反馈,支持成功、警示、加载和纯文字提示。

基础用法

vue
<weui-toast v-model="visible" type="success" text="已完成" />
<weui-toast v-model="loading" type="loading" text="加载中" />

Props

属性说明类型默认值
modelValue是否显示,支持 v-modelbooleanfalse
type类型,可选 successwarnloadingtextstring'success'
text提示文字string''
textMore是否使用多行文字样式booleanfalse
mask是否显示透明遮罩booleantrue
closable点击遮罩是否关闭booleanfalse

Events

事件名说明
update:modelValue显示状态变化
close关闭时触发

Released under the MIT License.