@heycar/heycars-map 0.3.16 → 0.3.18
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/CHANGELOG.md +12 -0
- package/dist/hooks/useMapRecomendPlace.d.ts +1 -0
- package/dist/hooks-business/useBusinessRecomendPlaceMap.d.ts +5 -1
- package/dist/index.cjs +53 -53
- package/dist/index.js +1299 -1271
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,7 @@ export interface UseMapRecomendPlaceProps<C = Record<string, any>> {
|
|
|
9
9
|
onChangeCity?: UseMapPlaceProps["onChangeCity"];
|
|
10
10
|
onChangePlace?: UseMapPlaceProps["onChange"];
|
|
11
11
|
onChange?: (place: Place) => any;
|
|
12
|
+
isSearchRecommendPlace: Ref<boolean>;
|
|
12
13
|
}
|
|
13
14
|
export declare const useAmapRecomendPlace: <C>(props: UseMapRecomendPlaceProps<C>) => {
|
|
14
15
|
recomendPlace: {
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
+
import { Ref } from "vue-demi";
|
|
1
2
|
import type { Place, Point } from "../types/interface";
|
|
2
3
|
export interface BusinessRecomendPlaceContext {
|
|
3
4
|
panToGeoPositionByRecomend: (value: Point) => void;
|
|
4
5
|
setCenterPlaceByUserSpecified: (value: Place) => void;
|
|
5
6
|
onChangeCenterPlace: (value: Place) => void;
|
|
6
7
|
onChangeRecomendPlaces: (value: Place[]) => void;
|
|
8
|
+
setIsSearchRecommendPlace: (isSearchRecommendPlace: boolean) => void;
|
|
9
|
+
isSearchRecommendPlace: Ref<boolean>;
|
|
7
10
|
}
|
|
8
11
|
export declare const useBusinessRecomendPlaceMap: () => {
|
|
9
12
|
mapContext: BusinessRecomendPlaceContext;
|
|
@@ -15,7 +18,7 @@ export declare const useBusinessRecomendPlaceMap: () => {
|
|
|
15
18
|
cityParentName?: string | undefined;
|
|
16
19
|
countryName?: string | undefined;
|
|
17
20
|
};
|
|
18
|
-
placeCandidates:
|
|
21
|
+
placeCandidates: Ref<{
|
|
19
22
|
lng: number;
|
|
20
23
|
lat: number;
|
|
21
24
|
name: string;
|
|
@@ -23,6 +26,7 @@ export declare const useBusinessRecomendPlaceMap: () => {
|
|
|
23
26
|
cityParentName?: string | undefined;
|
|
24
27
|
countryName?: string | undefined;
|
|
25
28
|
}[]>;
|
|
29
|
+
isSearchRecommendPlace: Ref<boolean>;
|
|
26
30
|
panToGeoPositionByRecomend: (value: Point) => void;
|
|
27
31
|
setCenterPlaceByUserSpecified: (value: Place) => void;
|
|
28
32
|
apiMapDistance: (from: Point, to: Point) => number | undefined;
|