浏览代码

feat(types): 添加IRangeSelectTree

LuoHaoxuan 3 年之前
父节点
当前提交
8bd8ec84a7
共有 1 个文件被更改,包括 14 次插入0 次删除
  1. 14 0
      types/src/interface/process.ts

+ 14 - 0
types/src/interface/process.ts

@@ -746,3 +746,17 @@ export enum AddSignType {
   ALLINSTITUTIONROLE = 'allInstitutionRole', // 单位接收人目录
   INSTITUTIONROLE = 'institutionRole', // 单位接收人
 }
+
+export enum RangeSelectType {
+  USER = 'user',
+  ROLE = 'role',
+}
+
+export interface IRangeSelectTree<T extends RangeSelectType = any> {
+  ID: string | number;
+  label: string;
+  rangeType: T;
+  children?: IRangeSelectTree<T>[];
+  icon?: string;
+  [key: string]: any;
+}