lwj-editor
Version:
丽维家可视化编辑器
40 lines (37 loc) • 680 B
text/typescript
import { IFormItem } from 'lwj-business-frontend/es/components/EntityForm/declare';
interface ITree {
action: any;
}
interface IQueryParams {
basic?: IFormItem[];
advanced?: IFormItem[];
}
interface IQuery {
method: 'GET' | 'POST' | 'PUT';
url: string;
prefix?: string;
}
interface IAction {
query: IQuery;
extraQuery?: IQuery;
}
export interface IQuickFilter {
key: string;
label: string;
options: {
title: string;
key: any;
}[];
}
interface ITable {
columns?: any;
queryParams?: IQueryParams;
quickFilter?: IQuickFilter;
action?: IAction;
}
export type Entity = {
tree?: ITree;
table?: ITable;
};
export const entityMap: any = {
};