|
|
@@ -17,12 +17,12 @@ export function getTableEvent<T>(param: TableEventCB) {
|
|
|
selectedRow.value = record
|
|
|
const key = (record as any).key
|
|
|
const value = expandedRowKeys.value;
|
|
|
- if(value && value.length && value[0] === key) {
|
|
|
+ if (value && value.length && value[0] === key) {
|
|
|
expandedRowKeys.value = []
|
|
|
} else {
|
|
|
expandedRowKeys.value = [key]
|
|
|
}
|
|
|
- param.clickCB && param.clickCB()
|
|
|
+ param.clickCB && param.clickCB(record)
|
|
|
},
|
|
|
// onDblclick: () => { // 双击
|
|
|
// console.log('onDblclick');
|