@icos-desktop/react-components 0.1.8 → 0.1.10

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.
package/build/index.d.ts CHANGED
@@ -7,7 +7,18 @@ interface EntityDetailProps {
7
7
 
8
8
  declare const EntityDetail: React.FC<EntityDetailProps>;
9
9
 
10
+ interface API$2 {
11
+ getSenseDetail: string;
12
+ }
13
+
10
14
  interface EntityInfoProps {
15
+ /**
16
+ * API
17
+ */
18
+ api?: API$2;
19
+ /**
20
+ * 实体编码
21
+ */
11
22
  senseGlobalCode: string;
12
23
  }
13
24
 
@@ -19,10 +30,36 @@ interface EntitySearchProps {
19
30
 
20
31
  declare const EntitySearch: React.FC<EntitySearchProps>;
21
32
 
33
+ interface API$1 {
34
+ getSensePage: string;
35
+ }
36
+
22
37
  interface EntityTableProps {
38
+ /**
39
+ * API
40
+ */
41
+ api?: API$1;
42
+ /**
43
+ * 台账 id
44
+ */
23
45
  bookId: string;
46
+ /**
47
+ * 点击行
48
+ * @param record
49
+ * @param event
50
+ */
24
51
  onRowClick?: (record: any, event: React.MouseEvent<any, MouseEvent>) => void;
52
+ /**
53
+ * 双击行
54
+ * @param record
55
+ * @param event
56
+ */
25
57
  onRowDoubleClick?: (record: any, event: React.MouseEvent<any, MouseEvent>) => void;
58
+ /**
59
+ * 右键行
60
+ * @param record
61
+ * @param event
62
+ */
26
63
  onRowContextMenu?: (record: any, event: React.MouseEvent<any, MouseEvent>) => void;
27
64
  }
28
65
 
@@ -48,12 +85,39 @@ interface EntityTreeProps {
48
85
 
49
86
  declare const EntityTree: React.FC<EntityTreeProps>;
50
87
 
88
+ interface API {
89
+ getEntitySenseTree: string;
90
+ }
91
+
51
92
  interface RegionTreeProps {
93
+ /**
94
+ * API
95
+ */
96
+ api?: API;
97
+ /**
98
+ * 地理层级全路径字段
99
+ */
52
100
  regionField?: string;
101
+ /**
102
+ * 地理层级显示区间-根层级,1~9,依次为省、市、区县、街道、社区、小区、楼、单元、户
103
+ */
53
104
  regionRootLevel?: number;
105
+ /**
106
+ * 地理层级显示区间-叶子层级,1~9,依次为省、市、区县、街道、社区、小区、楼、单元、户
107
+ */
54
108
  regionLeafLevel?: number;
109
+ /**
110
+ * 实体类型,树类型:region-by-book: 基于台账的地理层级树,region-by-sense: 基于实体记录的地理层级树
111
+ */
55
112
  treeType?: 'region-by-book' | 'region-by-sense';
113
+ /**
114
+ * 视图编码列表
115
+ */
56
116
  viewCodes?: string[];
117
+ /**
118
+ * 点击树节点
119
+ * @param node
120
+ */
57
121
  onClick?: (node: TreeDataNode) => void;
58
122
  }
59
123