1. 表格自定义radio
单选框
- label=“scope.$index”:为label变量动态赋值当前行的index值;否则会触发所有radio的选中。
- radio选择框后面动态生成的index值,可以使用添加 $nbsp; 清除。
<el-table-column align="center" >
<template slot-scope="scope" >
<el-radio v-model="radio" :label="scope.$index" > </el-radio>
</template>
</el-table-column>
网友评论