el-table:如何在type=‘ checkbox ‘中使用单选

如何在 type=’ checkbox ’ 中使用单选

<el-table
    ref="table"
    @select="select"
    @select-all="selectAll"
  >
select(selection, row) {
     if (selection.length > 1) {
       const del_row = selection.shift()
       this.$refs.table.toggleRowSelection(del_row, false)
     }
},
selectAll(selection) {
    selection.length > 1 ? selection.length = 1 : ''
}