ze-react-component-library
Version:
ZeroETP React Component Library
50 lines (49 loc) • 1.78 kB
TypeScript
import { LogicformType, LogicformAPIResultType, SchemaType } from "zeroetp-api-sdk";
/**
* 逻辑是这样的。
* TODO:写testcase
* groupby: "商品_分类",从’单品‘开始下钻 -> query:{商品_分类:'单品'}, groupby: "商品",
* 如果是多维groupby,按照第一个groupby去下钻
* @param logicform
* @param schema
* @param groupbyItem
* @returns new logicform
*/
export declare const drilldownLogicformInSDK: (logicform: LogicformType, schema: SchemaType, groupbyItem: any, downHierarchy?: string) => LogicformType;
export declare const drilldownLogicform: (item: any, data: LogicformAPIResultType, onChangeLogicform?: (logicform: LogicformType) => void) => void;
export declare function useDrillDownDbClick(props: {
logicform: LogicformType;
onChangeLogicform?: (logicform: LogicformType) => void;
back: () => void;
}): {
onDbClick: (item: any, data: any, triggerBack?: boolean, clickCallBack?: () => void) => void;
};
export declare function formatLogicformForEditor(logicform: LogicformType): {
schema?: string;
schemaName?: string;
query?: any;
total?: number;
sort?: object;
limit?: number;
limitBy?: number;
skip?: number;
preds?: import("zeroetp-api-sdk").PredItemType[];
field?: string;
name?: string;
operator?: string;
pred?: import("zeroetp-api-sdk").PredItemType;
groupby?: any;
entity?: any;
having?: object;
populate?: string[];
expands?: string[];
close_default_query?: boolean;
children?: LogicformType[];
_role?: string;
_authQueryKeys?: string[];
entity_id?: string;
_unknown?: string[];
_path?: any[];
_noRelationGroupby?: any[];
representation?: import("zeroetp-api-sdk").RepresentationType;
};