mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-24 18:36:51 +08:00
Switch 组件: 个人建议加了动画效果 (#59)
This commit is contained in:
parent
86d6b7097f
commit
765a97106a
@ -37,7 +37,7 @@
|
|||||||
:maxlength="maxlength"
|
:maxlength="maxlength"
|
||||||
:disabled="disabled"
|
:disabled="disabled"
|
||||||
:readonly="readonly">
|
:readonly="readonly">
|
||||||
<van-icon v-if="icon" :name="icon" class="van-field__icon" @click="onIconClick"></van-icon>
|
<van-icon v-if="icon && currentValue" :name="icon" class="van-field__icon" @click="onIconClick"></van-icon>
|
||||||
</van-cell>
|
</van-cell>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
left: 1px;
|
left: 1px;
|
||||||
top: 1px;
|
top: 1px;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
|
transition: transform .3s;
|
||||||
&::after {
|
&::after {
|
||||||
@mixin border-retina (top, right, bottom, left), rgba(0, 0, 0, .1);
|
@mixin border-retina (top, right, bottom, left), rgba(0, 0, 0, .1);
|
||||||
border-radius: 27px;
|
border-radius: 27px;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user