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

This commit is contained in:
杨奕 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

View File

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