elementUI-table中点击行和radio按钮都可以实现单选
<el-table
:data="mlist"
highlight-current-row
border
style="width: 100%"
@current-change="handleCurrentChange">
<el-table-column label="" width="35" align="center">
<template slot-scope="scope">
<el-radio :label="scope.row.materialId" v-model="tempRadio" @change="getTemplateRow(scope.row)"></el-radio>
</template>
</el-table-column>
</el-table>
selectHandle(index,row){
this.currentRow = row;
},
handleCurrentChange(row){
if(!row) return
this.tempRadio = row.materialId
this.currentRow = row
}
