import { TreeDataItem } from 'ant-design-vue/es/tree/Tree'; import { TreeActionType } from '../../../index'; import { DataItem, ParamType } from './types'; import { KeyType, CheckKeys, InsertNodeParams, TreeItem } from '../../types'; import { DataNode } from 'ant-design-vue/es/tree'; import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue'; export interface TransferPickerProps { fullPath?: boolean; value: DataItem[] | String; disabled?: boolean; maxHeight?: string; type?: ParamType; minSelect?: number; maxSelect?: number; ids?: string[]; placeholder?: string; dataSource?: TreeDataItem[]; labelField?: string; valueField?: string; api?: (params?: any) => Promise; relationApi?: (params?: any) => Promise; relationReturnField?: string; } /** * 获取树组件实例 * @returns {TreeActionType} 树组件操作对象 * @throws {Error} 当树组件未初始化时抛出异常 */ declare function getTree(): TreeActionType | { checkAll: (checkAll: boolean) => void; expandAll: (expandAll: boolean) => void; setExpandedKeys: (keys: KeyType[]) => void; getExpandedKeys: () => KeyType[]; setSelectedKeys: (keys: KeyType[]) => void; getSelectedKeys: () => KeyType[]; setCheckedKeys: (keys: CheckKeys) => void; getCheckedKeys: () => CheckKeys; filterByLevel: (level: number) => void; insertNodeByKey: (opt: InsertNodeParams) => void; insertNodesByKey: (opt: InsertNodeParams) => void; deleteNodeByKey: (key: string) => void; updateNodeByKey: (key: string, node: Omit< DataNode, "key">) => void; setSearchValue: (value: string) => void; getSearchValue: () => string; handleRightClick: ({ event, node }: Recordable) => void; getSelectedNode: (key: KeyType, treeList?: TreeItem[] | undefined, selectNode?: TreeItem | null | undefined) => TreeItem | null; }; declare const _default: DefineComponent, { value: () => never[]; ids: () => never[]; type: number; minSelect: number; fullPath: boolean; maxSelect: number; placeholder: string; maxHeight: string; labelField: string; valueField: string; relationReturnField: string; }>>, { getSelectedUsers: () => DataItem[]; getSelectedDepts: () => any; getData(): any; getTree: typeof getTree; }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, { "update:value": (...args: any[]) => void; }, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps, { value: () => never[]; ids: () => never[]; type: number; minSelect: number; fullPath: boolean; maxSelect: number; placeholder: string; maxHeight: string; labelField: string; valueField: string; relationReturnField: string; }>>> & Readonly<{ "onUpdate:value"?: ((...args: any[]) => any) | undefined; }>, { type: number; placeholder: string; value: String | DataItem[]; maxHeight: string; labelField: string; valueField: string; fullPath: boolean; minSelect: number; maxSelect: number; ids: string[]; relationReturnField: string; }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>; export default _default; type __VLS_NonUndefinedable = T extends undefined ? never : T; type __VLS_TypePropsToRuntimeProps = { [K in keyof T]-?: {} extends Pick ? { type: PropType<__VLS_NonUndefinedable>; } : { type: PropType; required: true; }; }; type __VLS_WithDefaults = { [K in keyof Pick]: K extends keyof D ? __VLS_Prettify : P[K]; }; type __VLS_Prettify = { [K in keyof T]: T[K]; } & {};