@heycar/heycars-map 0.3.2 → 0.3.4
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/dist/hooks/useMapAutoComplete.d.ts +3 -0
- package/dist/hooks/useMapPlace.d.ts +3 -0
- package/dist/hooks/useMapRecomendPlace.d.ts +3 -0
- package/dist/hooks-business/useBusinessMapAutoComplete.d.ts +1 -0
- package/dist/index.cjs +52 -52
- package/dist/index.js +1023 -1006
- package/dist/types/interface.d.ts +1 -0
- package/package.json +1 -1
- package/src/Demo/DemoBusinessRecomendPlace.tsx +1 -1
- package/src/business-components/AbsoluteAddressBox/AbsoluteAddressBox.tsx +3 -5
- package/src/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.tsx +40 -33
- package/src/hooks/useMapAutoComplete.ts +27 -12
- package/src/hooks/useMapPlace.ts +21 -2
- package/src/hooks/useMapRecomendPlace.ts +4 -2
- package/src/types/interface.ts +1 -0
- package/todo.md +1 -5
|
@@ -9,6 +9,7 @@ export declare const useAmapAutoComplete: (props: UseMapAutoCompleteProps) => {
|
|
|
9
9
|
autoCompletePlaces: import("vue-demi").Ref<{
|
|
10
10
|
placeId?: string | undefined;
|
|
11
11
|
description: string;
|
|
12
|
+
distance?: number | undefined;
|
|
12
13
|
lng: number;
|
|
13
14
|
lat: number;
|
|
14
15
|
name: string;
|
|
@@ -23,6 +24,7 @@ export declare const useGmapAutoComplete: (props: UseMapAutoCompleteProps) => {
|
|
|
23
24
|
autoCompletePlaces: import("vue-demi").Ref<{
|
|
24
25
|
placeId?: string | undefined;
|
|
25
26
|
description: string;
|
|
27
|
+
distance?: number | undefined;
|
|
26
28
|
lng: number;
|
|
27
29
|
lat: number;
|
|
28
30
|
name: string;
|
|
@@ -37,6 +39,7 @@ export declare const useMapAutoComplete: (props: UseMapAutoCompleteProps) => {
|
|
|
37
39
|
autoCompletePlaces: import("vue-demi").Ref<{
|
|
38
40
|
placeId?: string | undefined;
|
|
39
41
|
description: string;
|
|
42
|
+
distance?: number | undefined;
|
|
40
43
|
lng: number;
|
|
41
44
|
lat: number;
|
|
42
45
|
name: string;
|
|
@@ -20,6 +20,7 @@ export declare const useAmapPlace: (props: UseMapPlaceProps) => {
|
|
|
20
20
|
};
|
|
21
21
|
updatePlace: (value: Point) => void;
|
|
22
22
|
setPlace: (value: Place) => void;
|
|
23
|
+
updateCity: (value: Place) => void;
|
|
23
24
|
};
|
|
24
25
|
export declare const useGmapPlace: (props: UseMapPlaceProps) => {
|
|
25
26
|
place: {
|
|
@@ -32,6 +33,7 @@ export declare const useGmapPlace: (props: UseMapPlaceProps) => {
|
|
|
32
33
|
};
|
|
33
34
|
updatePlace: () => void;
|
|
34
35
|
setPlace: (value: Place) => void;
|
|
36
|
+
updateCity: (value: Place) => Promise<void>;
|
|
35
37
|
};
|
|
36
38
|
export declare const useMapPlace: (props: UseMapPlaceProps) => {
|
|
37
39
|
place: {
|
|
@@ -44,4 +46,5 @@ export declare const useMapPlace: (props: UseMapPlaceProps) => {
|
|
|
44
46
|
};
|
|
45
47
|
updatePlace: (value: Point) => void;
|
|
46
48
|
setPlace: (value: Place) => void;
|
|
49
|
+
updateCity: (value: Place) => void;
|
|
47
50
|
};
|
|
@@ -31,6 +31,7 @@ export declare const useAmapRecomendPlace: <C>(props: UseMapRecomendPlaceProps<C
|
|
|
31
31
|
updateRecomandPlace: () => void;
|
|
32
32
|
updatePlace: (value: Point) => void;
|
|
33
33
|
setPlace: (value: Place) => void;
|
|
34
|
+
updateCity: (value: Place) => void;
|
|
34
35
|
};
|
|
35
36
|
export declare const useGmapRecomendPlace: <C>(props: UseMapRecomendPlaceProps<C>) => {
|
|
36
37
|
recomendPlace: {
|
|
@@ -53,6 +54,7 @@ export declare const useGmapRecomendPlace: <C>(props: UseMapRecomendPlaceProps<C
|
|
|
53
54
|
updateRecomandPlace: () => void;
|
|
54
55
|
updatePlace: () => void;
|
|
55
56
|
setPlace: (value: Place) => void;
|
|
57
|
+
updateCity: (value: Place) => Promise<void>;
|
|
56
58
|
};
|
|
57
59
|
export declare const useMapRecomendPlace: <C>(props: UseMapRecomendPlaceProps<C>) => {
|
|
58
60
|
recomendPlace: {
|
|
@@ -75,4 +77,5 @@ export declare const useMapRecomendPlace: <C>(props: UseMapRecomendPlaceProps<C>
|
|
|
75
77
|
updateRecomandPlace: () => void;
|
|
76
78
|
updatePlace: (value: Point) => void;
|
|
77
79
|
setPlace: (value: Place) => void;
|
|
80
|
+
updateCity: (value: Place) => void;
|
|
78
81
|
};
|