[Improvement] simplify inner tag name (#395)

This commit is contained in:
neverland
2017-12-08 14:56:50 +08:00
committed by GitHub
parent 2cc5767a99
commit 3208d1bb3d
37 changed files with 199 additions and 199 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
<template>
<div class="van-switch" :class="[`van-switch--${value ? 'on' : 'off'}`, { 'van-switch--disabled': disabled }]" @click="toggleState">
<div class="van-switch__node van-hairline-surround">
<van-loading v-if="loading" class="van-switch__loading" />
<loading v-if="loading" class="van-switch__loading" />
</div>
<div class="van-switch__bg" />
</div>
@@ -14,7 +14,7 @@ export default {
name: 'van-switch',
components: {
[Loading.name]: Loading
Loading
},
props: {