mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[Improvement] Tag: adjust style (#689)
This commit is contained in:
parent
d36dd61bc9
commit
8f2bd93786
@ -1,5 +1,12 @@
|
||||
<template>
|
||||
<span class="van-tag van-hairline--surround" :class="{ [`van-tag--${type}`]: type, 'van-tag--plain': plain, 'van-tag--mark': mark }">
|
||||
<span
|
||||
class="van-tag van-hairline--surround"
|
||||
:class="{
|
||||
[`van-tag--${type}`]: type,
|
||||
'van-tag--plain': plain,
|
||||
'van-tag--mark': mark
|
||||
}"
|
||||
>
|
||||
<slot />
|
||||
</span>
|
||||
</template>
|
||||
|
@ -2,9 +2,9 @@
|
||||
|
||||
.van-tag {
|
||||
display: inline-block;
|
||||
line-height: 14px;
|
||||
padding: 1px 5px;
|
||||
border-radius: 2px;
|
||||
padding: 0 5px;
|
||||
line-height: 18px;
|
||||
border-radius: 3px;
|
||||
font-size: 10px;
|
||||
background: $gray;
|
||||
color: $white;
|
||||
@ -15,6 +15,7 @@
|
||||
}
|
||||
|
||||
&--mark {
|
||||
padding-right: 7px;
|
||||
border-radius: 0 8px 8px 0;
|
||||
|
||||
&::after {
|
||||
|
Loading…
x
Reference in New Issue
Block a user