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