import { ReactNode } from 'react'; import { EditTypes } from './meta'; export declare type WrappedNode = any; export declare type WrapperChild
= (props?: P, engine?: (props: any) => ReactNode) => ReactNode; export declare type WrapperResult
= (props?: P, engine?: (props: any) => WrappedNode) => WrappedNode; export interface WrapOptions { excludeNidAndUiType?: boolean; manifest?: ComponentManifest; } export declare type Wrapper
= (orig: WrapperChild, options?: WrapOptions) => WrapperResult;
/**
* designConfig props的描述 designConfigProps
* type 适配层的可选视图类型(枚举项)
* label 文本 在适配层页面显示的文本
* labelStyle 在适配层页面显示的文本的样式文件
* isRequired 是否必填
* props 根据适配器中MetaTypes配置不同的props
* help 提示信息
* disabled 是否禁用
*/
interface designConfigProps {
type: EditTypes;
label: string;
labelStyle?: string;
isRequired?: boolean;
help?: string;
props: object;
disabled?: boolean;
}
export declare enum FieldTypes {
string = "string",
number = "number",
boolean = "boolean",
object = "object",
date = "date",
action = "action",
child = "child",
array = "array"
}
/**
* 设计器适配层(Adapter)Props描述 Props
* name 名称
* type 数据类型
* defaultValue 默认值--可以是数据,也可以是方法
* value 值
* showDesign 是否展示在适配层 当showDesign为true,需要配置designConfig字段
* designConfig 适配层相关配置属性对象
* onChange 当值改变时,触发事件联动的方法,可改变其它配置字段的值
* onChange方法参数详解
* @param props 当前组件所有的props
* @param propsName 当前组件当前字段的propsName
* @param value 当前组件当前字段的值
*/
export interface Props {
name: string;
type: FieldTypes;
defaultValue?: any;
value?: string;
showDesign?: boolean;
designConfig?: designConfigProps;
onChange?: (props: Props[], propsName: string, value: string) => Props[];
}
export declare enum DatasourceType {
string = "string",
number = "number"
}
export interface Datasource {
field: string;
name: string;
type: DatasourceType;
}
export interface Node {
type: string;
title: string;
field?: string;
children?: Node[];
}
export declare enum UITable {
BillTplGroupBase = "BillTplGroupBase",
BillItemBase = "BillItemBase"
}
export declare enum UIObject {
Containers = "containers",
Controls = "controls"
}
export declare enum ModelProps {
GridModel = "GridModel",
SimpleModel = "SimpleModel",
ListModel = "ListModel",
ReferModel = "ReferModel",
VM = "VM"
}
export declare enum SysProps {
DATA_COLLECTION = "DATA_COLLECTION",
DATA_FIELD = "DATA_FIELD",
ACTION = "ACTION",
CHILDREN_FIELD = "CHILDREN_FIELD"
}
export declare enum TypeProps {
LayoutContainer = "layoutContainer",
DataContainer = "dataContainer",
BasicControls = "basicControls",
FormControls = "formControls",
FunctionalControls = "functionalControls",
BusinessControls = "businessControls",
InterfaceControls = "interfaceControls"
}
export declare enum ExtensionProps {
bIsNull = "bIsNull",
bMustSelect = "bMustSelect",
isExport = "isExport",
bVmExclude = "bVmExclude",
disabled = "disabled",
splitLine = "splitLine",
singleLine = "singleLine",
required = "required",
bCheck = "bCheck",
formula = "formula",
cStyle = "cStyle"
}
declare type transformerType = Array {
manifest: ComponentManifest;
render: (props?: P, engine?: (props: any) => WrappedNode) => WrappedNode;
}
export { EditTypes };
//# sourceMappingURL=index.d.ts.map