Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(statustag): change icon font-size and docs #504

Merged
merged 1 commit into from
Oct 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/statusTag/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ StatusTag 组件作用于任务运行状态效果展示
### StatusTag

| 参数 | 说明 | 类型 | 默认值 |
| ---------- | ------------------------------------------------------------------- | ------------------------------------------------------------------------------ | --------- | --- |
| color | 状态色,内置了六种颜色,不满足时可自定义(仅支持 RGB 和十六进制颜色) | `blue \| yellow \| green \| gray \| red \| purple \| cyan \| pink` \| `string` | `success` | - |
| ---------- | ------------------------------------------------------------------- | ------------------------------------------------------------------------------ | --------- |
| color | 状态色,内置了六种颜色,不满足时可自定义(仅支持 RGB 和十六进制颜色) | `blue \| yellow \| green \| gray \| red \| purple \| cyan \| pink` \| `string` | `green` |
| icon | 自定义图标 | `React.ReactNode` | - |
| loading | 状态标签载入状态 | `boolean` | `false` |
| type | 状态类型 | `default \| outline \| fill` | `default` |
| background | 背景颜色,仅在自定义颜色且为 fill 的情况下生效 | `string` | `--` |
| background | 背景颜色,仅在 type 为 fill 的情况下生效 | `string` | `--` |
1 change: 1 addition & 0 deletions src/statusTag/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ $colors: (
&__icon {
display: flex;
align-items: center;
font-size: 16px;
&--default {
display: inline-block;
width: 6px;
Expand Down
Loading