import { default as VTable } from '@visactor/vtable'; import { TooltipOptions } from '@visactor/vtable/es/ts-types/tooltip'; import { Placement } from '../const'; import { ColumnStyleOption } from '@visactor/vtable/es/ts-types'; // ** tooltip.ts ------------------------------------------- export type VTableTooltipOptions = Omit & { format?: (cellInfo: Omit & { targetText?: string }) => string; template?: (cellInfo: Omit & { targetText?: string }) => React.ReactNode; referencePosition?: { placement?: Placement; }; style?: { bgColor?: string; fontSize?: number; fontFamily?: string; color?: string; padding?: number[]; maxWidth?: number; maxHeight?: number; }; }; // ** history-edit.ts ------------------------------------------- export interface HistoryEditOptions { modifyMark?: boolean; modifyMarkStyle?: { delete?: ColumnStyleOption; update?: ColumnStyleOption; }; } export type WholeRow = Record & { __type?: 'title' | 'button' | 'empty' };