el-table 实现单选

 <el-table v-loading="loading" highlight-current-row :data="tableData" border style="width: 100%" @current-change="handleSelectChange">
            <el-table-column label="选择" width="55" align="center" fixed="left">
              <template slot-scope="scope">
                <el-radio v-model="tableradio" :label="scope.row"><i /></el-radio>
              </template>
            </el-table-column>
           </el-table>
  handleSelectChange(currentRow) {
      this.tableradio = currentRow
      this.selectId = currentRow.eid
      console.log(currentRow)
    },

 

posted @   柠檬青味  阅读(2177)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 地球OL攻略 —— 某应届生求职总结
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 提示词工程——AI应用必不可少的技术
· .NET周刊【3月第1期 2025-03-02】
点击右上角即可分享
微信分享提示