mirror of
https://github.com/jeecgboot/jeecg-boot.git
synced 2025-08-29 09:30:20 +00:00
-- author:liaozhiyang---date:20250813--for:【issues/8690】BasicTable的rowSelection新增onSelect方法 ---
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
|
@@ -25,7 +25,7 @@ export interface TableRowSelection<T = any> 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
|
||||
|
Reference in New Issue
Block a user