ラジオへElementUI EL-テーブル形式行選択ボックス

まず、テーブルギガ

<el-table-column type="selection" width="55"></el-table-column>

その後、すべてのヘッダをオフに隠れ選択なし]を選択

thead .el-table-column--selection .cell{
    display: none;
}

平板状とref:例えば、ref="Table"(属性に追加EL-テーブル)
イベントテーブルギガへ@selection-change="chooseInstance"

chooseInstance (val) {
    if (val.length > 1) {
        this.$refs.Table.clearSelection()
        this.$refs.Table.toggleRowSelection(val.pop())
    } else {
    }
},

あなたが達成したい場合は、ラジオで、テーブルの行をクリックして、追加@current-changeイベント:
イベント:

currentChange(currentRow, oldCurrentRow) {
    this.$refs.Table.toggleRowSelection(currentRow)
}

おすすめ

転載: www.cnblogs.com/wbyixx/p/11934719.html