Skip to content

Commit

Permalink
feat: fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
fundon committed Mar 11, 2018
1 parent 11879f8 commit c4272bc
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions src/Switch.vue
Original file line number Diff line number Diff line change
@@ -1,20 +1,13 @@
<template>
<label class="switch" :class="classObject">
<input
ref="input"
type="checkbox"
class="checkbox"
v-model="checked"
@change="input"
v-bind="{
<input ref="input" type="checkbox" class="checkbox" v-model="checked" @change="input" v-bind="{
id,
name,
value,
disabled,
required,
class: inputClass
}"
>
}">
</label>
</template>

Expand Down Expand Up @@ -89,7 +82,7 @@ export default {
},
set(checked, model, t, f, dt) {
if (dt === 2) {
const i = model.indexOf(value)
const i = model.indexOf(checked)
const has = i !== -1
if (checked && !has) {
model.push(t)
Expand Down

0 comments on commit c4272bc

Please sign in to comment.