@heycar/heycars-map 0.3.15 → 0.3.16
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 +6 -0
- package/dist/business-components/BusinessQuotingMap/BusinessQuotingMap.d.ts +1 -1
- package/dist/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.d.ts +1 -1
- package/dist/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.d.ts +1 -1
- package/dist/components/Amap/Amap.d.ts +2 -1
- package/dist/components/Gmap/Gmap.d.ts +2 -1
- package/dist/components/MapProvider/MapProvider.d.ts +2 -1
- package/dist/hooks/useMap.d.ts +4 -0
- package/dist/index.cjs +43 -43
- package/dist/index.js +962 -930
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -11,4 +11,4 @@ export type BusinessQuotingMapProps = Omit<HeycarMapProps, "center" | "zoom"> &
|
|
|
11
11
|
}) => string;
|
|
12
12
|
log?: boolean;
|
|
13
13
|
};
|
|
14
|
-
export declare const BusinessQuotingMap: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<BusinessQuotingMapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<BusinessQuotingMapProps, Required<BusinessQuotingMapProps>>, "dragEnd", BusinessQuotingMapProps, {} | {}>;
|
|
14
|
+
export declare const BusinessQuotingMap: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<BusinessQuotingMapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<BusinessQuotingMapProps, Required<BusinessQuotingMapProps>>, "dragEnd" | "zoomEnd", BusinessQuotingMapProps, {} | {}>;
|
|
@@ -27,4 +27,4 @@ export interface BusinessRecomendPlaceMapProps extends Omit<HeycarMapProps, "cen
|
|
|
27
27
|
onGeoError?: UseGeoLocationProps["onError"];
|
|
28
28
|
onClickLocator?: AbsoluteAddressBoxProps["onClick"];
|
|
29
29
|
}
|
|
30
|
-
export declare const BusinessRecomendPlaceMap: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<BusinessRecomendPlaceMapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<BusinessRecomendPlaceMapProps, Required<BusinessRecomendPlaceMapProps>>, "dragEnd" | "changeCity" | "changePlace" | "loadGeoLocation" | "loadDefaultGeoLocation" | "changeByDrag" | "changeGeoLocation" | "changeRecomandPlace" | "geoError" | "clickLocator", BusinessRecomendPlaceMapProps, {}>;
|
|
30
|
+
export declare const BusinessRecomendPlaceMap: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<BusinessRecomendPlaceMapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<BusinessRecomendPlaceMapProps, Required<BusinessRecomendPlaceMapProps>>, "dragEnd" | "zoomEnd" | "changeCity" | "changePlace" | "loadGeoLocation" | "loadDefaultGeoLocation" | "changeByDrag" | "changeGeoLocation" | "changeRecomandPlace" | "geoError" | "clickLocator", BusinessRecomendPlaceMapProps, {}>;
|
|
@@ -21,4 +21,4 @@ export type BusinessTaxiServiceMapProps = Omit<HeycarMapProps, "center" | "zoom"
|
|
|
21
21
|
}) => string;
|
|
22
22
|
getDriverPosition: () => Promise<Point>;
|
|
23
23
|
};
|
|
24
|
-
export declare const BusinessTaxiServiceMap: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<BusinessTaxiServiceMapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<BusinessTaxiServiceMapProps, Required<BusinessTaxiServiceMapProps>>, "dragEnd", BusinessTaxiServiceMapProps, {} | {}>;
|
|
24
|
+
export declare const BusinessTaxiServiceMap: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<BusinessTaxiServiceMapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<BusinessTaxiServiceMapProps, Required<BusinessTaxiServiceMapProps>>, "dragEnd" | "zoomEnd", BusinessTaxiServiceMapProps, {} | {}>;
|
|
@@ -6,5 +6,6 @@ export interface AmapProps extends Omit<AMap.MapOptions, "vectorMapForeign"> {
|
|
|
6
6
|
mapRef?: SetMap<AMap.Map>;
|
|
7
7
|
onDragStart?: MapEventHandler<AMap.Map>;
|
|
8
8
|
onDragEnd?: MapEventHandler<AMap.Map>;
|
|
9
|
+
onZoomEnd?: MapEventHandler<AMap.Map>;
|
|
9
10
|
}
|
|
10
|
-
export declare const Amap: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<AmapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<AmapProps, Required<AmapProps>>, "dragStart" | "dragEnd", AmapProps, {}>;
|
|
11
|
+
export declare const Amap: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<AmapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<AmapProps, Required<AmapProps>>, "dragStart" | "dragEnd" | "zoomEnd", AmapProps, {}>;
|
|
@@ -5,5 +5,6 @@ export interface GmapProps extends google.maps.MapOptions {
|
|
|
5
5
|
mapRef?: SetMap<google.maps.Map>;
|
|
6
6
|
onDragStart?: MapEventHandler<google.maps.Map>;
|
|
7
7
|
onDragEnd?: MapEventHandler<google.maps.Map>;
|
|
8
|
+
onZoomEnd?: MapEventHandler<google.maps.Map>;
|
|
8
9
|
}
|
|
9
|
-
export declare const Gmap: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<GmapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<GmapProps, Required<GmapProps>>, "dragStart" | "dragEnd", GmapProps, {}>;
|
|
10
|
+
export declare const Gmap: import("vue-demi").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<GmapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<GmapProps, Required<GmapProps>>, "dragStart" | "dragEnd" | "zoomEnd", GmapProps, {}>;
|
|
@@ -8,5 +8,6 @@ export declare const MapProvider: import("vue").DefineComponent<import("vue/type
|
|
|
8
8
|
export interface HeycarMapProps extends Pick<GmapLoaderProps, "fallback" | "loading">, Pick<AmapProps, "center" | "zoom"> {
|
|
9
9
|
mapRef?: SetMap<AMap.Map> | SetMap<google.maps.Map>;
|
|
10
10
|
onDragEnd?: (value: [number, number]) => any;
|
|
11
|
+
onZoomEnd?: (value: number) => any;
|
|
11
12
|
}
|
|
12
|
-
export declare const HeycarMap: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<HeycarMapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<HeycarMapProps, Required<HeycarMapProps>>, "dragEnd", HeycarMapProps, {}>;
|
|
13
|
+
export declare const HeycarMap: import("vue").DefineComponent<import("vue/types/v3-component-props").ComponentObjectPropsOptions<HeycarMapProps>, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").Empty, import("../../types/helper").EmitByProps<HeycarMapProps, Required<HeycarMapProps>>, "dragEnd" | "zoomEnd", HeycarMapProps, {}>;
|
package/dist/hooks/useMap.d.ts
CHANGED
|
@@ -802,4 +802,8 @@ export declare const provideMap: (mapRef: MapShallowRef) => void;
|
|
|
802
802
|
export interface MapMountedProps {
|
|
803
803
|
onMapMounted?: () => any;
|
|
804
804
|
}
|
|
805
|
+
/**
|
|
806
|
+
* 添加onMapMounted方法,在组件中调用
|
|
807
|
+
* @param callback 挂载成功时的回调函数
|
|
808
|
+
*/
|
|
805
809
|
export declare const onMapMounted: (callback: (...args: any) => any) => void;
|