mirror of
https://github.com/itorr/one-last-image.git
synced 2026-01-02 20:06:03 +08:00
ui switch 加上 disabled 切换动画、去除 iOS 点击时的叠影
This commit is contained in:
@@ -228,6 +228,7 @@ footer{
|
||||
}
|
||||
}
|
||||
}
|
||||
transition: opacity .3s ease;;
|
||||
&[data-disabled="true"]{
|
||||
opacity: 0.5;
|
||||
pointer-events: none;
|
||||
|
||||
@@ -2,7 +2,8 @@ Vue.component('ui-switch',{
|
||||
template: `<span class="ui-switch-box"
|
||||
:data-checked="value"
|
||||
:data-disabled="disabled"
|
||||
@click="_switch">
|
||||
@touchend.prevent.stop="_switch"
|
||||
@click.prevent.stop="_switch">
|
||||
<a class="switch" :style="{color}">
|
||||
<i class="slider"></i>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user