ze-react-component-library
Version:
ZeroETP React Component Library
15 lines (14 loc) • 1.01 kB
TypeScript
import { LogicformAPIResultType, PropertyType, SchemaType, LogicformType } from "zeroetp-api-sdk";
import React, { ReactNode } from "react";
import { S2CellType, TooltipShowOptions } from "@antv/s2";
import type { S2DataConfig } from "@antv/s2";
export declare const getObjectExpandProperties: (name: string, data?: LogicformAPIResultType) => PropertyType[];
export declare const getDefaultS2ConfigFields: (result: LogicformAPIResultType) => Partial<Pick<S2DataConfig, "fields">>;
export declare const renderTooltipContent: (cell: S2CellType, options: TooltipShowOptions, schema: SchemaType, logicform?: LogicformType, setLogicform?: (v: LogicformType) => void, entityTooltipCardProps?: {
width?: number;
height?: number;
extra?: (entity: any, schema: SchemaType) => ReactNode;
}, showGoToDetail?: boolean, showRefDetail?: boolean, percentageProps?: {
percentageConfig: Record<string, boolean>;
setPercentageConfig: React.Dispatch<React.SetStateAction<Record<string, boolean>>>;
}) => any;