其他分享
首页 > 其他分享> > el-table 实现单选

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)
    },

 

标签:el,currentRow,console,log,handleSelectChange,单选,table
来源: https://www.cnblogs.com/lemonmoney/p/15813835.html