Vue Elementui 的单选按钮
<el-table-column label="" width="50">
<template scope="scope">
<el-radio :label="scope.$index" v-model="radio" @change.native="getCurrentRow(scope)"><span></span></el-radio>
</template>
</el-table-column>
加入span标签来清除单选按钮显示下标的问题
getCurrentRow(scope){
this.radioID = scope.row.fid;
},
通过定义的getCurrentRow(scope)方法 来获取参数
定义 ‘’radio:
实现按钮的选中