Skip to content

Msg 提示页

Msg 提示页打开
9:41
/pages/msg/index

介绍

weui-msg 用于结果页、状态页和业务反馈页,支持成功、警示、信息、等待和无图标样式。

基础用法

vue
<weui-msg
  type="success"
  title="操作成功"
  desc="内容详情,可根据实际需要安排"
  :actions="[{ text: '推荐操作' }, { text: '辅助操作', type: 'default' }]"
/>

Props

属性说明类型默认值
type类型,可选 successwarninfowaitingnonestring'success'
title标题string''
desc描述string''
primaryDesc强调描述string''
tips底部提示string''
extra额外信息string''
actions操作按钮数组,支持 { text, type, disabled }array[]
alignTop是否顶部对齐booleanfalse

Slots

插槽名说明
icon自定义图标
text自定义标题和描述区域
custom自定义内容区域
actions自定义操作区域
tips自定义提示区域
extra自定义额外区域

Events

事件名说明回调参数
action-click点击默认操作按钮action, index

Released under the MIT License.