mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-02 04:08:10 +08:00
Switch: pass id to native input element (#10862)
This commit is contained in:
parent
9f232cd388
commit
458d34a820
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user