element-ui 单选框change
<el-radio
v-model="radio"
:label="item.id"
v-for="(item,index) in radioArr"
@change="radioChange"
:key="index"
>
{{item.name}}
</el-radio>
Data(){
Return{
radioArr:[
{
name:"精确试算",
id:"1"
},
{
name:"模糊试算",
id:"2"
}
],
}
}
methods:{
radioChange:function(val){
console.log(val)
}
版权声明:本文为weixin_44186787原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。