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

 

上一篇:使用 .net MVC+Vue.js 实现 el-steps


下一篇:Vue学习笔记01