Преглед изворни кода

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', // 单位接收人目录
   ALLINSTITUTIONROLE = 'allInstitutionRole', // 单位接收人目录
   INSTITUTIONROLE = 'institutionRole', // 单位接收人
   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;
+}