zhihao-ui 1.2.65 → 1.2.67

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.
Files changed (76) hide show
  1. package/dist/es/{BaseInfo-VzgiaCKn.js → BaseInfo-ChbjTGfs.js} +1 -1
  2. package/dist/es/{BaseItem-BtsARxvz.js → BaseItem-Bm9MGEJ9.js} +3 -3
  3. package/dist/es/{Button-Dw3i74l2.js → Button-MxEBey6B.js} +2 -2
  4. package/dist/es/CascaderLoadMore-DlILOdn-.js +241 -0
  5. package/dist/es/{DatePicker-BCvYHlC7.js → DatePicker-CmHAGAfV.js} +3 -3
  6. package/dist/es/{DetailHeader-C5LjDuTv.js → DetailHeader-CET8dXQK.js} +3 -3
  7. package/dist/es/{DetailSubTitle-ak2l4HyV.js → DetailSubTitle-BjRMPd-x.js} +2 -2
  8. package/dist/es/{Dialog-Cw3E3ZU6.js → Dialog-DbLFMPUc.js} +6 -6
  9. package/dist/es/DiyDataTable-Dl9cbZPM.js +364 -0
  10. package/dist/es/{EditInfoPair-8SWkyWJC.js → EditInfoPair-BFhom7kE.js} +3 -3
  11. package/dist/es/{FileWrapper-BKxBr28L.js → FileWrapper-dvsZpeCo.js} +4 -4
  12. package/dist/es/{Grid-C8tYH4s7.js → Grid-BE291DBa.js} +2 -2
  13. package/dist/es/{InfoPair-C3obQrjB.js → InfoPair-vBH3EpPX.js} +3 -3
  14. package/dist/es/{Input-C3HDYWCC.js → Input-CAfBuNDL.js} +3 -3
  15. package/dist/es/{Loading-DfL7OJvd.js → Loading-DqAl0_Bv.js} +2 -2
  16. package/dist/es/{Map-BpqtL7_q.js → Map-Ds8BCcrZ.js} +4 -4
  17. package/dist/es/{MessageBox-ByLWEDby.js → MessageBox-D40uRNZW.js} +2 -2
  18. package/dist/es/{MoneyInput-CxngoHAe.js → MoneyInput-D1qzFVtu.js} +5 -5
  19. package/dist/es/{PageHeadPanel-d3ponlDx.js → PageHeadPanel-BKSrXbjM.js} +2 -2
  20. package/dist/es/Table-oEih0-VJ.js +1167 -0
  21. package/dist/es/{ToolTips-D0FAOOvm.js → ToolTips-CUiNF0wz.js} +3 -3
  22. package/dist/es/index.js +58 -55
  23. package/dist/es/{utils-BSQSj8Ii.js → utils-B4dXhR36.js} +1 -1
  24. package/dist/es/{vendor-DaYdW1_n.js → vendor-BxbXJpfv.js} +12452 -11469
  25. package/dist/index.css +1 -1
  26. package/dist/types/components/BaseItem/index.d.ts +9 -9
  27. package/dist/types/components/CascaderLoadMore/CascaderLoadMore.vue.d.ts +197 -0
  28. package/dist/types/components/CascaderLoadMore/index.d.ts +369 -0
  29. package/dist/types/components/CascaderLoadMore/types.d.ts +7 -0
  30. package/dist/types/components/Dialog/Dialog.vue.d.ts +16 -16
  31. package/dist/types/components/Dialog/index.d.ts +24 -24
  32. package/dist/types/components/DiyDataTable/DiyDataTable.vue.d.ts +18 -1
  33. package/dist/types/components/DiyDataTable/index.d.ts +30 -0
  34. package/dist/types/components/DiyDataTable/type.d.ts +17 -1
  35. package/dist/types/components/Map/config/global.d.ts +2 -0
  36. package/dist/types/components/Map/config/index.d.ts +2 -0
  37. package/dist/types/components/Map/config/map.d.ts +22 -0
  38. package/dist/types/components/Map/function/carTrack.d.ts +11 -0
  39. package/dist/types/components/Map/function/drawLine.d.ts +12 -0
  40. package/dist/types/components/Map/function/drawPolygon.d.ts +8 -0
  41. package/dist/types/components/Map/function/event.d.ts +8 -0
  42. package/dist/types/components/Map/function/layers.d.ts +10 -0
  43. package/dist/types/components/Map/function/map.d.ts +18 -0
  44. package/dist/types/components/Map/function/port.d.ts +10 -0
  45. package/dist/types/components/Map/function/position.d.ts +8 -0
  46. package/dist/types/components/Map/function/props.d.ts +7 -0
  47. package/dist/types/components/Map/function/ship/index.d.ts +18 -0
  48. package/dist/types/components/Map/function/ship/label.d.ts +5 -0
  49. package/dist/types/components/Map/function/ship/style.d.ts +23 -0
  50. package/dist/types/components/Map/function/shipOverlay.d.ts +12 -0
  51. package/dist/types/components/Map/function/shipTrack.d.ts +16 -0
  52. package/dist/types/components/Map/interface/carTrack.d.ts +70 -0
  53. package/dist/types/components/Map/interface/label.d.ts +27 -0
  54. package/dist/types/components/Map/interface/mapProps.d.ts +15 -0
  55. package/dist/types/components/Map/interface/position.d.ts +7 -0
  56. package/dist/types/components/Map/interface/shipInfoVo.d.ts +212 -0
  57. package/dist/types/components/Map/interface/shipTrack.d.ts +57 -0
  58. package/dist/types/components/Map/interface/wharfEntity.d.ts +20 -0
  59. package/dist/types/components/Map/meta/index.d.ts +12 -0
  60. package/dist/types/components/Map/meta/ship.d.ts +26 -0
  61. package/dist/types/components/Map/useMap.d.ts +17 -0
  62. package/dist/types/components/Map/utils/cursor.d.ts +3 -0
  63. package/dist/types/components/Map/utils/events.d.ts +4 -0
  64. package/dist/types/components/Map/utils/overlay.d.ts +5 -0
  65. package/dist/types/components/Map/utils/rbush.d.ts +13 -0
  66. package/dist/types/components/Map/utils/shipOverlay.d.ts +12 -0
  67. package/dist/types/components/Map/utils/track.d.ts +45 -0
  68. package/dist/types/components/Map/utils/util.d.ts +42 -0
  69. package/dist/types/components/Table/types.d.ts +1 -0
  70. package/dist/types/components/ToolTips/index.d.ts +12 -12
  71. package/dist/types/components/index.d.ts +1 -0
  72. package/dist/umd/index.css +1 -1
  73. package/dist/umd/index.umd.cjs +25 -19
  74. package/package.json +1 -1
  75. package/dist/es/DiyDataTable-Cgqys5z_.js +0 -331
  76. package/dist/es/Table-BufcZ4Wy.js +0 -1155
@@ -12,21 +12,24 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
12
12
  type: import('vue').PropType<"small" | "large" | "middle" | "extraLarge">;
13
13
  default: string;
14
14
  };
15
- width: {
16
- type: import('vue').PropType<string | number>;
17
- };
18
15
  top: {
19
16
  type: import('vue').PropType<string>;
20
17
  };
21
18
  appendTo: {
22
19
  type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | ((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement))[], unknown, unknown>>;
23
20
  };
24
- zIndex: {
25
- type: import('vue').PropType<number>;
21
+ showClose: {
22
+ type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>>;
23
+ };
24
+ width: {
25
+ type: import('vue').PropType<string | number>;
26
26
  };
27
27
  center: {
28
28
  type: import('vue').PropType<boolean>;
29
29
  };
30
+ zIndex: {
31
+ type: import('vue').PropType<number>;
32
+ };
30
33
  appendToBody: {
31
34
  type: import('vue').PropType<boolean>;
32
35
  };
@@ -79,9 +82,6 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
79
82
  fullscreen: {
80
83
  type: import('vue').PropType<boolean>;
81
84
  };
82
- showClose: {
83
- type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>>;
84
- };
85
85
  ariaLevel: {
86
86
  type: import('vue').PropType<string>;
87
87
  };
@@ -112,21 +112,24 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
112
112
  type: import('vue').PropType<"small" | "large" | "middle" | "extraLarge">;
113
113
  default: string;
114
114
  };
115
- width: {
116
- type: import('vue').PropType<string | number>;
117
- };
118
115
  top: {
119
116
  type: import('vue').PropType<string>;
120
117
  };
121
118
  appendTo: {
122
119
  type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | ((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement))[], unknown, unknown>>;
123
120
  };
124
- zIndex: {
125
- type: import('vue').PropType<number>;
121
+ showClose: {
122
+ type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>>;
123
+ };
124
+ width: {
125
+ type: import('vue').PropType<string | number>;
126
126
  };
127
127
  center: {
128
128
  type: import('vue').PropType<boolean>;
129
129
  };
130
+ zIndex: {
131
+ type: import('vue').PropType<number>;
132
+ };
130
133
  appendToBody: {
131
134
  type: import('vue').PropType<boolean>;
132
135
  };
@@ -179,9 +182,6 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
179
182
  fullscreen: {
180
183
  type: import('vue').PropType<boolean>;
181
184
  };
182
- showClose: {
183
- type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>>;
184
- };
185
185
  ariaLevel: {
186
186
  type: import('vue').PropType<string>;
187
187
  };
@@ -8,21 +8,24 @@ export declare const ZhDialog: {
8
8
  type: import('vue').PropType<"small" | "large" | "middle" | "extraLarge">;
9
9
  default: string;
10
10
  };
11
- width: {
12
- type: import('vue').PropType<string | number>;
13
- };
14
11
  top: {
15
12
  type: import('vue').PropType<string>;
16
13
  };
17
14
  appendTo: {
18
15
  type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | ((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement))[], unknown, unknown>>;
19
16
  };
20
- zIndex: {
21
- type: import('vue').PropType<number>;
17
+ showClose: {
18
+ type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>>;
19
+ };
20
+ width: {
21
+ type: import('vue').PropType<string | number>;
22
22
  };
23
23
  center: {
24
24
  type: import('vue').PropType<boolean>;
25
25
  };
26
+ zIndex: {
27
+ type: import('vue').PropType<number>;
28
+ };
26
29
  appendToBody: {
27
30
  type: import('vue').PropType<boolean>;
28
31
  };
@@ -75,9 +78,6 @@ export declare const ZhDialog: {
75
78
  fullscreen: {
76
79
  type: import('vue').PropType<boolean>;
77
80
  };
78
- showClose: {
79
- type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>>;
80
- };
81
81
  ariaLevel: {
82
82
  type: import('vue').PropType<string>;
83
83
  };
@@ -124,21 +124,24 @@ export declare const ZhDialog: {
124
124
  type: import('vue').PropType<"small" | "large" | "middle" | "extraLarge">;
125
125
  default: string;
126
126
  };
127
- width: {
128
- type: import('vue').PropType<string | number>;
129
- };
130
127
  top: {
131
128
  type: import('vue').PropType<string>;
132
129
  };
133
130
  appendTo: {
134
131
  type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | ((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement))[], unknown, unknown>>;
135
132
  };
136
- zIndex: {
137
- type: import('vue').PropType<number>;
133
+ showClose: {
134
+ type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>>;
135
+ };
136
+ width: {
137
+ type: import('vue').PropType<string | number>;
138
138
  };
139
139
  center: {
140
140
  type: import('vue').PropType<boolean>;
141
141
  };
142
+ zIndex: {
143
+ type: import('vue').PropType<number>;
144
+ };
142
145
  appendToBody: {
143
146
  type: import('vue').PropType<boolean>;
144
147
  };
@@ -191,9 +194,6 @@ export declare const ZhDialog: {
191
194
  fullscreen: {
192
195
  type: import('vue').PropType<boolean>;
193
196
  };
194
- showClose: {
195
- type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>>;
196
- };
197
197
  ariaLevel: {
198
198
  type: import('vue').PropType<string>;
199
199
  };
@@ -234,21 +234,24 @@ export declare const ZhDialog: {
234
234
  type: import('vue').PropType<"small" | "large" | "middle" | "extraLarge">;
235
235
  default: string;
236
236
  };
237
- width: {
238
- type: import('vue').PropType<string | number>;
239
- };
240
237
  top: {
241
238
  type: import('vue').PropType<string>;
242
239
  };
243
240
  appendTo: {
244
241
  type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement) | ((new (...args: any[]) => string | HTMLElement) | (() => string | HTMLElement))[], unknown, unknown>>;
245
242
  };
246
- zIndex: {
247
- type: import('vue').PropType<number>;
243
+ showClose: {
244
+ type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>>;
245
+ };
246
+ width: {
247
+ type: import('vue').PropType<string | number>;
248
248
  };
249
249
  center: {
250
250
  type: import('vue').PropType<boolean>;
251
251
  };
252
+ zIndex: {
253
+ type: import('vue').PropType<number>;
254
+ };
252
255
  appendToBody: {
253
256
  type: import('vue').PropType<boolean>;
254
257
  };
@@ -301,9 +304,6 @@ export declare const ZhDialog: {
301
304
  fullscreen: {
302
305
  type: import('vue').PropType<boolean>;
303
306
  };
304
- showClose: {
305
- type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>>;
306
- };
307
307
  ariaLevel: {
308
308
  type: import('vue').PropType<string>;
309
309
  };
@@ -1,4 +1,4 @@
1
- import { DiyDataTableColumnItem, DiyDataType, DIY_DATA_TYPE } from './type';
1
+ import { DiyDataTableColumnItem, DiyDataType, DIY_DATA_TYPE, DiytableOperationType } from './type';
2
2
 
3
3
  declare function __VLS_template(): Partial<Record<string, (_: {
4
4
  row: any;
@@ -52,6 +52,13 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
52
52
  type: import('vue').PropType<boolean>;
53
53
  default: boolean;
54
54
  };
55
+ operationOption: {
56
+ type: import('vue').PropType<DiytableOperationType>;
57
+ };
58
+ canOnlyEditNewlyColumnHeader: {
59
+ type: import('vue').PropType<boolean>;
60
+ default: boolean;
61
+ };
55
62
  }>, {
56
63
  /** 初始化数据 */
57
64
  initData: (rawdata: DiyDataType[], rawColumns: DiyDataTableColumnItem[]) => void;
@@ -79,6 +86,8 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
79
86
  varidate?: ((value: string | number | undefined) => true | string) | undefined;
80
87
  fixed?: ("left" | "right") | undefined;
81
88
  slot?: string | undefined;
89
+ isShow?: boolean | undefined;
90
+ isNewlyColumn?: boolean | undefined;
82
91
  }[];
83
92
  } | undefined>;
84
93
  /** 更新列配置数据 */
@@ -127,6 +136,13 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
127
136
  type: import('vue').PropType<boolean>;
128
137
  default: boolean;
129
138
  };
139
+ operationOption: {
140
+ type: import('vue').PropType<DiytableOperationType>;
141
+ };
142
+ canOnlyEditNewlyColumnHeader: {
143
+ type: import('vue').PropType<boolean>;
144
+ default: boolean;
145
+ };
130
146
  }>> & Readonly<{}>, {
131
147
  isEdit: boolean;
132
148
  maxRowLength: number;
@@ -136,6 +152,7 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
136
152
  addColumnText: string;
137
153
  customAddRow: boolean;
138
154
  customAddColumn: boolean;
155
+ canOnlyEditNewlyColumnHeader: boolean;
139
156
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
140
157
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
141
158
  export default _default;
@@ -39,6 +39,13 @@ export declare const ZhDiyDataTable: {
39
39
  type: import('vue').PropType<boolean>;
40
40
  default: boolean;
41
41
  };
42
+ operationOption: {
43
+ type: import('vue').PropType<import('./type').DiytableOperationType>;
44
+ };
45
+ canOnlyEditNewlyColumnHeader: {
46
+ type: import('vue').PropType<boolean>;
47
+ default: boolean;
48
+ };
42
49
  }>> & Readonly<{}>, {
43
50
  initData: (rawdata: import('./type').DiyDataType[], rawColumns: import('./type').DiyDataTableColumnItem[]) => void;
44
51
  getData: () => Promise<{
@@ -64,6 +71,8 @@ export declare const ZhDiyDataTable: {
64
71
  varidate?: ((value: string | number | undefined) => true | string) | undefined;
65
72
  fixed?: ("left" | "right") | undefined;
66
73
  slot?: string | undefined;
74
+ isShow?: boolean | undefined;
75
+ isNewlyColumn?: boolean | undefined;
67
76
  }[];
68
77
  } | undefined>;
69
78
  updateColumn: (index: number, column: import('./type').DiyDataTableColumnItem) => void;
@@ -79,6 +88,7 @@ export declare const ZhDiyDataTable: {
79
88
  addColumnText: string;
80
89
  customAddRow: boolean;
81
90
  customAddColumn: boolean;
91
+ canOnlyEditNewlyColumnHeader: boolean;
82
92
  }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
83
93
  P: {};
84
94
  B: {};
@@ -126,6 +136,13 @@ export declare const ZhDiyDataTable: {
126
136
  type: import('vue').PropType<boolean>;
127
137
  default: boolean;
128
138
  };
139
+ operationOption: {
140
+ type: import('vue').PropType<import('./type').DiytableOperationType>;
141
+ };
142
+ canOnlyEditNewlyColumnHeader: {
143
+ type: import('vue').PropType<boolean>;
144
+ default: boolean;
145
+ };
129
146
  }>> & Readonly<{}>, {
130
147
  initData: (rawdata: import('./type').DiyDataType[], rawColumns: import('./type').DiyDataTableColumnItem[]) => void;
131
148
  getData: () => Promise<{
@@ -151,6 +168,8 @@ export declare const ZhDiyDataTable: {
151
168
  varidate?: ((value: string | number | undefined) => true | string) | undefined;
152
169
  fixed?: ("left" | "right") | undefined;
153
170
  slot?: string | undefined;
171
+ isShow?: boolean | undefined;
172
+ isNewlyColumn?: boolean | undefined;
154
173
  }[];
155
174
  } | undefined>;
156
175
  updateColumn: (index: number, column: import('./type').DiyDataTableColumnItem) => void;
@@ -166,6 +185,7 @@ export declare const ZhDiyDataTable: {
166
185
  addColumnText: string;
167
186
  customAddRow: boolean;
168
187
  customAddColumn: boolean;
188
+ canOnlyEditNewlyColumnHeader: boolean;
169
189
  }>;
170
190
  __isFragment?: never;
171
191
  __isTeleport?: never;
@@ -210,6 +230,13 @@ export declare const ZhDiyDataTable: {
210
230
  type: import('vue').PropType<boolean>;
211
231
  default: boolean;
212
232
  };
233
+ operationOption: {
234
+ type: import('vue').PropType<import('./type').DiytableOperationType>;
235
+ };
236
+ canOnlyEditNewlyColumnHeader: {
237
+ type: import('vue').PropType<boolean>;
238
+ default: boolean;
239
+ };
213
240
  }>> & Readonly<{}>, {
214
241
  initData: (rawdata: import('./type').DiyDataType[], rawColumns: import('./type').DiyDataTableColumnItem[]) => void;
215
242
  getData: () => Promise<{
@@ -235,6 +262,8 @@ export declare const ZhDiyDataTable: {
235
262
  varidate?: ((value: string | number | undefined) => true | string) | undefined;
236
263
  fixed?: ("left" | "right") | undefined;
237
264
  slot?: string | undefined;
265
+ isShow?: boolean | undefined;
266
+ isNewlyColumn?: boolean | undefined;
238
267
  }[];
239
268
  } | undefined>;
240
269
  updateColumn: (index: number, column: import('./type').DiyDataTableColumnItem) => void;
@@ -250,6 +279,7 @@ export declare const ZhDiyDataTable: {
250
279
  addColumnText: string;
251
280
  customAddRow: boolean;
252
281
  customAddColumn: boolean;
282
+ canOnlyEditNewlyColumnHeader: boolean;
253
283
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
254
284
  $slots: Partial<Record<string, (_: {
255
285
  row: any;
@@ -7,7 +7,8 @@ export declare enum DIY_DATA_TYPE {
7
7
  /** 格式化文本 */
8
8
  FORMAT = "format",
9
9
  /** 文本,初始化要传数据,配合isSameData使用 */
10
- TEXT = "text"
10
+ TEXT = "text",
11
+ INDEX = "index"
11
12
  }
12
13
  /** 列配置 */
13
14
  export type DiyDataTableColumnItem = {
@@ -51,4 +52,19 @@ export type DiyDataTableColumnItem = {
51
52
  fixed?: "left" | "right";
52
53
  /** 列插槽 */
53
54
  slot?: string;
55
+ /** show是否显示列,目前只对序号列 prop:index,生效 */
56
+ isShow?: boolean;
57
+ isNewlyColumn?: boolean;
54
58
  };
59
+ /** 增行,增列操作列的配置项 */
60
+ export interface DiytableOperationType {
61
+ isShow?: boolean;
62
+ /** 宽度 */
63
+ width?: number | string;
64
+ /** 最小宽度 */
65
+ minWidth?: number | string;
66
+ customAddRow?: boolean;
67
+ addRowText?: string;
68
+ customAddColumn?: boolean;
69
+ addColumnText?: string;
70
+ }
@@ -0,0 +1,2 @@
1
+ export declare const CDN_URL = "https://static.zhihaoscm.cn/";
2
+ export declare const equatorialCircumference = 20037508.34;
@@ -0,0 +1,2 @@
1
+ export * from './map';
2
+ export * from './global';
@@ -0,0 +1,22 @@
1
+ export declare const TIAN_DI_TU_KEY = "a6e8f78974f2581f2ca00485b40c948f";
2
+ export declare const MAP_ZOOM: {
3
+ default: number;
4
+ min: number;
5
+ max: number;
6
+ findShipMin: number;
7
+ findShip: number;
8
+ findTruck: number;
9
+ shipGreenDotMax: number;
10
+ truckDefault: number;
11
+ truckStatistics: number;
12
+ shipModelMin: number;
13
+ shipTriggleMin: number;
14
+ shipModelMax: number;
15
+ markerPosition: number;
16
+ scaleNum: number;
17
+ };
18
+ export declare const projection: {
19
+ data: string;
20
+ mercator: string;
21
+ };
22
+ export declare const MAP_DEFAULT_CENTER: [number, number];
@@ -0,0 +1,11 @@
1
+ import { VehicleInfo } from '../interface';
2
+ import { ShipTrack } from '../interface/shipTrack';
3
+
4
+ export declare const useCarTrackManager: (mapInstance: any, trackManager: any) => {
5
+ location: (vehicleInfo?: VehicleInfo) => Promise<void>;
6
+ remove: () => void;
7
+ renderTrack: (vclN: string, list: ShipTrack[], color: string) => void;
8
+ setCenter: (id: string | number) => void;
9
+ closeTrack: () => void;
10
+ playTrack: (id: number | string, speed: number) => void;
11
+ };
@@ -0,0 +1,12 @@
1
+ import { Map } from 'ol';
2
+ import { LineString } from 'ol/geom';
3
+ import { PropsManager } from './props';
4
+
5
+ export declare const useDrawLineManager: (mapInstance: Map, propsManager: PropsManager) => {
6
+ open: () => void;
7
+ close: () => void;
8
+ deleteLine: (id: string) => void;
9
+ setUnit: (unitValue: string) => void;
10
+ getState: () => boolean;
11
+ };
12
+ export declare const computedDistance: (line: LineString, unit: string) => string;
@@ -0,0 +1,8 @@
1
+ import { Map } from 'ol';
2
+ import { PropsManager } from './props';
3
+
4
+ export declare const useDrawPolygonManager: (mapInstance: Map, propsManager: PropsManager) => {
5
+ open: () => void;
6
+ close: () => void;
7
+ reset: () => void;
8
+ };
@@ -0,0 +1,8 @@
1
+ import { useMapInitializer } from './map';
2
+ import { PropsManager } from './props';
3
+ import { useTrackManager } from './shipTrack';
4
+ import { useShipManager } from './ship';
5
+ import { usePortManager } from './port';
6
+ import { useDrawLineManager } from './drawLine';
7
+
8
+ export declare const useEventManager: (mapManager: ReturnType<typeof useMapInitializer>, propsManager: PropsManager, trackManager: ReturnType<typeof useTrackManager>, shipManager: ReturnType<typeof useShipManager>, portManager: ReturnType<typeof usePortManager>, drawLineManager: ReturnType<typeof useDrawLineManager>) => void;
@@ -0,0 +1,10 @@
1
+ import { Props } from '../interface';
2
+ import { Map } from 'ol';
3
+
4
+ export declare const useLayerManager: (mapInstance: Map) => {
5
+ getLayers: () => import('ol').Collection<import('ol/layer/Base').default>;
6
+ getGreenTileVisible: () => boolean;
7
+ setGreenTileVisible: (show: boolean) => void;
8
+ getShowLayerType: () => "vector" | "satellite" | undefined;
9
+ setShowLayerType: (type: Props["layerType"]) => void;
10
+ };
@@ -0,0 +1,18 @@
1
+ import { Map, View } from 'ol';
2
+ import { Coordinate } from 'ol/coordinate';
3
+ import { Props } from '../interface';
4
+
5
+ /**
6
+ * 地图工具类
7
+ */
8
+ export declare function useMapInitializer(): {
9
+ getInstall: () => Map;
10
+ getView: () => View;
11
+ getZoom: () => number;
12
+ setZoom: (zoom: number) => void;
13
+ setCenter: (lon: number, lat: number) => void;
14
+ getCenter: () => Coordinate;
15
+ getSize: () => number[];
16
+ initMap: (element: HTMLDivElement, props: Props) => void;
17
+ setBaseLayerMap: (props: Props) => void;
18
+ };
@@ -0,0 +1,10 @@
1
+ import { WharfEntity } from '../interface';
2
+ import { Feature, Map } from 'ol';
3
+
4
+ export declare const PORT_LAYER_CLASS_NAME = "zh-map-port-layer";
5
+ export declare const usePortManager: (mapInstance: Map) => {
6
+ render: (portList: WharfEntity[], showTitle?: boolean) => void;
7
+ clear: () => void;
8
+ selected: (portData?: WharfEntity) => void;
9
+ handlePortHover: (portFeature: Feature) => void;
10
+ };
@@ -0,0 +1,8 @@
1
+ import { LocationEntity } from '../interface';
2
+
3
+ export declare const usePositionManager: (mapInstance: any) => {
4
+ render: (portList: LocationEntity[]) => void;
5
+ selected: (loactionData?: LocationEntity) => void;
6
+ clearSelected: () => void;
7
+ clear: () => void;
8
+ };
@@ -0,0 +1,7 @@
1
+ import { Props } from '../interface';
2
+
3
+ export interface PropsManager {
4
+ setProps: (propsValue: Props) => void;
5
+ getProps: () => Props;
6
+ }
7
+ export declare const usePropsManager: () => PropsManager;
@@ -0,0 +1,18 @@
1
+ import { ShipInfoVo } from '../../interface';
2
+ import { Feature } from 'ol';
3
+
4
+ export declare const useShipManager: (mapInstance: any) => {
5
+ render: (shipList: ShipInfoVo[]) => void;
6
+ selected: (ship: ShipInfoVo) => void;
7
+ filter: (shipList: ShipInfoVo[]) => void;
8
+ blinking: (ships: Record<string, boolean>, colors: {
9
+ blinkColors: string[];
10
+ shipState: string;
11
+ }) => void;
12
+ clear: () => void;
13
+ handleShipMapEvent: import('lodash-es').DebouncedFunc<(shipsFeature: Feature, type: string, callback?: (id: string) => void) => void>;
14
+ changeShipScale: (status: string) => void;
15
+ changeSelectedScale: () => void;
16
+ hiddenShipBlink: () => void;
17
+ showShipBlink: () => void;
18
+ };
@@ -0,0 +1,5 @@
1
+ import { ShipInfoVo } from '../../interface';
2
+ import { Feature } from 'ol';
3
+
4
+ export declare const getRightIcons: (ship: ShipInfoVo) => string[];
5
+ export declare const createLabelRenderer: (ctx: CanvasRenderingContext2D, pixelCoords: [number, number], feature: Feature) => void;
@@ -0,0 +1,23 @@
1
+ import { ShipInfoVo } from '../../interface';
2
+ import { SHIP_DIRECT } from '../../meta/ship';
3
+ import { Feature, Map as MapOl, Overlay } from 'ol';
4
+ import { Style } from 'ol/style';
5
+
6
+ export declare const getShipDirectPath: (ship: ShipInfoVo) => "" | SHIP_DIRECT.left | SHIP_DIRECT.right | SHIP_DIRECT.front;
7
+ type ShipType = 'ship' | 'triangle';
8
+ export declare const createShipStyle: (mapInstance: any, feature: Feature) => Style;
9
+ export declare const getShipType: (mapInstance: MapOl) => ShipType;
10
+ export declare const getShipScale: (mapInstance: MapOl, shipData: ShipInfoVo, shipType: ShipType) => number;
11
+ export declare const selectedShipStyle: (mapInstance: MapOl, shipData: ShipInfoVo) => Overlay;
12
+ /**
13
+ * 生成船只元素
14
+ * @param shipData
15
+ */
16
+ export declare const selectedShipElement: (mapInstance: MapOl, shipData: ShipInfoVo) => HTMLDivElement;
17
+ export declare const createLabelStyle: (mapInstance: any, shipData: any) => void;
18
+ export declare const createLabelElement: (shipData: any) => HTMLDivElement;
19
+ export declare const getRightIcons: (ship: ShipInfoVo) => string[];
20
+ export declare function getRandomLineDirection(): LineDirection;
21
+ type LineDirection = 'left-top' | 'left-middle' | 'left-bottom' | 'right-top' | 'right-middle' | 'right-bottom';
22
+ export declare const createLabelFeatureStyle: (feature: Feature, lenNum: number) => Style;
23
+ export {};
@@ -0,0 +1,12 @@
1
+ export interface ShipOverlayProps {
2
+ selected: boolean;
3
+ name: string;
4
+ color: string;
5
+ position: [number, number];
6
+ existDevice?: boolean;
7
+ existMobile?: boolean;
8
+ existWaterGauge?: boolean;
9
+ }
10
+ export default function useShipOverlay(props: ShipOverlayProps): () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
11
+ [key: string]: any;
12
+ }>;
@@ -0,0 +1,16 @@
1
+ import { Feature, MapBrowserEvent } from 'ol';
2
+ import { ShipTrack } from '../interface/shipTrack';
3
+
4
+ export declare const useTrackManager: (mapInstance: any) => {
5
+ render: (id: string, list: ShipTrack[], color: string, type?: string | undefined, threshold?: number) => Promise<void>;
6
+ remove: () => void;
7
+ play: (id: number | string, speed: number) => void;
8
+ setCenter: (id?: number | string) => void;
9
+ close: (id?: string) => void;
10
+ getLength: (id: string, unit?: number) => {
11
+ id: string;
12
+ length: string;
13
+ };
14
+ handleTrackMapEvent: (trunkFeature: Feature | undefined, type: string, event: MapBrowserEvent<PointerEvent>) => void;
15
+ reRenderTrackLine: import('lodash-es').DebouncedFunc<() => void>;
16
+ };
@@ -0,0 +1,70 @@
1
+ export interface VehicleInfo {
2
+ /**
3
+ * 车牌号
4
+ */
5
+ vno: string;
6
+ /**
7
+ * 状态码
8
+ */
9
+ status: string;
10
+ /**
11
+ * 车辆最后定位经度
12
+ */
13
+ lon: string;
14
+ /**
15
+ * 车辆最后定位纬度
16
+ */
17
+ lat: string;
18
+ /**
19
+ * 车辆地理位置名称
20
+ */
21
+ adr: string;
22
+ /**
23
+ * 车辆定位时间戳
24
+ */
25
+ utc: string;
26
+ /**
27
+ * 速度
28
+ */
29
+ spd: string;
30
+ /**
31
+ * 方向
32
+ */
33
+ drc: string;
34
+ /**
35
+ * 省
36
+ */
37
+ province: string;
38
+ /**
39
+ * 市
40
+ */
41
+ city: string;
42
+ /**
43
+ * 县
44
+ */
45
+ country: string;
46
+ /**
47
+ * 里程
48
+ */
49
+ mil: string;
50
+ /**
51
+ * 离线状态
52
+ */
53
+ offlineState: boolean;
54
+ /**
55
+ * 离线时长
56
+ */
57
+ offlineTime: number;
58
+ /**
59
+ * 车辆已行驶距
60
+ */
61
+ runDistance: string;
62
+ /**
63
+ * 剩余运距
64
+ */
65
+ remainDistance: string;
66
+ /**
67
+ * 预计到达时间
68
+ */
69
+ estimateArriveTime: string;
70
+ }