zhihao-ui 1.2.7 → 1.2.9

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 (47) hide show
  1. package/dist/es/{BaseInfo-CboHDiqp.js → BaseInfo-Dv-eon6t.js} +1 -1
  2. package/dist/es/Button-DBbUF88w.js +51 -0
  3. package/dist/es/{DatePicker-AcRbvS-8.js → DatePicker-CWQoV03Q.js} +13 -13
  4. package/dist/es/{DetailHeader-CoaVXtN3.js → DetailHeader-C_mAB8-2.js} +3 -3
  5. package/dist/es/{DetailSubTitle-Csp4LjFx.js → DetailSubTitle-DD7Yllhf.js} +2 -2
  6. package/dist/es/Dialog-DyDSVm-6.js +109 -0
  7. package/dist/es/{DiyDataTable-CP7yYQaU.js → DiyDataTable-KOY6vjPs.js} +90 -85
  8. package/dist/es/{EditInfoPair-DBbRqppY.js → EditInfoPair-D0b5jY5Y.js} +3 -3
  9. package/dist/es/{FileWrapper-BwQhQopY.js → FileWrapper-CMSYWmEz.js} +4 -4
  10. package/dist/es/{Grid-B-FutGih.js → Grid-B5O9dZNI.js} +1 -1
  11. package/dist/es/{InfoPair-WmMCXoUh.js → InfoPair-Do3sSVw-.js} +3 -3
  12. package/dist/es/{Input-DFnH7_jo.js → Input-DVpd0Yte.js} +11 -11
  13. package/dist/es/{Loading-BW6Doqh_.js → Loading-DwtfOhMD.js} +2 -2
  14. package/dist/es/{Map-IjNHD4K5.js → Map-CMiThYaG.js} +641 -315
  15. package/dist/es/MessageBox-BowhqMYW.js +48 -0
  16. package/dist/es/{MoneyInput-BwkFhS2B.js → MoneyInput-CaTrJLi1.js} +7 -7
  17. package/dist/es/{PageHeadPanel-BhR3Bq1A.js → PageHeadPanel-_mKu2rMQ.js} +2 -2
  18. package/dist/es/{ToolTips-BEYXkt4n.js → ToolTips-BTCP0N--.js} +3 -3
  19. package/dist/es/index.js +30 -28
  20. package/dist/es/{utils-B1dH8Kx6.js → utils-DZ8-2Fg2.js} +1 -1
  21. package/dist/es/{vendor-Cu-cEPs_.js → vendor-BY-fHNA3.js} +9646 -8896
  22. package/dist/index.css +1 -1
  23. package/dist/types/components/ButtonGroup/ButtonGroup.test.d.ts +1 -0
  24. package/dist/types/components/ButtonGroup/ButtonGroup.vue.d.ts +37 -0
  25. package/dist/types/components/ButtonGroup/index.d.ts +38 -0
  26. package/dist/types/components/Dialog/Dialog.test.d.ts +1 -0
  27. package/dist/types/components/Dialog/Dialog.vue.d.ts +187 -14
  28. package/dist/types/components/Dialog/index.d.ts +296 -25
  29. package/dist/types/components/Dialog/types.d.ts +15 -5
  30. package/dist/types/components/DiyDataTable/type.d.ts +5 -3
  31. package/dist/types/components/Map/Map.vue.d.ts +15 -5
  32. package/dist/types/components/Map/index.d.ts +27 -0
  33. package/dist/types/components/Map/interface/entity/render.d.ts +32 -0
  34. package/dist/types/components/Map/interface/entity/shipInfoVo.d.ts +4 -0
  35. package/dist/types/components/Map/interface/index.d.ts +1 -0
  36. package/dist/types/components/Map/render/canvasRender/canvasRender.d.ts +5 -3
  37. package/dist/types/components/Map/render/drawPolygon.d.ts +9 -0
  38. package/dist/types/components/MessageBox/MessageBox.test.d.ts +1 -0
  39. package/dist/types/components/MessageBox/MessageBox.vue.d.ts +11 -218
  40. package/dist/types/components/MessageBox/index.d.ts +4 -342
  41. package/dist/types/components/index.d.ts +1 -0
  42. package/dist/umd/index.css +1 -1
  43. package/dist/umd/index.umd.cjs +25 -17
  44. package/package.json +1 -1
  45. package/dist/es/Button-C1Q6WvkI.js +0 -32
  46. package/dist/es/Dialog-CtU-qGdR.js +0 -74
  47. package/dist/es/MessageBox-CjuBt74R.js +0 -100
@@ -1,26 +1,116 @@
1
1
  export declare const ZhDialog: {
2
2
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
3
3
  modelValue: import('vue').PropType<boolean>;
4
+ size: {
5
+ type: import('vue').PropType<"small" | "large" | "middle" | "extraLarge">;
6
+ default: string;
7
+ };
8
+ top: {
9
+ type: import('vue').PropType<string>;
10
+ };
4
11
  title: {
5
12
  type: import('vue').PropType<string>;
6
- required: true;
7
13
  };
8
- subtitle: {
14
+ appendToBody: {
15
+ type: import('vue').PropType<boolean>;
16
+ };
17
+ appendTo: {
18
+ 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
+ };
20
+ beforeClose: {
21
+ type: import('vue').PropType<import('element-plus').DialogBeforeCloseFn>;
22
+ };
23
+ destroyOnClose: {
24
+ type: import('vue').PropType<boolean>;
25
+ };
26
+ closeOnClickModal: {
27
+ type: import('vue').PropType<boolean>;
28
+ default: boolean;
29
+ };
30
+ closeOnPressEscape: {
31
+ type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>>;
32
+ };
33
+ lockScroll: {
34
+ type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>>;
35
+ };
36
+ modal: {
37
+ type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>>;
38
+ };
39
+ openDelay: {
40
+ type: import('vue').PropType<number>;
41
+ };
42
+ closeDelay: {
43
+ type: import('vue').PropType<number>;
44
+ };
45
+ modalClass: {
46
+ type: import('vue').PropType<string>;
47
+ };
48
+ width: {
49
+ type: import('vue').PropType<string | number>;
50
+ };
51
+ zIndex: {
52
+ type: import('vue').PropType<number>;
53
+ };
54
+ trapFocus: {
55
+ type: import('vue').PropType<boolean>;
56
+ };
57
+ headerAriaLevel: {
58
+ type: import('vue').PropType<string>;
59
+ };
60
+ center: {
61
+ type: import('vue').PropType<boolean>;
62
+ };
63
+ alignCenter: {
64
+ type: import('vue').PropType<boolean>;
65
+ };
66
+ closeIcon: {
67
+ type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component) | ((new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component))[], unknown, unknown>>;
68
+ };
69
+ draggable: {
70
+ type: import('vue').PropType<boolean>;
71
+ };
72
+ overflow: {
73
+ type: import('vue').PropType<boolean>;
74
+ };
75
+ fullscreen: {
76
+ type: import('vue').PropType<boolean>;
77
+ };
78
+ showClose: {
79
+ type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>>;
80
+ };
81
+ ariaLevel: {
82
+ type: import('vue').PropType<string>;
83
+ };
84
+ subTitle: {
9
85
  type: import('vue').PropType<string>;
10
86
  };
11
- submitText: {
87
+ cancelButtonText: {
12
88
  type: import('vue').PropType<string>;
89
+ default: string;
13
90
  };
14
- submitDisabled: {
91
+ confirmButtonText: {
92
+ type: import('vue').PropType<string>;
93
+ default: string;
94
+ };
95
+ confirmButtonDisabled: {
15
96
  type: import('vue').PropType<boolean>;
97
+ default: boolean;
16
98
  };
17
99
  }>> & Readonly<{
18
- onSubmit?: ((...args: any[]) => any) | undefined;
19
- onClose?: ((...args: any[]) => any) | undefined;
100
+ onCancel?: (() => any) | undefined;
101
+ onConfirm?: (() => any) | undefined;
102
+ onClose?: (() => any) | undefined;
20
103
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
- submit: (...args: any[]) => void;
22
- close: (...args: any[]) => void;
23
- }, import('vue').PublicProps, {}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
104
+ cancel: () => void;
105
+ confirm: () => void;
106
+ close: () => void;
107
+ }, import('vue').PublicProps, {
108
+ size: "small" | "middle" | "large" | "extraLarge";
109
+ closeOnClickModal: boolean;
110
+ cancelButtonText: string;
111
+ confirmButtonText: string;
112
+ confirmButtonDisabled: boolean;
113
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
24
114
  P: {};
25
115
  B: {};
26
116
  D: {};
@@ -29,49 +119,230 @@ export declare const ZhDialog: {
29
119
  Defaults: {};
30
120
  }, Readonly<import('vue').ExtractPropTypes<{
31
121
  modelValue: import('vue').PropType<boolean>;
122
+ size: {
123
+ type: import('vue').PropType<"small" | "large" | "middle" | "extraLarge">;
124
+ default: string;
125
+ };
126
+ top: {
127
+ type: import('vue').PropType<string>;
128
+ };
32
129
  title: {
33
130
  type: import('vue').PropType<string>;
34
- required: true;
35
131
  };
36
- subtitle: {
132
+ appendToBody: {
133
+ type: import('vue').PropType<boolean>;
134
+ };
135
+ appendTo: {
136
+ 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>>;
137
+ };
138
+ beforeClose: {
139
+ type: import('vue').PropType<import('element-plus').DialogBeforeCloseFn>;
140
+ };
141
+ destroyOnClose: {
142
+ type: import('vue').PropType<boolean>;
143
+ };
144
+ closeOnClickModal: {
145
+ type: import('vue').PropType<boolean>;
146
+ default: boolean;
147
+ };
148
+ closeOnPressEscape: {
149
+ type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>>;
150
+ };
151
+ lockScroll: {
152
+ type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>>;
153
+ };
154
+ modal: {
155
+ type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>>;
156
+ };
157
+ openDelay: {
158
+ type: import('vue').PropType<number>;
159
+ };
160
+ closeDelay: {
161
+ type: import('vue').PropType<number>;
162
+ };
163
+ modalClass: {
164
+ type: import('vue').PropType<string>;
165
+ };
166
+ width: {
167
+ type: import('vue').PropType<string | number>;
168
+ };
169
+ zIndex: {
170
+ type: import('vue').PropType<number>;
171
+ };
172
+ trapFocus: {
173
+ type: import('vue').PropType<boolean>;
174
+ };
175
+ headerAriaLevel: {
176
+ type: import('vue').PropType<string>;
177
+ };
178
+ center: {
179
+ type: import('vue').PropType<boolean>;
180
+ };
181
+ alignCenter: {
182
+ type: import('vue').PropType<boolean>;
183
+ };
184
+ closeIcon: {
185
+ type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component) | ((new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component))[], unknown, unknown>>;
186
+ };
187
+ draggable: {
188
+ type: import('vue').PropType<boolean>;
189
+ };
190
+ overflow: {
191
+ type: import('vue').PropType<boolean>;
192
+ };
193
+ fullscreen: {
194
+ type: import('vue').PropType<boolean>;
195
+ };
196
+ showClose: {
197
+ type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>>;
198
+ };
199
+ ariaLevel: {
200
+ type: import('vue').PropType<string>;
201
+ };
202
+ subTitle: {
203
+ type: import('vue').PropType<string>;
204
+ };
205
+ cancelButtonText: {
37
206
  type: import('vue').PropType<string>;
207
+ default: string;
38
208
  };
39
- submitText: {
209
+ confirmButtonText: {
40
210
  type: import('vue').PropType<string>;
211
+ default: string;
41
212
  };
42
- submitDisabled: {
213
+ confirmButtonDisabled: {
43
214
  type: import('vue').PropType<boolean>;
215
+ default: boolean;
44
216
  };
45
217
  }>> & Readonly<{
46
- onSubmit?: ((...args: any[]) => any) | undefined;
47
- onClose?: ((...args: any[]) => any) | undefined;
48
- }>, {}, {}, {}, {}, {}>;
218
+ onCancel?: (() => any) | undefined;
219
+ onConfirm?: (() => any) | undefined;
220
+ onClose?: (() => any) | undefined;
221
+ }>, {}, {}, {}, {}, {
222
+ size: "small" | "middle" | "large" | "extraLarge";
223
+ closeOnClickModal: boolean;
224
+ cancelButtonText: string;
225
+ confirmButtonText: string;
226
+ confirmButtonDisabled: boolean;
227
+ }>;
49
228
  __isFragment?: never;
50
229
  __isTeleport?: never;
51
230
  __isSuspense?: never;
52
231
  } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
53
232
  modelValue: import('vue').PropType<boolean>;
233
+ size: {
234
+ type: import('vue').PropType<"small" | "large" | "middle" | "extraLarge">;
235
+ default: string;
236
+ };
237
+ top: {
238
+ type: import('vue').PropType<string>;
239
+ };
54
240
  title: {
55
241
  type: import('vue').PropType<string>;
56
- required: true;
57
242
  };
58
- subtitle: {
243
+ appendToBody: {
244
+ type: import('vue').PropType<boolean>;
245
+ };
246
+ appendTo: {
247
+ 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>>;
248
+ };
249
+ beforeClose: {
250
+ type: import('vue').PropType<import('element-plus').DialogBeforeCloseFn>;
251
+ };
252
+ destroyOnClose: {
253
+ type: import('vue').PropType<boolean>;
254
+ };
255
+ closeOnClickModal: {
256
+ type: import('vue').PropType<boolean>;
257
+ default: boolean;
258
+ };
259
+ closeOnPressEscape: {
260
+ type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>>;
261
+ };
262
+ lockScroll: {
263
+ type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>>;
264
+ };
265
+ modal: {
266
+ type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>>;
267
+ };
268
+ openDelay: {
269
+ type: import('vue').PropType<number>;
270
+ };
271
+ closeDelay: {
272
+ type: import('vue').PropType<number>;
273
+ };
274
+ modalClass: {
275
+ type: import('vue').PropType<string>;
276
+ };
277
+ width: {
278
+ type: import('vue').PropType<string | number>;
279
+ };
280
+ zIndex: {
281
+ type: import('vue').PropType<number>;
282
+ };
283
+ trapFocus: {
284
+ type: import('vue').PropType<boolean>;
285
+ };
286
+ headerAriaLevel: {
287
+ type: import('vue').PropType<string>;
288
+ };
289
+ center: {
290
+ type: import('vue').PropType<boolean>;
291
+ };
292
+ alignCenter: {
293
+ type: import('vue').PropType<boolean>;
294
+ };
295
+ closeIcon: {
296
+ type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component) | ((new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component))[], unknown, unknown>>;
297
+ };
298
+ draggable: {
299
+ type: import('vue').PropType<boolean>;
300
+ };
301
+ overflow: {
302
+ type: import('vue').PropType<boolean>;
303
+ };
304
+ fullscreen: {
305
+ type: import('vue').PropType<boolean>;
306
+ };
307
+ showClose: {
308
+ type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>>;
309
+ };
310
+ ariaLevel: {
311
+ type: import('vue').PropType<string>;
312
+ };
313
+ subTitle: {
314
+ type: import('vue').PropType<string>;
315
+ };
316
+ cancelButtonText: {
59
317
  type: import('vue').PropType<string>;
318
+ default: string;
60
319
  };
61
- submitText: {
320
+ confirmButtonText: {
62
321
  type: import('vue').PropType<string>;
322
+ default: string;
63
323
  };
64
- submitDisabled: {
324
+ confirmButtonDisabled: {
65
325
  type: import('vue').PropType<boolean>;
326
+ default: boolean;
66
327
  };
67
328
  }>> & Readonly<{
68
- onSubmit?: ((...args: any[]) => any) | undefined;
69
- onClose?: ((...args: any[]) => any) | undefined;
329
+ onCancel?: (() => any) | undefined;
330
+ onConfirm?: (() => any) | undefined;
331
+ onClose?: (() => any) | undefined;
70
332
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
71
- submit: (...args: any[]) => void;
72
- close: (...args: any[]) => void;
73
- }, string, {}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
333
+ cancel: () => void;
334
+ confirm: () => void;
335
+ close: () => void;
336
+ }, string, {
337
+ size: "small" | "middle" | "large" | "extraLarge";
338
+ closeOnClickModal: boolean;
339
+ cancelButtonText: string;
340
+ confirmButtonText: string;
341
+ confirmButtonDisabled: boolean;
342
+ }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
74
343
  $slots: {
344
+ header?(_: {}): any;
75
345
  default?(_: {}): any;
346
+ footer?(_: {}): any;
76
347
  };
77
348
  }) & import('vue').Plugin;
@@ -1,6 +1,16 @@
1
- export interface ZhDialogProps {
2
- title: string;
3
- subtitle?: string;
4
- submitText?: string;
5
- submitDisabled?: boolean;
1
+ import { DialogProps } from 'element-plus';
2
+
3
+ export interface ZhDialogProps extends Partial<DialogProps> {
4
+ title?: string;
5
+ subTitle?: string;
6
+ cancelButtonText?: string;
7
+ confirmButtonText?: string;
8
+ confirmButtonDisabled?: boolean;
9
+ closeOnClickModal?: boolean;
10
+ /**
11
+ * size非必填,small 400px, middle 600px, large 800px, extraLarge 920px
12
+ * 若有width, 则按传入的具体width展示, 无width则按size显示,默认按size: middle 600px显示。
13
+ */
14
+ size?: "small" | "middle" | "large" | "extraLarge";
15
+ width?: string | number;
6
16
  }
@@ -1,11 +1,13 @@
1
1
  /** 自定义数据项 */
2
2
  export type DiyDataType = Record<string, string | number | undefined>;
3
- /** 列输入框类型 */
3
+ /** 列类型 */
4
4
  export declare enum DIY_DATA_TYPE {
5
5
  /** 自动补全输入框 */
6
6
  AUTOCOMPLETE = "autocomplete",
7
7
  /** 格式化文本 */
8
- FORMAT = "format"
8
+ FORMAT = "format",
9
+ /** 文本,初始化要传数据,配合isSameData使用 */
10
+ TEXT = "text"
9
11
  }
10
12
  /** 列配置 */
11
13
  export type DiyDataTableColumnItem = {
@@ -27,7 +29,7 @@ export type DiyDataTableColumnItem = {
27
29
  placeholder?: string;
28
30
  /** 是否必填 */
29
31
  required?: boolean;
30
- /** 是否固定标签 */
32
+ /** 是否是可编辑表头 */
31
33
  isEditHeader?: boolean;
32
34
  /** 是否相同数据 */
33
35
  isSameData?: boolean;
@@ -1,5 +1,6 @@
1
1
  import { Ref } from 'vue';
2
2
  import { Map } from 'ol';
3
+ import { ShipInfoVo } from './interface';
3
4
 
4
5
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
5
6
  zoom: number | null;
@@ -8,23 +9,32 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
8
9
  }>>, {
9
10
  mapInstance: Ref<Map | undefined, Map | undefined>;
10
11
  initMap: () => void;
11
- renderTrucksMarker: (list: import('./interface/index.ts').SinoiovVehicleInfo[]) => import('ol/layer').Vector<import('ol/source').Vector<any>, any> | undefined;
12
- renderShip: (list: import('./interface/index.ts').ShipInfoVo[]) => import('ol/layer').Vector<import('ol/source').Vector<any>, any> | import('ol/layer').WebGLPoints<import('ol/source').Vector<import('ol').Feature<import('ol/geom').Geometry>>> | undefined;
12
+ renderTrucksMarker: (list: import('./interface').SinoiovVehicleInfo[]) => import('ol/layer').Vector<import('ol/source').Vector<any>, any> | undefined;
13
+ renderShip: (list: ShipInfoVo[]) => import('ol/layer').Vector<import('ol/source').Vector<any>, any> | import('ol/layer').WebGLPoints<import('ol/source').Vector<import('ol').Feature<import('ol/geom').Geometry>>> | undefined;
13
14
  renderTrack: (id: string, list: any[], color: string, unit: string, vehicleType?: "ship" | "truck") => void;
14
- findTruck: (vehicleInfo?: import('./interface/index.ts').VehicleInfo) => Promise<void>;
15
+ findTruck: (vehicleInfo?: import('./interface').VehicleInfo) => Promise<void>;
15
16
  removeTruckIcon: () => void;
16
17
  clearAllTruck: () => void;
17
18
  closeTrack: () => void;
18
19
  closeTruckTrack: () => void;
19
20
  clearSelectFeature: () => void;
20
- findShip: (id: string, shipData?: import('./interface/index.ts').ShipInfoVo, select?: boolean) => any;
21
- showTracks: Ref<import('./interface/index.ts').TrackExtend[], import('./interface/index.ts').TrackExtend[]>;
21
+ findShip: (id: string, shipData?: ShipInfoVo, select?: boolean) => any;
22
+ focusShip: (id: string, shipData?: ShipInfoVo) => void;
23
+ showTracks: Ref<import('./interface').TrackExtend[], import('./interface').TrackExtend[]>;
22
24
  removeAllTrackLayer: () => void;
23
25
  switchFilterItem: (key: import('./enum').SWITCH_BTN, value: boolean) => void;
24
26
  rerenderShip: () => void;
25
27
  switchGreenDot: () => void;
26
28
  zoomTruckIcon: () => void;
27
29
  renderTruckTrack: (vclN: string, list: any[], color: string) => void;
30
+ renderMarker: (lngLat: string, translate?: boolean, showText?: boolean) => void;
31
+ setMarkerPosition: (val: string) => void;
32
+ drawPolygonTool: {
33
+ addInteraction: (callback: Function) => void;
34
+ removeInteraction: () => void;
35
+ initFeature: (callback: Function) => void;
36
+ reset: () => void;
37
+ };
28
38
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
29
39
  zoomChanged: (...args: any[]) => void;
30
40
  extentChanged: (...args: any[]) => void;
@@ -28,6 +28,7 @@ export declare const ZhMap: {
28
28
  closeTruckTrack: () => void;
29
29
  clearSelectFeature: () => void;
30
30
  findShip: (id: string, shipData?: import('./interface').ShipInfoVo, select?: boolean) => any;
31
+ focusShip: (id: string, shipData?: import('./interface').ShipInfoVo) => void;
31
32
  showTracks: import('vue').Ref<import('./interface').TrackExtend[], import('./interface').TrackExtend[]>;
32
33
  removeAllTrackLayer: () => void;
33
34
  switchFilterItem: (key: import('./enum').SWITCH_BTN, value: boolean) => void;
@@ -35,6 +36,14 @@ export declare const ZhMap: {
35
36
  switchGreenDot: () => void;
36
37
  zoomTruckIcon: () => void;
37
38
  renderTruckTrack: (vclN: string, list: any[], color: string) => void;
39
+ renderMarker: (lngLat: string, translate?: boolean, showText?: boolean) => void;
40
+ setMarkerPosition: (val: string) => void;
41
+ drawPolygonTool: {
42
+ addInteraction: (callback: Function) => void;
43
+ removeInteraction: () => void;
44
+ initFeature: (callback: Function) => void;
45
+ reset: () => void;
46
+ };
38
47
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
39
48
  zoomChanged: (...args: any[]) => void;
40
49
  extentChanged: (...args: any[]) => void;
@@ -74,6 +83,7 @@ export declare const ZhMap: {
74
83
  closeTruckTrack: () => void;
75
84
  clearSelectFeature: () => void;
76
85
  findShip: (id: string, shipData?: import('./interface').ShipInfoVo, select?: boolean) => any;
86
+ focusShip: (id: string, shipData?: import('./interface').ShipInfoVo) => void;
77
87
  showTracks: import('vue').Ref<import('./interface').TrackExtend[], import('./interface').TrackExtend[]>;
78
88
  removeAllTrackLayer: () => void;
79
89
  switchFilterItem: (key: import('./enum').SWITCH_BTN, value: boolean) => void;
@@ -81,6 +91,14 @@ export declare const ZhMap: {
81
91
  switchGreenDot: () => void;
82
92
  zoomTruckIcon: () => void;
83
93
  renderTruckTrack: (vclN: string, list: any[], color: string) => void;
94
+ renderMarker: (lngLat: string, translate?: boolean, showText?: boolean) => void;
95
+ setMarkerPosition: (val: string) => void;
96
+ drawPolygonTool: {
97
+ addInteraction: (callback: Function) => void;
98
+ removeInteraction: () => void;
99
+ initFeature: (callback: Function) => void;
100
+ reset: () => void;
101
+ };
84
102
  }, {}, {}, {}, {}>;
85
103
  __isFragment?: never;
86
104
  __isTeleport?: never;
@@ -114,6 +132,7 @@ export declare const ZhMap: {
114
132
  closeTruckTrack: () => void;
115
133
  clearSelectFeature: () => void;
116
134
  findShip: (id: string, shipData?: import('./interface').ShipInfoVo, select?: boolean) => any;
135
+ focusShip: (id: string, shipData?: import('./interface').ShipInfoVo) => void;
117
136
  showTracks: import('vue').Ref<import('./interface').TrackExtend[], import('./interface').TrackExtend[]>;
118
137
  removeAllTrackLayer: () => void;
119
138
  switchFilterItem: (key: import('./enum').SWITCH_BTN, value: boolean) => void;
@@ -121,6 +140,14 @@ export declare const ZhMap: {
121
140
  switchGreenDot: () => void;
122
141
  zoomTruckIcon: () => void;
123
142
  renderTruckTrack: (vclN: string, list: any[], color: string) => void;
143
+ renderMarker: (lngLat: string, translate?: boolean, showText?: boolean) => void;
144
+ setMarkerPosition: (val: string) => void;
145
+ drawPolygonTool: {
146
+ addInteraction: (callback: Function) => void;
147
+ removeInteraction: () => void;
148
+ initFeature: (callback: Function) => void;
149
+ reset: () => void;
150
+ };
124
151
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
125
152
  zoomChanged: (...args: any[]) => void;
126
153
  extentChanged: (...args: any[]) => void;
@@ -0,0 +1,32 @@
1
+ export interface DrawTextOptions {
2
+ center: number[];
3
+ text: string;
4
+ textColor: string;
5
+ leftIcon?: LeftIconOptions;
6
+ rightIcons?: string[];
7
+ font?: string;
8
+ }
9
+ export interface DrawPolygonOptions {
10
+ points: number[][];
11
+ strokeColor: string;
12
+ fillColor: string;
13
+ shouldClosePath: boolean;
14
+ translation?: number[];
15
+ rotation?: number;
16
+ rotationCenter?: number[];
17
+ scale?: number;
18
+ globalAlpha?: number;
19
+ }
20
+ export interface DrawLabelOptions {
21
+ center: number[];
22
+ text: string;
23
+ color: string;
24
+ textColor: string;
25
+ bgColor: string;
26
+ leftIcon?: LeftIconOptions;
27
+ rightIcons?: string[];
28
+ }
29
+ export interface LeftIconOptions {
30
+ icon: string;
31
+ color: string;
32
+ }
@@ -183,4 +183,8 @@ export interface ShipInfoVo {
183
183
  * 创建时间
184
184
  */
185
185
  createTime: string;
186
+ leftIconColor: string;
187
+ existDevice: boolean;
188
+ existMobile: boolean;
189
+ existWaterGauge: boolean;
186
190
  }
@@ -3,6 +3,7 @@ export type { Page, PageRequest } from './common/page';
3
3
  export type { TruckMarker, CityGroupStatistics, HighlightTruck } from './entity/dashboard';
4
4
  export type { MapViewForm, TrackExtend, RenderOption } from './entity/map';
5
5
  export type { SinoiovVehicleInfo, SinoiovVehicleSnayiVehicleResponse } from './entity/queryLicenseResponse';
6
+ export type { DrawTextOptions, DrawPolygonOptions, DrawLabelOptions, LeftIconOptions } from './entity/render';
6
7
  export type { Ship, ShipQueryParam, ShipForm, AisTrackForm, CertificateFiles, ShipInfoForm, ShipUpdateForm, ImgType, BindParams, ShipBindDevice } from './entity/ship';
7
8
  export type { ShipInfoVo } from './entity/shipInfoVo';
8
9
  export { ShipMapData } from './entity/shipMapData';
@@ -1,7 +1,9 @@
1
+ import { DrawLabelOptions, DrawPolygonOptions, DrawTextOptions } from '../../interface';
2
+
1
3
  export declare const fillRectRadius: (ctx: CanvasRenderingContext2D, x: number, y: number, width: number, height: number, color: string, radius?: number) => void;
2
4
  export declare const getPixelFromCoordinate: (points: number[][]) => number[];
3
5
  export declare const calculatePolygonCentroid: (coordinates: number[][]) => number[];
4
6
  export declare const rotateShapeModel: (model: number[][], angle: number) => number[][];
5
- export declare const drawText: (ctx: CanvasRenderingContext2D, center: number[], text: string, textColor: string, leftIcon: any, rightIcon: any, font?: string) => void;
6
- export declare const drawPolygon: (ctx: CanvasRenderingContext2D, points: number[][], strokeColor: string, fillColor: string, shouldClosePath: boolean, translation?: null, rotation?: number, rotationCenter?: number[], scale?: number, globalAlpha?: number) => void;
7
- export declare const drawLabel: (ctx: CanvasRenderingContext2D, center: number[], text: string, color: string, textColor: string, bgColor: string, leftIcon?: string, rightIcon?: string) => null;
7
+ export declare const drawText: (ctx: CanvasRenderingContext2D, options: DrawTextOptions) => void;
8
+ export declare const drawPolygon: (ctx: CanvasRenderingContext2D, options: DrawPolygonOptions) => void;
9
+ export declare const drawLabel: (ctx: CanvasRenderingContext2D, options: DrawLabelOptions) => null;
@@ -0,0 +1,9 @@
1
+ declare function addInteraction(callback: Function): void;
2
+ declare function removeInteraction(): void;
3
+ export declare const drawPolygonTool: {
4
+ addInteraction: typeof addInteraction;
5
+ removeInteraction: typeof removeInteraction;
6
+ initFeature: (callback: Function) => void;
7
+ reset: () => void;
8
+ };
9
+ export {};