可以通過屬性控制
expandIconAsCell={false} // 去除表格標題欄+號
expandIconColumnIndex={-1} // 去除表格body里的+號
或者通過屬性 expandedRowKeys 來控制
// 只允許當行展開邏輯 if (this.curExpandedRowKeys.length > 0) { let index = this.curExpandedRowKeys.indexOf(rowkey); if (index > -1) { this.curExpandedRowKeys.splice(index, 1); } else { this.curExpandedRowKeys.splice(0, this.curExpandedRowKeys.length); this.curExpandedRowKeys.push(rowkey); } } else { this.curExpandedRowKeys.push(rowkey); } }