Alert 警告

用于页面中展示重要的提示信息。

基础用法

添加 type 属性设置不同的样式

自定义关闭文字

主题

图标

Alert API

Alert Props

属性名描述类型默认值
type样式类型enuminfo
title标题string——
description额外描述string——
closable是否可关闭booleantrue
effect主题enumlight
showIcon是否在左侧显示图标,图标跟类型相关booleanfalse
closeText自定义关闭图标string——
center是否为居中布局booleanfalse

Alert Emits

事件名描述类型
close关闭时的回调Function

Alert Slots

插槽名描述
title标题内容
上次更新时间: