vue el-table checkbox 复选框只能选中一个

image.png
 
                
                

                
                

                
                
            
 select(selection, row) {
            if (selection.length > 1) {
                let del_row = selection.shift()
                this.$refs.multipleTable.toggleRowSelection(del_row, false)
            }
        },
        selectAll(selection) {
            if (selection.length > 1) {
                selection.length = 1
            }
        },

你可能感兴趣的:(vue el-table checkbox 复选框只能选中一个)