/** * 布局配置项,数值设置时需要 */ export declare const isAuto: (value: any) => boolean; /** * 用于列表类展示组件在 filterProps 中获取编辑态 value 值 */ export declare const resolveArrayDatasource: ({ data, value, source }: { value?: any; data: any; source: string; }, defaultSource?: string) => any; export declare const schemaToArray: (value: any) => any[]; export declare const schemaArrayFormat: (value: any) => any; /** * 解析选项值类型 * @param options * @returns */ export declare const resolveOptionType: (schema?: any) => "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function"; /** * 构建选择器事件参数 * @param manager * @returns */ export declare const resolveOptionEventDataSchame: (manager: EditorManager, multiple?: boolean) => { value: any; selectedItems: { type: string; title: string; items: { type: string; title: string; properties: { [x: number]: { type: string; title: string; }; }; }; properties?: undefined; } | { type: string; title: string; properties: { [x: number]: { type: string; title: string; }; }; items?: undefined; }; items: { type: string; title: string; items: { type: string; title: string; properties: { [x: number]: { type: string; title: string; }; }; }; }; itemSchema: { [x: number]: { type: string; title: string; }; }; }; /** * 构建输入列表事件参数 * @param manager * @param multiple * @returns */ export declare const resolveInputTableEventDataSchame: (manager: EditorManager, multiple?: boolean) => { value: any; item: any; }; export declare const OPTION_EDIT_EVENTS: { eventName: string; eventLabel: string; description: string; dataSchema: (manager: EditorManager) => { type: string; properties: { data: { type: string; title: string; properties: { item: { type: string; title: string; properties: { [x: number]: { type: string; title: string; }; }; }; value: any; items: { type: string; title: string; items: { type: string; title: string; properties: { [x: number]: { type: string; title: string; }; }; }; }; }; }; }; }[]; }[]; export declare const OPTION_EDIT_EVENTS_OLD: (schema: any) => { eventName: string; eventLabel: string; description: string; dataSchema: { type: string; properties: { data: { type: string; title: string; properties: { value: { type: string; title: string; }; items: { type: string; title: string; }; }; }; }; }[]; }[]; export declare const TREE_BASE_EVENTS: (schema: any) => ({ eventName: string; eventLabel: string; description: string; dataSchema: { type: string; properties: { data: { type: string; title: string; properties: { value: { type: string; title: string; }; items: { type: string; title: string; }; }; }; }; }[]; } | { eventName: string; eventLabel: string; description: string; dataSchema: (manager: EditorManager) => { type: string; properties: { data: { type: string; title: string; properties: { item: { type: string; title: string; properties: { [x: number]: { type: string; title: string; }; }; }; }; }; }; }[]; } | { eventName: string; eventLabel: string; description: string; dataSchema: (manager: EditorManager) => { type: string; properties: { data: { type: string; title: string; properties: { result: { type: string; title: string; }; value: any; items: { type: string; title: string; items: { type: string; title: string; properties: { [x: number]: { type: string; title: string; }; }; }; }; }; }; }; }[]; })[]; /** * 将组件配置里面的公式进行转义,一般是文本组件编辑器里直接显示公式所用 * * @param conf 组件schema 配置 * @param keys 转义的字段key列表 * @returns 转义后的配置 */ export declare function escapeFormula(conf: any, keys?: string[]): any; /** * 判断给定的 schema 是否为 model 组件 * * @param schema schema 对象 * @returns 如果给定的 schema 是 model 组件则返回 true,否则返回 false */ export declare function _isModelComp(schema: Record): boolean; export declare const getOwnValue: (obj: any, key: string) => any; export declare function generateId(): string;