[Improvement] use bem mixin (#934)

This commit is contained in:
neverland
2018-04-25 11:50:10 +08:00
committed by GitHub
parent c012a65ba3
commit 8e911c75f9
25 changed files with 107 additions and 116 deletions

View File

@@ -1,11 +1,11 @@
<template>
<span
class="van-tag van-hairline--surround"
:class="{
[`van-tag--${type}`]: type,
'van-tag--plain': plain,
'van-tag--mark': mark
}"
class="van-hairline--surround"
:class="b({
mark,
plain,
[type]: type
})"
>
<slot />
</span>