interface optionNameProps { key?: string; value?: string; title?: string; children?: string; disabled?: string; selectable?: string; label?: string; } /** * transDataParam 根据指定选项字段名重组数据 * * @params {array} array 树数据集合 * @params {object} optionName 选项字段值(tree-select的标题使用的是label字段) * * */ export declare function transDataParam(array: any[], optionName?: optionNameProps, extra?: any): any[]; /** * 根据限制字段limitKey进行重组数据 * * @params {array} hasKeys 已选择的数据 * @params {array} list 树数据集合 * @params {object} optionName 选项字段值 * @params {string} limitKey 指定限制字段名 * * @Return {array} 返回结果数据 * * */ export declare function resetDataWithLimit(hasKeys: any[], list: any[], optionName: optionNameProps | undefined, limitKey: string): any[]; /** * 根据指定禁用字段 disabledFields 进行重组数据 * * @params {array} list 树数据集合 * @params {object} optionName 选项字段值 * @params {string} disabledFields 指定限制字段名 * @value {string} key:指定禁用的字段名 * @value {staring}value:指定禁用的字段值,多个用 , 隔开 * * @Return {array} 返回结果数据 * * */ export declare function resetDataWithDisabled(list?: any[], optionName?: any, disabledFields?: any[]): any[]; /** * 计算节点总数 * * */ export declare const countNodes: (nodes: any, optionName?: { children: string; disabled: string; }) => number; /** * 全选树节点,排除禁用节点 * @param {Array} treeData 树数据组 * @param {Object} optionName 指定节点字段 * @param {Boolean} updateSource 是否同步更改数据源,始数组内会加入 checked:true字段 * * @return {Number} selectedAllCount 可全选的数量 * @return {Array} selectedAllNodes 可全选的节点集合 * @return {Array} selectedAllKeys 可全选的节点key集合 * @return {Number } totalCount 全部节点数量 * @return {Array } treeData 更改后的数量组 * * @example selectAllExcludingDisabled([],{ children: 'children', disabled: 'disabled' }, false) * */ export declare const selectAllExcludingDisabled: (treeData: any, optionName?: { children: string; disabled: string; value: string; }, updateSource?: boolean) => { count: number; nodes: any[]; keys: any[]; treeData: any; totalCount: number; }; export {};