mirror of https://github.com/jeecgboot/jeecg-boot
-- author:liaozhiyang---date:20250813--for:【issues/8690】BasicTable的rowSelection新增onSelect方法 ---
parent
35852d41f1
commit
1de07ff3ff
|
@ -348,6 +348,9 @@ export function useCustomSelection(
|
||||||
onSelectChild(record, checked);
|
onSelectChild(record, checked);
|
||||||
updateSelected(record, checked);
|
updateSelected(record, checked);
|
||||||
onSelectParent(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();
|
emitChange();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ export interface TableRowSelection<T = any> extends ITableRowSelection {
|
||||||
* Callback executed when select/deselect one row
|
* Callback executed when select/deselect one row
|
||||||
* @type Function
|
* @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
|
* Callback executed when select/deselect all rows
|
||||||
|
|
Loading…
Reference in New Issue