<el-radio-group v-model="factoryId" @change="onRadioChange" >
<el-radio :label="item.id" :key="item.id" v-for="item in fOption">{{item.name}}</el-radio>
</el-radio-group>
<el-radio-group v-model="factoryId" @change="onRadioChange" >
<el-radio :label="item.id" :key="item.id" v-for="item in fOption">{{item.name}}</el-radio>
</el-radio-group>
本文标题:el-radio循环,拥有不同的id和label
本文链接:https://www.haomeiwen.com/subject/wrwzyktx.html
网友评论