Switch: pass id to native input element (#10862)

pull/10889/head
杨奕 2018-04-25 17:03:41 +08:00 committed by GitHub
parent 9f232cd388
commit 458d34a820
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -12,6 +12,7 @@
type="checkbox" type="checkbox"
@change="handleChange" @change="handleChange"
ref="input" ref="input"
:id="id"
:name="name" :name="name"
:true-value="activeValue" :true-value="activeValue"
:false-value="inactiveValue" :false-value="inactiveValue"
@ -89,7 +90,8 @@
name: { name: {
type: String, type: String,
default: '' default: ''
} },
id: String
}, },
data() { data() {
return { return {