[Improvement] component use bem mixin (#921)

This commit is contained in:
neverland
2018-04-24 11:53:06 +08:00
committed by GitHub
parent 86184e090e
commit b0f4096e88
14 changed files with 66 additions and 56 deletions
+4 -4
View File
@@ -1,11 +1,11 @@
<template>
<div class="van-circle" :style="style">
<div :class="b()" :style="style">
<svg viewBox="0 0 1060 1060">
<path class="van-circle__hover" :style="hoverStyle" :d="path" />
<path class="van-circle__layer" :style="layerStyle" :d="path" />
<path :class="b('hover')" :style="hoverStyle" :d="path" />
<path :class="b('layer')" :style="layerStyle" :d="path" />
</svg>
<slot>
<div class="van-circle__text">{{ text }}</div>
<div :class="b('text')" class="van-circle__text">{{ text }}</div>
</slot>
</div>
</template>