feat(Tag): add closeable prop (#4763)

This commit is contained in:
neverland
2019-10-17 20:55:24 +08:00
committed by GitHub
parent 8d55e737c6
commit 7999098060
7 changed files with 212 additions and 49 deletions
+11 -7
View File
@@ -1,7 +1,8 @@
@import '../style/var';
.van-tag {
display: inline-block;
display: inline-flex;
align-items: center;
padding: @tag-padding;
color: @tag-text-color;
font-size: @tag-font-size;
@@ -58,19 +59,18 @@
}
&--mark {
padding-right: .6em;
border-radius: 0 .8em .8em 0;
padding-right: .7em;
&,
&::after {
border-radius: 0 1.6em 1.6em 0;
border-radius: 0 @tag-round-border-radius @tag-round-border-radius 0;
}
}
&--round {
border-radius: @tag-round-border-radius;
&,
&::after {
border-radius: @tag-round-border-radius * 2;
border-radius: @tag-round-border-radius;
}
}
@@ -81,4 +81,8 @@
&--large {
font-size: @tag-large-font-size;
}
&__close {
margin-left: 2px;
}
}