ze-react-component-library
Version:
ZeroETP React Component Library
28 lines (27 loc) • 943 B
TypeScript
import { S2Options, S2DataConfig } from "@antv/s2";
import React, { ReactNode } from "react";
import { LogicformAPIResultType, LogicformType, SchemaType } from "zeroetp-api-sdk";
export interface ZESheetProps {
title?: string;
logicform?: LogicformType;
setLogicform?: (v: LogicformType) => void;
result?: LogicformAPIResultType;
height?: number | string;
sheetType?: "pivot" | "table" | "gridAnalysis";
s2DataConfig?: Omit<S2DataConfig, "data">;
s2Options?: Partial<S2Options>;
entityTooltipCardProps?: {
width?: number;
height?: number;
extra?: (entity: any, schema: SchemaType) => ReactNode;
};
onChange?: (s2DataConfig?: S2DataConfig) => void;
onRow?: (record: any) => void;
showExport?: boolean;
xlsx?: any;
style?: React.CSSProperties;
showInterval?: boolean;
showSwitcher?: boolean;
showGoToDetail?: boolean;
showRefDetail?: boolean;
}