import { ColProps, FormProps, FormInstance } from 'antd'; import { InternalNamePath, NamePath } from 'antd/es/form/interface'; interface transProps { formProps: FormProps; colProps: ColProps; [name: string]: any; } interface AnyObject { [key: string]: any; } export declare const getLayout: (params: any) => transProps; export declare const useControlled: (props: any) => any[]; export declare const isSelect: (props: any) => any; /** * Input TextArea 移除前后空格 * @param type 组件类型 * @param trim 是否移除前后空格 * @returns {} */ export declare const isTrim: (type: string, trim: boolean, configData: any) => any; /** * Input TextArea 小写自动转大写 * @param type 组件类型 * @param upperCase 是否小写转大写 * @returns {} */ export declare const isUpperCase: (type: string, upperCase: boolean) => any; export declare const weedOutProps: (data: Record, keys: string[]) => {}[]; export declare const diffField: (prevValues: any, curValues: any, names: NamePath[]) => boolean; export declare const splitNameStr: (name: string) => string[][]; export declare const filterInternalFields: (values: any, optimize?: boolean) => any; export declare const getAllNamePath: (object: Record, currentPath?: InternalNamePath) => InternalNamePath[]; export declare const isNullValue: (value: any) => boolean; /** * 判断数组中是否包含空值 一个为空则为true * @param arr 值 * @returns boole */ export declare const isNotFullArray: (arr: any, length: any, required: any) => boolean; /** * 判断数组中值是否都为空 全部为空则为true * @param arr 值 * @returns boole */ export declare const isNullArray: (arr: any) => boolean; /** * 判断数组中值是否全部为空 如果值不是数组返回false * @param arr 值 * @returns boole */ export declare const isEmptyArray: (arr: any) => boolean; export declare function toArray(value?: T | T[] | null): T[]; /** * 初始化值names值合并 * @param obj AnyObject * @returns AnyObject */ export declare function initialValuesToNames(values: AnyObject, columns: AnyObject): AnyObject; /** * 获取数组含数字的新数组 * @returns ['group-7x19no', 0, 'abc'] =>['group-7x19no', 0] */ export declare function getArrayBeforeNumber(arr: (string | number)[]): (string | number)[]; /** * 查询数据中是否包含rowKey */ export declare const hasRowKey: (obj: any) => boolean; /** * 查询数据中是否包含rowKey */ export declare const view: (obj: any) => boolean; /** * 获取小数点后的位数 * @param num 数字 * @returns 位数 */ export declare const getDecimalDigits: (num: number) => number; export declare const deleteForPath: (values: any, namePath: string | number | (string | number)[]) => void; /** * 获取树状结构option * @param treeData 树数据源 * @param value 选中值 * @returns {} */ export declare const findOptionByValue: (treeData: any[], value: string | number, fieldNames: { [key: string]: any; label?: string; value?: string; children?: string; }) => any; /** * 对比依赖列表中的 值是否变更 */ export declare const equalDependencies: (dependencies: any, prevValues: any, currentValues: any) => any; /** 解析namePath */ export declare const parseNamePath: (input: string) => any; /** * 获取表单所有字段路径的简化函数 * @param form 表单实例 * @returns 所有字段路径数组 */ export declare const getFormFieldPaths: (form: FormInstance) => any[]; export declare function findNamesKeyInArray(arr: string[], key: string): string | null; type DataItem = (string | number)[]; /** * 根据特定规则合并两个数据源 (TypeScript 版本) * @param data1 第一个数据源 * @param data2 第二个数据源 * @returns 合并后的结果数组 */ export declare const mergeNames: (data1: DataItem[], data2: DataItem[]) => DataItem[]; /** * 是否 formlist或者pro-edit-table 场景 * 使用正则表达式判断一个由逗号分隔的字符串中,是否包含一个纯数字的片段。 * @param {string} str - 输入的字符串。 * @returns {boolean} - 如果匹配成功,返回 true;否则返回 false。 */ export declare const isListForm: (str: string) => boolean; export {};