UNPKG

fx-form-widget

Version:
25 lines (24 loc) 769 B
import React, { FC } from 'react'; import type { TreeData, EmployeeOrdepartment } from './shard'; import './index.less'; export interface SearchList { employeeList?: EmployeeOrdepartment[]; departmentList?: EmployeeOrdepartment[]; } export interface SelectTreeProps { data?: TreeData[]; hasSelectedKeys?: TreeData[]; isShowDepart?: boolean; title?: string; rootId?: React.Key; url?: string; showClearButton?: boolean; listType?: ListType; searchPlaceholder?: string; checkable?: boolean; getSearchResultByname: (name: string) => Promise<any>; onSelectResult?: (nodes: any) => void; } export type ListType = 'employee' | 'deparement' | ''; declare const SelectTree: FC<SelectTreeProps>; export default SelectTree;