[improvement] Swipe: update indicator color (#2324)

This commit is contained in:
neverland
2018-12-18 23:00:13 +08:00
committed by GitHub
parent fdffccfc7d
commit dcc642ac59
4 changed files with 6 additions and 5 deletions

View File

@@ -19,7 +19,7 @@
<i
v-for="index in count"
:class="b('indicator', { active: index - 1 === activeIndicator })"
:style="indicatorStyle"
:style="index - 1 === activeIndicator ? indicatorStyle : null"
/>
</div>
</slot>