[Improvement] component use bem mixin (#921)
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user