tav-ui
Version:
8 lines (7 loc) • 497 B
TypeScript
import type { TableProActionItem } from '../typings';
export declare function useCanvasCalcContent(): {
calcContent: (content: string, font?: string) => number;
clearCalcContentCanvas: () => void;
};
export declare function isOverMaxWidth(actions: TableProActionItem[] | null, calcFn?: (...args: any) => number): boolean;
export declare function useColumnActionAutoWidth(actions: TableProActionItem[] | null, labelMaxLength: number, calcFn?: (...args: any) => number): number | undefined;