<el-table-column
label="单选框"
width="50px"
align="center"
header-align="center"
>
<template slot-scope="scope">
<el-radio
:label="scope.row.id"
v-model="scopeRadio"
@change.native="getScopeRow(scope.$index, scope.row)"
style="margin-left: 10px"
> </el-radio
>
</template>
</el-table-column>
data(){
return{
scopeRadio:false,
templateSelection:{}
}
}
methods:{
getScopeRow(index, row) {
this.templateSelection = row;
},
}