IssueTop
说明
- IssueTop组件为issue置顶组件,demo如下
// tempalte
<issue-top
title="DV300开关机压测出现系统挂3516DV300开关机压测出现系统挂"
user-name="李轩扬"
created-time="2023-07-25"
index-label="1"
:is-open="true"
:hide-close="false"
@handle-close="handleIssueTopClose"
>
</issue-top>
// script
const handleIssueTopClose = () => {
};
Props
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|---|---|---|---|---|
| title | 标题 | string | ||
| createdTime | 创建时间 | string | ||
| userName | 用户名 | string | ||
| hideClose? | 隐藏关闭按钮 | boolean | false | |
| indexLabel? | index名称自定义 | string | ||
| isOpen? | 是否是开启 | boolean | true |
Emits
| 方法 | 说明 | 返回值 |
|---|---|---|
| handleClose | 点击关闭触发 | props(当前卡片对象信息) |
Slots
| 名称 | 说明 |
|---|---|
| header | 标题行区域插槽 |
| content | 用户名,创建时间区域插槽 |
| status | 开启/关闭状态区域插槽 |