mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
Add table context
This commit is contained in:
@@ -186,6 +186,10 @@ export const useVirtualTable = <TResponse, TFilter>({
|
||||
|
||||
const onCellContextMenu = useHandleTableContextMenu(itemType, contextMenu);
|
||||
|
||||
const context = {
|
||||
onCellContextMenu,
|
||||
};
|
||||
|
||||
const defaultTableProps: Partial<VirtualTableProps> = useMemo(() => {
|
||||
return {
|
||||
alwaysShowHorizontalScroll: true,
|
||||
@@ -241,6 +245,7 @@ export const useVirtualTable = <TResponse, TFilter>({
|
||||
|
||||
return {
|
||||
columnDefs,
|
||||
context,
|
||||
defaultColumnDefs,
|
||||
onBodyScrollEnd,
|
||||
onCellContextMenu,
|
||||
|
||||
Reference in New Issue
Block a user