import type { FormItem, FormItemType } from "~/types/view"; /** * @description 初始化表单项的数值,返回对应的表单类型的初始值 * @param itemType */ export declare function initEmptyFormItems(itemType: FormItemType, isHeaderForm?: boolean): false | any[] | "" | "all"; /** * @description 初始化表单数据 * @return 表单模型数据 */ export declare function initFormModel(formData: any, formItems: FormItem[], isHeaderForm?: boolean): any; /** * @description: 初始化处理树形选择列表数据 * @param {*} config * @return {*} */ export declare function initTreeSelectorData(config: { list: any[]; keyName: string; valueName: string; titleName: string; parentKey: string | null; parentKeyName: string; }): any; interface OptionNode { key: string; label: string; value: string; children: OptionNode[]; } /** * @description: 过滤在收到的值中,包含的子元素选项并没有完全选中时的父元素 * @param {*} options * @param {*} values */ export declare function filterTreeValues(options: OptionNode[], values: string[]): string[]; /** * @description: 检查输入框placeholder是否省略显示 如果省略显示则hover显示完整内容 * @param {any} formItemRef */ export declare function checkPlaceholderIfHidden(formItemRef: any): boolean; /** * @description: 比较对象数据的属性差异 * @param {object} obj1 * @param {object} obj2 */ export declare function deepCompareObjects(obj1: { [x: string]: any; }, obj2: { [x: string]: any; }, excludeKeys?: string[]): Record; export {};