Skip to content

Msg 提示页

提示页,常用布局。

$LOWEST_VERSION$ 版本提供

基本用法

设置 type 类型。

html
<wd-msg type="success" title="操作成功" desc="内容详情,根据实际需要进行展示,内容为空则不展示展示" color="#07c160">
  <!--自定义内容部分-->
  <view class="mt-5"><wd-button size="medium" block>主要操作</wd-button></view>
  <view class="mt-5"><wd-button size="medium" type="info" block>辅助操作</wd-button></view>
</wd-msg>

Slots

标签显示内容,自定义内容

Attributes

参数说明类型可选值默认值最低版本
type主题类型string'success'、'warn'、'clear'、'waiting'success$LOWEST_VERSION$
title文字string-$LOWEST_VERSION$
desc描述文字string--$LOWEST_VERSION$
sizeicon大小number-64$LOWEST_VERSION$
coloricon颜色string--$LOWEST_VERSION$
src自定义图标string图片图标,置src 之后,type失效-$LOWEST_VERSION$
width图标宽度number图片图标有效90$LOWEST_VERSION$
height图标高度number图片图标有效90$LOWEST_VERSION$

外部样式类

类名说明最低版本
custom-class根节点样式$LOWEST_VERSION$
custom-style根节点样式$LOWEST_VERSION$

源代码

文档
组件

Released under the MIT License.

Ask me