# Message 消息通知
# 基础用法
Copy
# 进阶用法
Copy
# Attributes
# Q-Message
属性名 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
badgeProps | 标记配置 | Object | badgeProps | — |
iconProps | 图标配置 | Object | iconProps | — |
tooltipProps | 提示配置 | Object | tooltipProps | — |
popoverProps | 弹框配置 | Object | popoverProps | — |
showTooltip | 显示提示 | Boolean | — | false |
headerText | 消息头部 | String | — | '消息' |
headerTextStyle | 头部样式 | Object | — | {fontSize: 'larger', textAlign: 'left', margin: '0', flex: 1} |
refreshIcon | 按钮图标 | String | — | 'el-icon-refresh' |
fetchData | 按钮事件 | Function | — | — |
popoverWidth | 弹出框宽度 | String /Number | — | 500 |
scrollHeight | 滚动条高度 | Number | — | 150 |
time | 重复请求时间(s) | Number | -1(不重复) | 60 |
hoverTime | 触摸触发时间(ms) | Number | — | 500 |
# badgeProps
badgeProps
具体属性讲解
属性名 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
attrs | 属性透传 | Object | - | - |
listeners | 事件透传 | Object | - | - |
# iconProps
iconProps
具体属性讲解
属性名 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
iconClass | 图标 | String | - | 'el-icon-bell' |
style | 样式 | Object | - | style: {fontSize: '20px'} |
# tooltipProps
tooltipProps
具体属性讲解
属性名 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
attrs | 属性透传 | Object | - | - |
listeners | 事件透传 | Object | - | - |
content | 内容 | String | - | '消息' |
popoverProps
具体属性讲解
属性名 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
attrs | 属性透传 | Object | - | - |
listeners | 事件透传 | Object | - | - |
# Slots
属性名 | 说明 |
---|---|
header | 标题插槽 |
button | 按钮插槽 |