Message 消息
展开代码
Attributes
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---|---|---|---|---|
| message | 消息提示文本 | string | - | - |
| type | 消息类型 | string | info, success, error, warning | info |
| duration | 消息出现时长 | number,单位:ms | - | 6000ms |
| enableHtml | 允许插入html | boolean | - | false |
| closeBtn | 自定义关闭按钮文案和回调,有效的key包括”btnTex'(value type:String),'callback'(value type: Function)} | object | - | - |
| position | 消息提示出现位置 | string | top,middle,bottom | top |
Modal 模态框
展开代码
Attributes
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---|---|---|---|---|
| title | 模态框标题 | string | - | - |
| content | 模态框内容 | string /html片段(需要设置enableContentHtml是true) | - | - |
| enableContentHtml | 允许插入html作为内容 | boolean | - | false |
| btnConfig | 自定义关闭按钮文案和回调,有效的key包括不同类型按钮文案和按钮点击回调,如下'confrimCallback', 'cancelCallback', 'cancelModalCallback', 'confirmText', 'cancelText')} | object | - | - |
Popover 弹出框
展开代码
Attributes
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---|---|---|---|---|
| content | 消息提示文本 | string | - | - |
| placement | 出现位置 | string | 消息提示文本 | top |
| trigger | 触发方式 | string | click, hover | click |
Dialog 模态框
用于移动端弹空组件
基础用法
展开代码
Attributes
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---|---|---|---|---|
| title | 模态框标题 | string | - | - |
| text | 模态框内容 | string | - | - |
| showCancelBtn | 取消按钮是否显示 | boolean | - | false |
| confirmText | 确认按钮文字 | string | - | 确认 |
| confirm | 确认按钮事件 | - | - | - |
| cancel | 取消按钮事件 | - | - | - |