Skip to content

Commit

Permalink
feat(web): checktag
Browse files Browse the repository at this point in the history
  • Loading branch information
sheepluo committed Sep 24, 2023
1 parent cd4e2dc commit 08d3e8d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/web/api/tag.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ spline: data

### 可选择标签组

{{ tag-group }}
{{ check-tag-group }}

### 超长省略文本标签

Expand Down
10 changes: 8 additions & 2 deletions style/web/components/tag/_index.less
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@
transition: background-color @anim-duration-base @anim-time-fn-easing;
cursor: pointer;

&.@{prefix}-tag--default.@{prefix}-tag--light.@{prefix}-tag--unchecked {
&.@{prefix}-tag--default.@{prefix}-tag--dark:not(.@{prefix}-tag--checked) {
&:hover {
background-color: @tag-grey-hover-color;
}
Expand All @@ -268,7 +268,7 @@
}
}

&.@{prefix}-tag--default.@{prefix}-tag--outline.@{prefix}-tag--unchecked {
&.@{prefix}-tag--default.@{prefix}-tag--outline:not(.@{prefix}-tag--checked) {
&:hover {
color: @tag-grey-outline-hover-color;
}
Expand All @@ -289,6 +289,12 @@
}
}

.@{prefix}-check-tag-group {
.@{prefix}-tag:not(:last-child) {
margin-right: @check-tag-margin-left;
}
}

a {
.@{prefix}-tag {
cursor: pointer;
Expand Down
1 change: 1 addition & 0 deletions style/web/components/tag/_var.less
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,4 @@
// margin
@tag-icon-margin-right: @comp-margin-xs;
@tag-close-icon-margin-right: @comp-margin-s;
@check-tag-margin-left: @comp-margin-s;

0 comments on commit 08d3e8d

Please sign in to comment.