huangbin %!s(int64=4) %!d(string=hai) anos
pai
achega
28d0102543
Modificáronse 2 ficheiros con 3 adicións e 3 borrados
  1. 1 1
      src/common/setup/table/button.ts
  2. 2 2
      src/common/setup/table/event.ts

+ 1 - 1
src/common/setup/table/button.ts

@@ -119,7 +119,7 @@ export function getBtnList(menuType: keyof ButtonListKey, hasDetail: boolean, co
     return handleBtnList(list, menuType, hasDetail, commonName)
 }
 
-export function _getBtnList(menuType: keyof ButtonListKey, hasDetail: boolean) {
+export function _getBtnList(menuType: keyof ButtonListKey, hasDetail: boolean): Ref<BtnList[][]> {
     const data = getThirdMenuData()
     const list = data.find((e) => e.code === menuType);
     return _handleBtnList(list, hasDetail)

+ 2 - 2
src/common/setup/table/event.ts

@@ -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');