Skip to content

Alert 警告提示 ​

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

基础用法 ​

loading

不同类型 ​

loading

可关闭 ​

loading

带图标 ​

loading

Props 属性 ​

属性名类型默认值说明
titlestring—警告提示的标题
contentstring—警告提示的内容
variantAlertVariantfilled警告提示的变体,可选值为 filled、outlined
colorTypeAlertColorTypeprimary警告提示的颜色类型,可选值为 primary、success、danger、warning、secondary
closablebooleantrue是否可关闭
iconComponent—自定义图标组件
closeIconComponent—自定义关闭图标组件

Events 事件 ​

事件名说明回调参数
close关闭时触发—