27 lines
903 B
TypeScript
27 lines
903 B
TypeScript
|
|
import type { FC } from "react";
|
|||
|
|
import type { Params } from "../../../LeftTree/Department/Gwj";
|
|||
|
|
import type { BasicSelectTreeProps } from "../../Basic";
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 组件属性
|
|||
|
|
*/
|
|||
|
|
export interface DepartmentSelectTreeProps extends Omit<BasicSelectTreeProps, "treeData" | "placeholder" | "nameKey" | "idKey" | "childrenKey"> {
|
|||
|
|
/** 请求参数 */
|
|||
|
|
params?: Params;
|
|||
|
|
/** 占位符,默认"部门" */
|
|||
|
|
placeholder?: string;
|
|||
|
|
/** 是否需要企业id,默认 false */
|
|||
|
|
isNeedCorpInfoId?: boolean;
|
|||
|
|
/** 是否需要父级部门id,默认 false */
|
|||
|
|
isNeedParentId?: boolean;
|
|||
|
|
/** 查询当前登陆人部门还是所有企业部门,all 的话 isNeedCorpInfoId、isNeedParentId、params 不生效 */
|
|||
|
|
searchType?: "current" | "all";
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 部门下拉树组件(港务局版本)
|
|||
|
|
*/
|
|||
|
|
declare const DepartmentSelectTree: FC<DepartmentSelectTreeProps>;
|
|||
|
|
|
|||
|
|
export default DepartmentSelectTree;
|