效果图如下单选切换,绑定数据

element el-radio单选切换

 

通过  slot-scope="scope" 绑定 传过来的bbbb实现数据绑定切换
可以打印scope.row会发现是 
el-table 的 :data 绑定的数组
 <el-table-column  prop="bbbb"  fixed="right" width="150" type="radio">
                 <template slot-scope="scope">
                    <el-radio v-model="scope.row.bbbb" label="1"></el-radio>
                    <el-radio v-model="scope.row.bbbb" label="2"></el-radio>
                </template>
</el-table-column>

 

相关文章:

  • 2022-12-23
  • 2022-03-06
  • 2022-12-23
  • 2022-12-23
  • 2021-10-27
  • 2021-09-12
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-11-11
  • 2021-10-17
  • 2022-12-23
  • 2021-06-29
  • 2022-12-23
  • 2021-06-18
相关资源
相似解决方案