优化LeftTree、SelectTree类型

master
LiuJiaNan 2025-11-04 08:39:32 +08:00
parent 6dbe2ba83d
commit 9d71b6a6be
2 changed files with 11 additions and 2 deletions

View File

@ -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;
} }
/** /**

View File

@ -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;
} }
/** /**