Commit 458d34a8 authored by 杨奕's avatar 杨奕 Committed by GitHub

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

parent 9f232cd3
...@@ -12,6 +12,7 @@ ...@@ -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 @@ ...@@ -89,7 +90,8 @@
name: { name: {
type: String, type: String,
default: '' default: ''
} },
id: String
}, },
data() { data() {
return { return {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment