diff --git a/jeecgboot-vue3/src/components/Table/src/hooks/useCustomSelection.tsx b/jeecgboot-vue3/src/components/Table/src/hooks/useCustomSelection.tsx index 38c6fa7a9..2f9a76d08 100644 --- a/jeecgboot-vue3/src/components/Table/src/hooks/useCustomSelection.tsx +++ b/jeecgboot-vue3/src/components/Table/src/hooks/useCustomSelection.tsx @@ -348,6 +348,9 @@ export function useCustomSelection( onSelectChild(record, checked); updateSelected(record, checked); onSelectParent(record, checked); + // update-begin--author:liaozhiyang---date:20250813---for:【issues/8690】BasicTable的rowSelection新增onSelect方法 + propsRef.value.rowSelection?.onSelect?.(toRaw(record), checked, toRaw(selectedRows.value)); + // update-end--author:liaozhiyang---date:20250813---for:【issues/8690】BasicTable的rowSelection新增onSelect方法 emitChange(); } diff --git a/jeecgboot-vue3/src/components/Table/src/types/table.ts b/jeecgboot-vue3/src/components/Table/src/types/table.ts index 8cc12fb51..5fb6eafca 100644 --- a/jeecgboot-vue3/src/components/Table/src/types/table.ts +++ b/jeecgboot-vue3/src/components/Table/src/types/table.ts @@ -25,7 +25,7 @@ export interface TableRowSelection extends ITableRowSelection { * Callback executed when select/deselect one row * @type Function */ - onSelect?: (record: T, selected: boolean, selectedRows: Object[], nativeEvent: Event) => any; + onSelect?: (record: T, selected: boolean, selectedRows: Object[]) => any; /** * Callback executed when select/deselect all rows