zhihao-ui 1.3.58-alpha.1 → 1.3.58-alpha.3

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 (39) hide show
  1. package/dist/es/BaseInfo-CD2tAAod.js +51 -0
  2. package/dist/es/{BaseItem-zscYu8eV.js → BaseItem-DcezA7sa.js} +41 -44
  3. package/dist/es/{DatePicker-C1DDRvC8.js → DatePicker-CP0KSqBs.js} +1 -1
  4. package/dist/es/{DetailHeader-vuClNac7.js → DetailHeader-DoaD0eKO.js} +1 -1
  5. package/dist/es/{DetailSubTitle-Cu4OuVMN.js → DetailSubTitle-oiPuqJg6.js} +1 -1
  6. package/dist/es/{DiyDataTable-Dxj2T0df.js → DiyDataTable-Bwk_tQDp.js} +1 -1
  7. package/dist/es/{EditInfoPair-m7xcpK-8.js → EditInfoPair-BRkRrmJI.js} +1 -1
  8. package/dist/es/{FileWrapper-C7ZFwtsF.js → FileWrapper-Bw-FhIY5.js} +1 -1
  9. package/dist/es/{Grid-CK82axOD.js → Grid-Cndtkriq.js} +34 -33
  10. package/dist/es/{InfoPair-CdkSVoN0.js → InfoPair-CIuXeXV1.js} +1 -1
  11. package/dist/es/Map-DRTbu87h.js +2558 -0
  12. package/dist/es/{MoneyInput-Cn4BH3R9.js → MoneyInput-DZuOujIc.js} +1 -1
  13. package/dist/es/{Table-BcofWMU9.js → Table-NT97DzT0.js} +152 -152
  14. package/dist/es/index.js +14 -14
  15. package/dist/index.css +1 -1
  16. package/dist/types/components/BaseInfo/BaseInfo.vue.d.ts +2 -2
  17. package/dist/types/components/BaseInfo/index.d.ts +33 -33
  18. package/dist/types/components/BaseItem/BaseItem.vue.d.ts +1 -1
  19. package/dist/types/components/BaseItem/index.d.ts +24 -24
  20. package/dist/types/components/DiyDataTable/DiyDataTable.vue.d.ts +6 -6
  21. package/dist/types/components/DiyDataTable/index.d.ts +18 -18
  22. package/dist/types/components/Grid/Grid.vue.d.ts +1 -1
  23. package/dist/types/components/Grid/index.d.ts +15 -15
  24. package/dist/types/components/Input/Input.vue.d.ts +6 -6
  25. package/dist/types/components/Input/index.d.ts +9 -9
  26. package/dist/types/components/Map/Map.vue.d.ts +5 -0
  27. package/dist/types/components/Map/function/event.d.ts +2 -1
  28. package/dist/types/components/Map/function/map.d.ts +2 -0
  29. package/dist/types/components/Map/function/renderPolygon.d.ts +8 -4
  30. package/dist/types/components/Map/index.d.ts +15 -0
  31. package/dist/types/components/Map/meta/index.d.ts +2 -1
  32. package/dist/types/components/MoneyInput/MoneyInput.vue.d.ts +4 -4
  33. package/dist/types/components/MoneyInput/index.d.ts +6 -6
  34. package/dist/types/components/Table/types.d.ts +2 -2
  35. package/dist/umd/index.css +1 -1
  36. package/dist/umd/index.umd.cjs +49 -49
  37. package/package.json +2 -2
  38. package/dist/es/BaseInfo-C2j6mJJE.js +0 -53
  39. package/dist/es/Map-cM2ZsC86.js +0 -2466
@@ -2,13 +2,13 @@
2
2
  declare function __VLS_template(): Partial<Record<import('vue').Slot<any>, (_: any) => any>>;
3
3
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
4
  modelValue: import('vue').PropType<string | number | undefined>;
5
+ style: {
6
+ type: import('vue').PropType<any>;
7
+ };
5
8
  class: {
6
9
  type: import('vue').PropType<string>;
7
10
  default: string;
8
11
  };
9
- style: {
10
- type: import('vue').PropType<any>;
11
- };
12
12
  size: {
13
13
  type: import('vue').PropType<"small" | "default" | "larger">;
14
14
  default: string;
@@ -18,13 +18,13 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
18
18
  };
19
19
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
20
20
  modelValue: import('vue').PropType<string | number | undefined>;
21
+ style: {
22
+ type: import('vue').PropType<any>;
23
+ };
21
24
  class: {
22
25
  type: import('vue').PropType<string>;
23
26
  default: string;
24
27
  };
25
- style: {
26
- type: import('vue').PropType<any>;
27
- };
28
28
  size: {
29
29
  type: import('vue').PropType<"small" | "default" | "larger">;
30
30
  default: string;
@@ -1,13 +1,13 @@
1
1
  export declare const ZhInput: {
2
2
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
3
3
  modelValue: import('vue').PropType<string | number | undefined>;
4
+ style: {
5
+ type: import('vue').PropType<any>;
6
+ };
4
7
  class: {
5
8
  type: import('vue').PropType<string>;
6
9
  default: string;
7
10
  };
8
- style: {
9
- type: import('vue').PropType<any>;
10
- };
11
11
  size: {
12
12
  type: import('vue').PropType<"small" | "default" | "larger">;
13
13
  default: string;
@@ -27,13 +27,13 @@ export declare const ZhInput: {
27
27
  Defaults: {};
28
28
  }, Readonly<import('vue').ExtractPropTypes<{
29
29
  modelValue: import('vue').PropType<string | number | undefined>;
30
+ style: {
31
+ type: import('vue').PropType<any>;
32
+ };
30
33
  class: {
31
34
  type: import('vue').PropType<string>;
32
35
  default: string;
33
36
  };
34
- style: {
35
- type: import('vue').PropType<any>;
36
- };
37
37
  size: {
38
38
  type: import('vue').PropType<"small" | "default" | "larger">;
39
39
  default: string;
@@ -50,13 +50,13 @@ export declare const ZhInput: {
50
50
  __isSuspense?: never;
51
51
  } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
52
52
  modelValue: import('vue').PropType<string | number | undefined>;
53
+ style: {
54
+ type: import('vue').PropType<any>;
55
+ };
53
56
  class: {
54
57
  type: import('vue').PropType<string>;
55
58
  default: string;
56
59
  };
57
- style: {
58
- type: import('vue').PropType<any>;
59
- };
60
60
  size: {
61
61
  type: import('vue').PropType<"small" | "default" | "larger">;
62
62
  default: string;
@@ -15,6 +15,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
15
15
  getZoom: () => any;
16
16
  setZoom: (zoom: number) => any;
17
17
  getInstall: () => any;
18
+ setMapClick: (...reset: any[]) => any;
19
+ getMapClick: () => any;
18
20
  getView: () => any;
19
21
  setCenter: (lon: number, lat: number) => any;
20
22
  getSize: () => any;
@@ -76,6 +78,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
76
78
  };
77
79
  renderPolygon: {
78
80
  createPolygon: (...rest: any[]) => any;
81
+ createCircle: (...rest: any[]) => any;
82
+ updatePolygon: (...rest: any[]) => any;
83
+ clear: () => any;
79
84
  };
80
85
  utils: {
81
86
  getCalculateExtent: (...reset: any[]) => any;
@@ -5,5 +5,6 @@ import { useShipManager } from './ship';
5
5
  import { usePortManager } from './port';
6
6
  import { useDrawLineManager } from './drawLine';
7
7
  import { useDrawPolygonManager } from './drawPolygon';
8
+ import { useRenderPolygonManager } from './renderPolygon';
8
9
 
9
- 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>, drawPolygonManager: ReturnType<typeof useDrawPolygonManager>) => void;
10
+ 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>, drawPolygonManager: ReturnType<typeof useDrawPolygonManager>, renderPolygonManager: ReturnType<typeof useRenderPolygonManager>) => void;
@@ -15,4 +15,6 @@ export declare function useMapInitializer(): {
15
15
  getSize: () => number[];
16
16
  initMap: (element: HTMLDivElement, props: Props) => void;
17
17
  setBaseLayerMap: (props: Props) => void;
18
+ setMapClick: (status: boolean) => void;
19
+ getMapClick: () => boolean;
18
20
  };
@@ -4,17 +4,21 @@ interface Coordinate {
4
4
  lng: number;
5
5
  lat: number;
6
6
  }
7
- interface styleOptions {
7
+ interface StyleOptions {
8
8
  fillColor: string;
9
9
  stokeColor: string;
10
10
  }
11
- interface polygonOptions {
11
+ interface PolygonOptions {
12
12
  id: string;
13
13
  coordinates: Coordinate[];
14
+ radius: number;
14
15
  isEdit: boolean;
15
16
  }
16
17
  export declare const useRenderPolygonManager: (mapInstance: Map) => {
17
- createPolygon: (polygonData: polygonOptions, options: styleOptions) => void;
18
- createCircle: (center: Coordinate, radius: number) => Feature;
18
+ createPolygon: (polygonData: PolygonOptions, options: styleOptions) => void;
19
+ createCircle: (polygonData: PolygonOptions, options: StyleOptions) => Feature;
20
+ deletePolygon: (id: string) => void;
21
+ updatePolygon: (polygonData: any) => void;
22
+ clear: () => void;
19
23
  };
20
24
  export {};
@@ -47,6 +47,8 @@ export declare const ZhMap: {
47
47
  getZoom: () => any;
48
48
  setZoom: (zoom: number) => any;
49
49
  getInstall: () => any;
50
+ setMapClick: (...reset: any[]) => any;
51
+ getMapClick: () => any;
50
52
  getView: () => any;
51
53
  setCenter: (lon: number, lat: number) => any;
52
54
  getSize: () => any;
@@ -108,6 +110,9 @@ export declare const ZhMap: {
108
110
  };
109
111
  renderPolygon: {
110
112
  createPolygon: (...rest: any[]) => any;
113
+ createCircle: (...rest: any[]) => any;
114
+ updatePolygon: (...rest: any[]) => any;
115
+ clear: () => any;
111
116
  };
112
117
  utils: {
113
118
  getCalculateExtent: (...reset: any[]) => any;
@@ -180,6 +185,8 @@ export declare const ZhMap: {
180
185
  getZoom: () => any;
181
186
  setZoom: (zoom: number) => any;
182
187
  getInstall: () => any;
188
+ setMapClick: (...reset: any[]) => any;
189
+ getMapClick: () => any;
183
190
  getView: () => any;
184
191
  setCenter: (lon: number, lat: number) => any;
185
192
  getSize: () => any;
@@ -241,6 +248,9 @@ export declare const ZhMap: {
241
248
  };
242
249
  renderPolygon: {
243
250
  createPolygon: (...rest: any[]) => any;
251
+ createCircle: (...rest: any[]) => any;
252
+ updatePolygon: (...rest: any[]) => any;
253
+ clear: () => any;
244
254
  };
245
255
  utils: {
246
256
  getCalculateExtent: (...reset: any[]) => any;
@@ -310,6 +320,8 @@ export declare const ZhMap: {
310
320
  getZoom: () => any;
311
321
  setZoom: (zoom: number) => any;
312
322
  getInstall: () => any;
323
+ setMapClick: (...reset: any[]) => any;
324
+ getMapClick: () => any;
313
325
  getView: () => any;
314
326
  setCenter: (lon: number, lat: number) => any;
315
327
  getSize: () => any;
@@ -371,6 +383,9 @@ export declare const ZhMap: {
371
383
  };
372
384
  renderPolygon: {
373
385
  createPolygon: (...rest: any[]) => any;
386
+ createCircle: (...rest: any[]) => any;
387
+ updatePolygon: (...rest: any[]) => any;
388
+ clear: () => any;
374
389
  };
375
390
  utils: {
376
391
  getCalculateExtent: (...reset: any[]) => any;
@@ -13,5 +13,6 @@ export declare enum LENGTH_UNIT {
13
13
  export declare enum LayerType {
14
14
  PORT = "port",
15
15
  SHIP = "ship",
16
- TRACK = "track"
16
+ TRACK = "track",
17
+ DELETE = "delete"
17
18
  }
@@ -2,10 +2,10 @@
2
2
  declare function __VLS_template(): Partial<Record<string, (_: any) => any>>;
3
3
  declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
4
  modelValue: import('vue').PropType<string | number | undefined>;
5
- class: {
5
+ style: {
6
6
  type: import('vue').PropType<any>;
7
7
  };
8
- style: {
8
+ class: {
9
9
  type: import('vue').PropType<any>;
10
10
  };
11
11
  showTooltip: {
@@ -14,10 +14,10 @@ declare const __VLS_component: import('vue').DefineComponent<import('vue').Extra
14
14
  };
15
15
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
16
16
  modelValue: import('vue').PropType<string | number | undefined>;
17
- class: {
17
+ style: {
18
18
  type: import('vue').PropType<any>;
19
19
  };
20
- style: {
20
+ class: {
21
21
  type: import('vue').PropType<any>;
22
22
  };
23
23
  showTooltip: {
@@ -1,10 +1,10 @@
1
1
  export declare const ZhMoneyInput: {
2
2
  new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
3
3
  modelValue: import('vue').PropType<string | number | undefined>;
4
- class: {
4
+ style: {
5
5
  type: import('vue').PropType<any>;
6
6
  };
7
- style: {
7
+ class: {
8
8
  type: import('vue').PropType<any>;
9
9
  };
10
10
  showTooltip: {
@@ -22,10 +22,10 @@ export declare const ZhMoneyInput: {
22
22
  Defaults: {};
23
23
  }, Readonly<import('vue').ExtractPropTypes<{
24
24
  modelValue: import('vue').PropType<string | number | undefined>;
25
- class: {
25
+ style: {
26
26
  type: import('vue').PropType<any>;
27
27
  };
28
- style: {
28
+ class: {
29
29
  type: import('vue').PropType<any>;
30
30
  };
31
31
  showTooltip: {
@@ -40,10 +40,10 @@ export declare const ZhMoneyInput: {
40
40
  __isSuspense?: never;
41
41
  } & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
42
42
  modelValue: import('vue').PropType<string | number | undefined>;
43
- class: {
43
+ style: {
44
44
  type: import('vue').PropType<any>;
45
45
  };
46
- style: {
46
+ class: {
47
47
  type: import('vue').PropType<any>;
48
48
  };
49
49
  showTooltip: {
@@ -1,6 +1,6 @@
1
1
  import { VNode, ComponentPublicInstance, Ref } from 'vue';
2
2
  import { TableColumnCtx } from 'element-plus/es/components/table/src/table-column/defaults';
3
- import { ZhTableProps, default as ZhTableType } from './Table.vue';
3
+ import { ZhTableProps, default as ZhTable } from './Table.vue';
4
4
 
5
5
  export interface EnumProps {
6
6
  label?: string;
@@ -74,7 +74,7 @@ export interface SortChangeEvent {
74
74
  prop: string;
75
75
  order: "ascending" | "descending" | null;
76
76
  }
77
- export type ZhTableInstance = Omit<InstanceType<typeof ZhTableType>, keyof ComponentPublicInstance | keyof ZhTableProps>;
77
+ export type ZhTableInstance = Omit<InstanceType<typeof ZhTable>, keyof ComponentPublicInstance | keyof ZhTableProps>;
78
78
  export type BreakPoint = "xs" | "sm" | "md" | "lg" | "xl";
79
79
  export type Responsive = {
80
80
  span?: number;