38 lines
835 B
TypeScript
38 lines
835 B
TypeScript
|
|
import type { FC } from "react";
|
|||
|
|
import type { BasicSelectProps } from "../../Basic";
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 请求参数
|
|||
|
|
*/
|
|||
|
|
export interface Params {
|
|||
|
|
/** 企业id */
|
|||
|
|
corpinfoId?: string;
|
|||
|
|
/** 岗位id */
|
|||
|
|
postId?: string;
|
|||
|
|
/** 部门id */
|
|||
|
|
departmentId?: string;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 组件属性
|
|||
|
|
*/
|
|||
|
|
export interface DepartmentSelectProps extends Omit<BasicSelectProps, "data"> {
|
|||
|
|
/** 请求参数 */
|
|||
|
|
params?: Params;
|
|||
|
|
/** 占位符,默认"人员" */
|
|||
|
|
placeholder?: string;
|
|||
|
|
/** 是否需要企业id,默认 false */
|
|||
|
|
isNeedCorpInfoId?: boolean;
|
|||
|
|
/** 是否需要岗位id,默认 false */
|
|||
|
|
isNeedPostId?: boolean;
|
|||
|
|
/** 是否需要部门id,默认 true */
|
|||
|
|
isNeedDepartmentId?: boolean;
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* 基础下拉组件(港务局版本)
|
|||
|
|
*/
|
|||
|
|
declare const DepartmentSelect: FC<DepartmentSelectProps>;
|
|||
|
|
|
|||
|
|
export default DepartmentSelect;
|