This commit is contained in:
cookfront
2017-03-03 16:40:48 +08:00
parent b8a16cabc2
commit 05edb4a391
9 changed files with 23 additions and 21 deletions

View File

@@ -42,7 +42,7 @@ export default {
},
computed: {
switchStates: function() {
let switchStates = ['zan-switch--' + (this.checked ? 'on' : 'off'),
const switchStates = ['zan-switch--' + (this.checked ? 'on' : 'off'),
'zan-switch--' + (this.disabled ? 'disabled' : '')];
return switchStates;