优化LeftTree、SelectTree类型
parent
6dbe2ba83d
commit
9d71b6a6be
|
|
@ -1,12 +1,20 @@
|
||||||
import type { FC } from "react";
|
import type { FC } from "react";
|
||||||
import type { BasicLeftTreeProps } from "../../Basic";
|
import type { BasicLeftTreeProps } from "../../Basic";
|
||||||
|
|
||||||
|
export interface Params {
|
||||||
|
/** 企业id */
|
||||||
|
eqCorpInfoId?: string;
|
||||||
|
/** 父级部门id */
|
||||||
|
eqParentId?: string;
|
||||||
|
[key: string]: any;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 组件属性
|
* 组件属性
|
||||||
*/
|
*/
|
||||||
export interface DepartmentLeftTreeProps extends Omit<BasicLeftTreeProps, "treeData"> {
|
export interface DepartmentLeftTreeProps extends Omit<BasicLeftTreeProps, "treeData"> {
|
||||||
/** 请求参数 */
|
/** 请求参数 */
|
||||||
params?: Record<string, any>;
|
params?: Params;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,13 @@
|
||||||
import type { FC } from "react";
|
import type { FC } from "react";
|
||||||
import type { BasicSelectTreeProps } from "../../Basic";
|
import type { BasicSelectTreeProps } from "../../Basic";
|
||||||
|
import { Params } from "../../../LeftTree/Department/Gwj";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 组件属性
|
* 组件属性
|
||||||
*/
|
*/
|
||||||
export interface DepartmentSelectTreeProps extends Omit<BasicSelectTreeProps, "treeData" | "placeholder"> {
|
export interface DepartmentSelectTreeProps extends Omit<BasicSelectTreeProps, "treeData" | "placeholder"> {
|
||||||
/** 请求参数 */
|
/** 请求参数 */
|
||||||
params?: Record<string, any>;
|
params?: Params;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue