组件用于消息提醒,在页面顶部弹出提示,可自动收起
import '../../components/lanyun-notify.stml'
<lanyun-notify @end="handleClose" :show="show" content="登录成功" type="success" :duration="2000" />
| 参数 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| show | 显示状态,必填,可选值为 true false | boolean | - |
| content | 显示的内容,选填 | string | - |
| type | 显示位置,选填,可选值为 primary success error warning info | string | primary |
| duration | 显示时间,选填 | number | 2000 |
| height | 显示高度,选填 | number | 50 |
| 事件名 | 说明 | 回调参数 |
|---|---|---|
| end | 到显示时间后出发的事件 | - |
该组件最好放在底部 否则会出现z-index问题
