@lcap/asl
Version:
NetEase Application Specific Language
64 lines (63 loc) • 1.82 kB
TypeScript
import { Entity, EntityProperty, View, LEVEL_ENUM } from '../..';
import { NameGroup } from '.';
export declare function genSelectTemplate(property: EntityProperty, nameGroup: NameGroup): string;
export declare function genH5SelectTemplate(property: EntityProperty, nameGroup: NameGroup): string;
export declare function genLoadSelectLogic(entity: Entity, nameGroup: NameGroup, newStructures: Array<any>, newInterfaces: Array<any>): {
level: string;
name: string;
params: {
level: string;
type: string;
name: string;
schema: {
$ref: string;
};
}[];
returns: {
level: LEVEL_ENUM;
type: string;
name: string;
schema: import("../Schema").Schema;
}[];
variables: any[];
body: ({
level: string;
type: string;
label: string;
operator?: undefined;
left?: undefined;
right?: undefined;
} | {
level: string;
type: string;
label: string;
operator: string;
left: {
level: string;
type: string;
name: string;
};
right: {
level: string;
type: string;
label: string;
callee: any;
calleeCode: string;
params: Partial<import("../..").LogicItem>[];
interfaceKey?: undefined;
} | {
level: string;
type: string;
label: string;
interfaceKey: any;
params: Partial<import("../..").LogicItem>[];
callee?: undefined;
calleeCode?: undefined;
};
})[];
};
/**
* 生成实体选择框区块
*/
export declare function genSelectBlock(entity: Entity, view: View): string;
export default genSelectBlock;