Skip to content

Commit

Permalink
feat(ns): 优化事件类型展示效果
Browse files Browse the repository at this point in the history
- 将事件类型字段从普通文本改为映射展示- 使用标签样式区分正常和警告事件,提高可读性
  • Loading branch information
weibaohui committed Nov 10, 2024
1 parent 6ae584e commit ddbdde1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion assets/pages/ns/event.json
Original file line number Diff line number Diff line change
Expand Up @@ -217,12 +217,16 @@
{
"name": "type",
"label": "type",
"type": "text",
"filterable": {
"options": [
"Normal",
"Warning"
]
},
"type": "mapping",
"map": {
"Normal": "<span class='label label-success'>Normal</span>",
"Warning": "<span class='label label-danger'>Warning</span>"
}
},
{
Expand Down

0 comments on commit ddbdde1

Please sign in to comment.