Skip to content

Alert 警告提示

用于页面中展示重要的提示信息,静态展示,不会自动消失。

基础用法

类型

可关闭

带描述

API

Props

属性类型默认值说明
typeAlertType'info'类型:info | success | warning | danger
messagestring提示内容(标题)
descriptionstring详细描述,设置后 message 加粗显示
closablebooleanfalse是否显示关闭按钮
showIconbooleantrue是否显示图标
classNamestring自定义 class
styleobject自定义样式

Events

事件说明
onClose点击关闭按钮回调

AUI Vue Components — Built with Vue 3 & VitePress