Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(comp:tag): support compact group tags (#1779)
- Loading branch information
Showing
6 changed files
with
141 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
title: | ||
zh: 组合标签 | ||
en: Grouped tag | ||
order: 12 | ||
--- | ||
|
||
## zh | ||
|
||
通过使用 `IxTagGroup` 并设置 `gap` 为 `0` 来创建组合标签 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<template> | ||
<IxSpace vertical size="md"> | ||
<IxSpace> | ||
<IxTagGroup :gap="0"> | ||
<IxTag filled>未定级</IxTag> | ||
<IxTag>1.27</IxTag> | ||
</IxTagGroup> | ||
<IxTagGroup :gap="0"> | ||
<IxTag status="success" filled>安全</IxTag> | ||
<IxTag status="success">2.33</IxTag> | ||
</IxTagGroup> | ||
<IxTagGroup :gap="0"> | ||
<IxTag status="info" filled>信息</IxTag> | ||
<IxTag status="info">3.69</IxTag> | ||
</IxTagGroup> | ||
<IxTagGroup :gap="0"> | ||
<IxTag status="warning" filled>低危</IxTag> | ||
<IxTag status="warning">5.13</IxTag> | ||
</IxTagGroup> | ||
<IxTagGroup :gap="0"> | ||
<IxTag status="risk" filled>中危</IxTag> | ||
<IxTag status="risk">7.03</IxTag> | ||
</IxTagGroup> | ||
<IxTagGroup :gap="0"> | ||
<IxTag status="error" filled>高危</IxTag> | ||
<IxTag status="error">9.21</IxTag> | ||
</IxTagGroup> | ||
<IxTagGroup :gap="0"> | ||
<IxTag status="fatal" filled>严重</IxTag> | ||
<IxTag status="fatal">10.33</IxTag> | ||
</IxTagGroup> | ||
</IxSpace> | ||
<IxSpace> | ||
<IxTagGroup :gap="0"> | ||
<IxTag filled style="--ix-tag-color: #f9dc97; --ix-tag-background-color: #5a616f">恶意病毒</IxTag> | ||
<IxTag>1.27</IxTag> | ||
</IxTagGroup> | ||
<IxTagGroup :gap="0"> | ||
<IxTag filled style="--ix-tag-color: #fff; --ix-tag-background-color: #6f7785">ATTACK</IxTag> | ||
<IxTag style="--ix-tag-color: #6f7785; --ix-tag-background-color: #e1e5eb">持久化</IxTag> | ||
</IxTagGroup> | ||
</IxSpace> | ||
</IxSpace> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,8 @@ | ||
| 名称 | 描述 | 类型 | default | dark | | ||
|---|---|---|---|---| | ||
| `bgColorFilled` | | `string` | `#99acd1` | `#99acd1` | | ||
| `borderRadius` | | `number` | `2` | `2` | | ||
| `borderWidth` | | `number` | `1` | `1` | | ||
| `errorBgColor` | | `string` | `rgba(255, 87, 82, 0.1)` | `rgba(232, 81, 76, 0.2)` | | ||
| `fatalBgColor` | | `string` | `rgba(130, 1, 14, 0.1)` | `rgba(143, 30, 31, 0.2)` | | ||
| `infoBgColor` | | `string` | `rgba(28, 110, 255, 0.1)` | `rgba(64, 131, 232, 0.2)` | | ||
| `minWidthNumeric` | | `number` | `64` | `64` | | ||
| `minWidthRect` | | `number` | `40` | `40` | | ||
| `minWidthRound` | | `number` | `48` | `48` | | ||
| `riskBgColor` | | `string` | `rgba(250, 114, 27, 0.1)` | `rgba(232, 134, 65, 0.2)` | | ||
| `successBgColor` | | `string` | `rgba(18, 166, 121, 0.1)` | `rgba(64, 198, 149, 0.2)` | | ||
| `warningBgColor` | | `string` | `rgba(253, 170, 29, 0.1)` | `rgba(253, 170, 29, 0.2)` | | ||
| `bgColorFilled` | 标签背景颜色 | `string` | `#99acd1` | `#99acd1` | | ||
| `borderRadius` | 标签边框圆角尺寸 | `number` | `2` | `2` | | ||
| `borderWidth` | 标签边框尺寸 | `number` | `1` | `1` | | ||
| `minWidthNumeric` | numeric标签最小宽度 | `number` | `64` | `64` | | ||
| `minWidthRect` | rect标签最小宽度 | `number` | `40` | `40` | | ||
| `minWidthRound` | round标签最小宽度 | `number` | `48` | `48` | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters