@a2simcode/ui 0.0.16 → 0.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,8 +14,8 @@ declare const JCodeMirror: {
14
14
  }, import('vue').PublicProps, {
15
15
  height: number;
16
16
  mode: string;
17
- readonly: boolean;
18
17
  value: string;
18
+ readonly: boolean;
19
19
  isHint: boolean;
20
20
  handleHint: (str: string) => any[];
21
21
  isScrollToBottom: boolean;
@@ -39,8 +39,8 @@ declare const JCodeMirror: {
39
39
  }, {}, {}, {}, {
40
40
  height: number;
41
41
  mode: string;
42
- readonly: boolean;
43
42
  value: string;
43
+ readonly: boolean;
44
44
  isHint: boolean;
45
45
  handleHint: (str: string) => any[];
46
46
  isScrollToBottom: boolean;
@@ -63,8 +63,8 @@ declare const JCodeMirror: {
63
63
  }, string, {
64
64
  height: number;
65
65
  mode: string;
66
- readonly: boolean;
67
66
  value: string;
67
+ readonly: boolean;
68
68
  isHint: boolean;
69
69
  handleHint: (str: string) => any[];
70
70
  isScrollToBottom: boolean;
@@ -33,8 +33,8 @@ declare const _default: import('vue').DefineComponent<CodeMirrorProps, {
33
33
  }>, {
34
34
  height: number;
35
35
  mode: string;
36
- readonly: boolean;
37
36
  value: string;
37
+ readonly: boolean;
38
38
  isHint: boolean;
39
39
  handleHint: (str: string) => any[];
40
40
  isScrollToBottom: boolean;
@@ -41,8 +41,8 @@ declare const JComp: {
41
41
  }, import('vue').PublicProps, {
42
42
  type: string;
43
43
  id: string;
44
- modelValue: string | number | boolean | any[] | Record<string, any>;
45
44
  children: import('..').SchemaRuntimeConfig[];
45
+ modelValue: string | number | boolean | any[] | Record<string, any>;
46
46
  row: Record<string, any>;
47
47
  getCompType: Function;
48
48
  config: Record<string, any>;
@@ -93,8 +93,8 @@ declare const JComp: {
93
93
  }>, {}, {}, {}, {}, {
94
94
  type: string;
95
95
  id: string;
96
- modelValue: string | number | boolean | any[] | Record<string, any>;
97
96
  children: import('..').SchemaRuntimeConfig[];
97
+ modelValue: string | number | boolean | any[] | Record<string, any>;
98
98
  row: Record<string, any>;
99
99
  getCompType: Function;
100
100
  config: Record<string, any>;
@@ -145,8 +145,8 @@ declare const JComp: {
145
145
  }, string, {
146
146
  type: string;
147
147
  id: string;
148
- modelValue: string | number | boolean | any[] | Record<string, any>;
149
148
  children: import('..').SchemaRuntimeConfig[];
149
+ modelValue: string | number | boolean | any[] | Record<string, any>;
150
150
  row: Record<string, any>;
151
151
  getCompType: Function;
152
152
  config: Record<string, any>;
@@ -154,8 +154,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
154
154
  }>, {
155
155
  type: string;
156
156
  id: string;
157
- modelValue: string | number | boolean | any[] | Record<string, any>;
158
157
  children: SchemaRuntimeConfig[];
158
+ modelValue: string | number | boolean | any[] | Record<string, any>;
159
159
  row: Record<string, any>;
160
160
  getCompType: Function;
161
161
  config: Record<string, any>;
@@ -4,3 +4,4 @@ export * from './comp';
4
4
  export * from './date';
5
5
  export * from './dom';
6
6
  export * from './cipher';
7
+ export * from './tree';
@@ -0,0 +1,10 @@
1
+ /**
2
+ *将数组数据转化成树形数据
3
+ */
4
+ export declare function setGroupMap(data: any[], idKey: string, pidKey: string): {
5
+ group: Record<string, any>;
6
+ map: Record<string, any>;
7
+ };
8
+ export declare function toTree(data: any[], _idKey?: string, pidKey?: string, valueKey?: string, labelKey?: string, filterIds?: any): any[];
9
+ export declare const toArray: (data: any[], filterIds?: string[]) => any[];
10
+ export declare const toSimpleTree: (data: any[], valueKey?: string, labelKey?: string) => any[];