import { ColProps, FormProps } 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 contrast: (prevValues: any, curValues: any, names: NamePath[]) => boolean; export declare const splitNameStr: (name: string) => NamePath[]; export declare const filterInternalFields: (values: any) => 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) => boolean; /** * 判断数组中值是否都为空 全部为空则为true * @param arr 值 * @returns boole */ export declare const isNullArray: (arr: any) => boolean; export declare function toArray(value?: T | T[] | null): T[]; /** * names值合并 * @param obj AnyObject * @returns AnyObject */ export declare function processHyphenKeys(obj: AnyObject): AnyObject; /** * 初始化值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)[]; export declare const customEqualForFun: (value: any, other: any) => boolean; /** * 查询数据中是否包含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) => any; export {};