美文网首页
element-ui使用注意事项

element-ui使用注意事项

作者: 嗨姑娘_大个子 | 来源:发表于2018-10-23 19:21 被阅读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>

相关文章

网友评论

      本文标题:element-ui使用注意事项

      本文链接:https://www.haomeiwen.com/subject/jczazftx.html