[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
+2 -1
View File
@@ -32,10 +32,10 @@
&__indicator {
opacity: .3;
border-radius: 100%;
background-color: @blue;
width: @swipe-indicator;
height: @swipe-indicator;
transition: opacity .2s;
background-color: @border-color;
&:not(:last-child) {
margin-right: @swipe-indicator;
@@ -43,6 +43,7 @@
&--active {
opacity: 1;
background-color: @blue;
}
}
}
+1 -1
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>