mirror of
https://github.com/m-xlsea/ruoyi-plus-soybean.git
synced 2025-09-24 07:49:47 +08:00
feat:对接部门管理,优化菜单管理,共用handleTree方法
This commit is contained in:
12
src/typings/common.d.ts
vendored
12
src/typings/common.d.ts
vendored
@ -31,4 +31,16 @@ declare namespace CommonType {
|
||||
|
||||
/** The res error code */
|
||||
type ErrorCode = '401' | '403' | '404' | 'default';
|
||||
|
||||
/** 构造树型结构数据的配置选项 */
|
||||
type TreeConfig = {
|
||||
/** id字段名 */
|
||||
idField: string;
|
||||
/** 父节点字段名 */
|
||||
parentIdField?: string;
|
||||
/** 子节点字段名 */
|
||||
childrenField?: string;
|
||||
/** 过滤函数 */
|
||||
filterFn?: (node: any) => boolean;
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user