lanyun-alert
介绍
该组件用于提示用户消息。
使用方法
import "../../components/lanyun-alert/lanyun-alert.stml";
例子
<lanyun-alert
@click="hideAlert"
:show="show"
:show-mask="true"
title="Hello"
content="欢迎使用LanyunAlert"
/>
props 属性
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
show | 是否显示提示框, 选填 | boolean | false |
show-mask | 是否显示提示框, 选填 | boolean | true |
title | 标题, 选填 | string | - |
content | 内容, 选填 | string | - |
btn-name | 按钮文字, 选填 | string | 确认 |
events 事件
事件名 | 说明 | 回调参数 |
---|---|---|
click | 点击按钮时触发 |