@heycar/heycars-map 0.8.2 → 0.8.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.
- package/dist/index.cjs +15 -2
- package/dist/index.js +15 -2
- package/dist/src/hooks/useMapRecomendPlace.d.ts +3 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -9,7 +9,7 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
9
9
|
const Vue = require("vue");
|
|
10
10
|
const style = "";
|
|
11
11
|
const name = "@heycar/heycars-map";
|
|
12
|
-
const version = "0.8.
|
|
12
|
+
const version = "0.8.3";
|
|
13
13
|
const type = "module";
|
|
14
14
|
const scripts = {
|
|
15
15
|
dev: "vite -c vite.config.dev.ts",
|
|
@@ -5610,6 +5610,11 @@ const useAmapRecomendPlace = (props) => {
|
|
|
5610
5610
|
availableRef.value = !!available;
|
|
5611
5611
|
zoneRef.value = zone;
|
|
5612
5612
|
placeCandidatesRef.value = placeCandidates != null ? placeCandidates : [];
|
|
5613
|
+
return {
|
|
5614
|
+
inputPlace: { ...place2 },
|
|
5615
|
+
isInZone: !!zone,
|
|
5616
|
+
place: place2
|
|
5617
|
+
};
|
|
5613
5618
|
};
|
|
5614
5619
|
const updateRecommendPlace = (place2) => {
|
|
5615
5620
|
setPlace(place2);
|
|
@@ -5694,6 +5699,11 @@ const useGmapRecomendPlace = (props) => {
|
|
|
5694
5699
|
availableRef.value = !!available;
|
|
5695
5700
|
zoneRef.value = zone;
|
|
5696
5701
|
placeCandidatesRef.value = placeCandidates != null ? placeCandidates : [];
|
|
5702
|
+
return {
|
|
5703
|
+
inputPlace: { ...place2 },
|
|
5704
|
+
isInZone: !!zone,
|
|
5705
|
+
place: place2
|
|
5706
|
+
};
|
|
5697
5707
|
};
|
|
5698
5708
|
const updateRecommendPlace = (place2) => {
|
|
5699
5709
|
setPlace(place2);
|
|
@@ -6693,7 +6703,10 @@ const BusinessReselectPlaceMap = defineLagecySetup(function BusinessReselectPlac
|
|
|
6693
6703
|
});
|
|
6694
6704
|
}
|
|
6695
6705
|
});
|
|
6696
|
-
watchPostEffectOnce(() =>
|
|
6706
|
+
watchPostEffectOnce(async () => {
|
|
6707
|
+
const value = await updatePlaceCandidates(defaultPlace);
|
|
6708
|
+
emit("changeRecomandPlace", value);
|
|
6709
|
+
});
|
|
6697
6710
|
Vue.watchEffect(() => {
|
|
6698
6711
|
mapContext.onChangeCenterPlace({
|
|
6699
6712
|
...centerPlace
|
package/dist/index.js
CHANGED
|
@@ -7,7 +7,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7
7
|
import Vue, { defineComponent, h, computed, inject, provide, watch, onMounted, onUnmounted, watchPostEffect, shallowRef, ref, watchEffect, reactive, toRefs, toRef } from "vue";
|
|
8
8
|
const style = "";
|
|
9
9
|
const name = "@heycar/heycars-map";
|
|
10
|
-
const version = "0.8.
|
|
10
|
+
const version = "0.8.3";
|
|
11
11
|
const type = "module";
|
|
12
12
|
const scripts = {
|
|
13
13
|
dev: "vite -c vite.config.dev.ts",
|
|
@@ -5608,6 +5608,11 @@ const useAmapRecomendPlace = (props) => {
|
|
|
5608
5608
|
availableRef.value = !!available;
|
|
5609
5609
|
zoneRef.value = zone;
|
|
5610
5610
|
placeCandidatesRef.value = placeCandidates != null ? placeCandidates : [];
|
|
5611
|
+
return {
|
|
5612
|
+
inputPlace: { ...place2 },
|
|
5613
|
+
isInZone: !!zone,
|
|
5614
|
+
place: place2
|
|
5615
|
+
};
|
|
5611
5616
|
};
|
|
5612
5617
|
const updateRecommendPlace = (place2) => {
|
|
5613
5618
|
setPlace(place2);
|
|
@@ -5692,6 +5697,11 @@ const useGmapRecomendPlace = (props) => {
|
|
|
5692
5697
|
availableRef.value = !!available;
|
|
5693
5698
|
zoneRef.value = zone;
|
|
5694
5699
|
placeCandidatesRef.value = placeCandidates != null ? placeCandidates : [];
|
|
5700
|
+
return {
|
|
5701
|
+
inputPlace: { ...place2 },
|
|
5702
|
+
isInZone: !!zone,
|
|
5703
|
+
place: place2
|
|
5704
|
+
};
|
|
5695
5705
|
};
|
|
5696
5706
|
const updateRecommendPlace = (place2) => {
|
|
5697
5707
|
setPlace(place2);
|
|
@@ -6691,7 +6701,10 @@ const BusinessReselectPlaceMap = defineLagecySetup(function BusinessReselectPlac
|
|
|
6691
6701
|
});
|
|
6692
6702
|
}
|
|
6693
6703
|
});
|
|
6694
|
-
watchPostEffectOnce(() =>
|
|
6704
|
+
watchPostEffectOnce(async () => {
|
|
6705
|
+
const value = await updatePlaceCandidates(defaultPlace);
|
|
6706
|
+
emit("changeRecomandPlace", value);
|
|
6707
|
+
});
|
|
6695
6708
|
watchEffect(() => {
|
|
6696
6709
|
mapContext.onChangeCenterPlace({
|
|
6697
6710
|
...centerPlace
|
|
@@ -32,7 +32,7 @@ export declare const useAmapRecomendPlace: <C>(props: UseMapRecomendPlaceProps<C
|
|
|
32
32
|
availableRef: Ref<boolean>;
|
|
33
33
|
isElectedRef: import("vue-demi").ComputedRef<boolean>;
|
|
34
34
|
updateRecommendPlace: (place: Place) => void;
|
|
35
|
-
updatePlaceCandidates: (place: Place) => Promise<
|
|
35
|
+
updatePlaceCandidates: (place: Place) => Promise<ValueOfOnChangeRecommendPlace>;
|
|
36
36
|
updatePlace: (value: Point) => void;
|
|
37
37
|
setPlaceCandidatesAndZone: ({ zone, places: inputPlaceCandidates, }: RecommendZonePlaces) => void;
|
|
38
38
|
};
|
|
@@ -53,7 +53,7 @@ export declare const useGmapRecomendPlace: <C>(props: UseMapRecomendPlaceProps<C
|
|
|
53
53
|
availableRef: Ref<boolean>;
|
|
54
54
|
isElectedRef: import("vue-demi").ComputedRef<boolean>;
|
|
55
55
|
updateRecommendPlace: (place: Place) => void;
|
|
56
|
-
updatePlaceCandidates: (place: Place) => Promise<
|
|
56
|
+
updatePlaceCandidates: (place: Place) => Promise<ValueOfOnChangeRecommendPlace>;
|
|
57
57
|
updatePlace: (value: Point) => void;
|
|
58
58
|
setPlaceCandidatesAndZone: ({ zone, places }: RecommendZonePlaces) => void;
|
|
59
59
|
};
|
|
@@ -74,7 +74,7 @@ export declare const useMapRecomendPlace: <C>(props: UseMapRecomendPlaceProps<C>
|
|
|
74
74
|
availableRef: Ref<boolean>;
|
|
75
75
|
isElectedRef: import("vue-demi").ComputedRef<boolean>;
|
|
76
76
|
updateRecommendPlace: (place: Place) => void;
|
|
77
|
-
updatePlaceCandidates: (place: Place) => Promise<
|
|
77
|
+
updatePlaceCandidates: (place: Place) => Promise<ValueOfOnChangeRecommendPlace>;
|
|
78
78
|
updatePlace: (value: Point) => void;
|
|
79
79
|
setPlaceCandidatesAndZone: ({ zone, places }: RecommendZonePlaces) => void;
|
|
80
80
|
};
|