element-ui使用注意事项

2018-10-23  本文已影响0人  嗨姑娘_大个子
1. 表格自定义radio单选框
  1. label=“scope.$index”:为label变量动态赋值当前行的index值;否则会触发所有radio的选中。
  2. radio选择框后面动态生成的index值,可以使用添加 $nbsp; 清除。
<el-table-column align="center" >
    <template slot-scope="scope" >
        <el-radio v-model="radio" :label="scope.$index" >&nbsp;</el-radio>
    </template>
</el-table-column>
上一篇 下一篇

猜你喜欢

热点阅读