@heycar/heycars-map 2.9.0 → 2.10.0
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/README.md +6 -3
- package/dist/v2/Demo/DemoBusinessRecomendPlace.js +4 -1
- package/dist/v2/Demo/DemoBusinessReselectPlace.js +4 -1
- package/dist/v2/business-components/AbsoluteAddressBox/AbsoluteAddressBox.css.d.ts +3 -0
- package/dist/v2/business-components/AbsoluteAddressBox/AbsoluteAddressBox.d.ts +6 -1
- package/dist/v2/business-components/AbsoluteAddressBox/AbsoluteAddressBox.js +24 -14
- package/dist/v2/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.d.ts +4 -1
- package/dist/v2/css/{AbsoluteAddressBox-ea4f4761.css → AbsoluteAddressBox-7502ed45.css} +31 -6
- package/dist/v2/utils/log.js +1 -1
- package/dist/v3/Demo/DemoBusinessRecomendPlace.js +4 -1
- package/dist/v3/Demo/DemoBusinessReselectPlace.js +4 -1
- package/dist/v3/business-components/AbsoluteAddressBox/AbsoluteAddressBox.css.d.ts +3 -0
- package/dist/v3/business-components/AbsoluteAddressBox/AbsoluteAddressBox.d.ts +6 -1
- package/dist/v3/business-components/AbsoluteAddressBox/AbsoluteAddressBox.js +22 -14
- package/dist/v3/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.d.ts +4 -3
- package/dist/v3/business-components/BusinessReselectPlaceMap/BusinessReselectPlaceMap.d.ts +0 -2
- package/dist/v3/css/{AbsoluteAddressBox-ea4f4761.css → AbsoluteAddressBox-7502ed45.css} +31 -6
- package/dist/v3/utils/log.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -263,11 +263,14 @@ export default defineComponent({
|
|
|
263
263
|
getRecomendPlace={getRecomendPlace}
|
|
264
264
|
getDefaultCenterPlace={getDefaultCenterPlace}
|
|
265
265
|
renderPlacePhoto={(place) => {
|
|
266
|
-
|
|
267
|
-
return
|
|
266
|
+
// or return;
|
|
267
|
+
return {
|
|
268
|
+
title: "图文引导",
|
|
269
|
+
src: "https://oss-now.heycars.cn/image/graphicGuidance/file/hmlh38_xs6_DdksNX0_TbgF0lKXp.jpg",
|
|
270
|
+
};
|
|
268
271
|
}}
|
|
269
272
|
renderPlaceTag={(place) => {
|
|
270
|
-
|
|
273
|
+
// or return;
|
|
271
274
|
return "最近使用";
|
|
272
275
|
}}
|
|
273
276
|
mapContext={mapContext}
|
|
@@ -127,7 +127,10 @@ const DemoBusinessRecomendPlace = defineSetup("DemoBusinessRecomendPlace", funct
|
|
|
127
127
|
"getAvailable": () => Promise.resolve(true),
|
|
128
128
|
"getRecomendPlace": getRecomendPlace,
|
|
129
129
|
"renderPlacePhoto": (place) => {
|
|
130
|
-
return
|
|
130
|
+
return {
|
|
131
|
+
title: "图文引导",
|
|
132
|
+
src: "https://oss-now.heycars.cn/image/graphicGuidance/file/hmlh38_xs6_DdksNX0_TbgF0lKXp.jpg"
|
|
133
|
+
};
|
|
131
134
|
},
|
|
132
135
|
"renderPlaceTag": (place) => {
|
|
133
136
|
return "最近使用";
|
|
@@ -131,7 +131,10 @@ const DemoBusinessReselectPlace = defineSetup("DemoBusinessReselectPlace", funct
|
|
|
131
131
|
"getAvailable": () => Promise.resolve(true),
|
|
132
132
|
"getRecomendPlace": getRecomendPlace,
|
|
133
133
|
"renderPlacePhoto": (place) => {
|
|
134
|
-
return
|
|
134
|
+
return {
|
|
135
|
+
title: "图文引导",
|
|
136
|
+
src: "https://oss-now.heycars.cn/image/graphicGuidance/file/hmlh38_xs6_DdksNX0_TbgF0lKXp.jpg"
|
|
137
|
+
};
|
|
135
138
|
},
|
|
136
139
|
"renderPlaceTag": (place) => {
|
|
137
140
|
return "最近使用";
|
|
@@ -15,6 +15,9 @@ export declare const boxTextLayout: import("@vanilla-extract/recipes").RuntimeFn
|
|
|
15
15
|
}>;
|
|
16
16
|
export declare const boxPhotoLayout: string;
|
|
17
17
|
export declare const boxPhoto: string;
|
|
18
|
+
export declare const boxPhotoDescriptionLayout: string;
|
|
19
|
+
export declare const boxPhotoArrow: string;
|
|
20
|
+
export declare const boxPhotoDescription: string;
|
|
18
21
|
export declare const boxPhotoIcon: string;
|
|
19
22
|
export declare const boxTitle: string;
|
|
20
23
|
export declare const boxDescription: string;
|
|
@@ -1,10 +1,15 @@
|
|
|
1
|
+
interface AddressBoxPhoto {
|
|
2
|
+
src: string;
|
|
3
|
+
title?: string;
|
|
4
|
+
}
|
|
1
5
|
export interface AbsoluteAddressBoxProps {
|
|
2
6
|
type: "box" | "locator" | "loading";
|
|
3
7
|
title: string;
|
|
4
8
|
description?: string;
|
|
5
|
-
photo?:
|
|
9
|
+
photo?: AddressBoxPhoto;
|
|
6
10
|
withArrow?: boolean;
|
|
7
11
|
onClickText?: () => any;
|
|
8
12
|
onClickPhoto?: () => any;
|
|
9
13
|
}
|
|
10
14
|
export declare const AbsoluteAddressBox: import("vue-demi").DefineComponent<import("vue3").ComponentObjectPropsOptions<AbsoluteAddressBoxProps>, 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<AbsoluteAddressBoxProps, Required<AbsoluteAddressBoxProps>>, "clickText" | "clickPhoto", AbsoluteAddressBoxProps>;
|
|
15
|
+
export {};
|
|
@@ -1,29 +1,32 @@
|
|
|
1
|
-
import "../../css/AbsoluteAddressBox-
|
|
1
|
+
import "../../css/AbsoluteAddressBox-7502ed45.css";
|
|
2
2
|
import { h } from "vue";
|
|
3
3
|
import { computed } from "vue-demi";
|
|
4
|
-
import { ICON_DOT_LOADING_URL
|
|
4
|
+
import { ICON_DOT_LOADING_URL } from "../../api/cdn.js";
|
|
5
5
|
import { i as imgAddressLocator } from "../../chunks/address-locator.98305e58.js";
|
|
6
6
|
import { i as imgArrowRight } from "../../chunks/arrow-right.eedc7433.js";
|
|
7
7
|
import { defineSetup } from "../../types/helper.js";
|
|
8
8
|
import { c as createRuntimeFn } from "../../chunks/vanilla-extract-recipes-createRuntimeFn.esm.bd6fc290.js";
|
|
9
9
|
const imgBubbleRightArc = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTAgMGgyLjEzMWExMCAxMCAwIDAxOS42OTYgNy41NTJMMTggMzJILjA0MkwwIDB6IiBmaWxsPSIjMjUzRTdBIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=";
|
|
10
|
+
const imgGuideArrow = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHdpZHRoPSIyIiBoZWlnaHQ9IjYiPgogIDxwYXRoIGQ9Ik0uNTE2IDEuMTAzQS4zLjMgMCAwMDAgMS4zMXYyLjY2OGEuMy4zIDAgMDAuNTE2LjIwOEwxLjggMi44NTNhLjMuMyAwIDAwMC0uNDE2TC41MTYgMS4xMDN6IiBmaWxsPSIjRkZGIiAvPgo8L3N2Zz4=";
|
|
10
11
|
const AbsoluteAddressBox_css_ts_vanilla = "";
|
|
11
12
|
var absoluteAddressBox = "n8tgem1";
|
|
12
13
|
var absoluteAddressBoxLayout = "n8tgem0";
|
|
13
|
-
var arrowRight = "
|
|
14
|
+
var arrowRight = "n8tgemj";
|
|
14
15
|
var boxBody = "n8tgem2";
|
|
15
16
|
var boxHeader = "n8tgem3";
|
|
16
17
|
var boxHeaderIcon = "n8tgem4";
|
|
17
18
|
var boxHeaderText = "n8tgem5";
|
|
18
19
|
var boxPhoto = "n8tgemb";
|
|
19
|
-
var
|
|
20
|
+
var boxPhotoArrow = "n8tgemd";
|
|
21
|
+
var boxPhotoDescription = "n8tgeme";
|
|
22
|
+
var boxPhotoDescriptionLayout = "n8tgemc";
|
|
20
23
|
var boxPhotoLayout = "n8tgema";
|
|
21
24
|
var boxTextClickableArea = "n8tgem6";
|
|
22
25
|
var boxTextLayout = createRuntimeFn({ defaultClassName: "n8tgem7", variantClassNames: { withArrow: { true: "n8tgem8", false: "n8tgem9" } }, defaultVariants: {}, compoundVariants: [] });
|
|
23
|
-
var boxTitle = "
|
|
24
|
-
var imgDotLoading = "
|
|
25
|
-
var locatorIcon = "
|
|
26
|
-
var straightLine = "
|
|
26
|
+
var boxTitle = "n8tgemg";
|
|
27
|
+
var imgDotLoading = "n8tgemi";
|
|
28
|
+
var locatorIcon = "n8tgeml";
|
|
29
|
+
var straightLine = "n8tgemk";
|
|
27
30
|
const MultilineTitle = defineSetup("MultilineTitle", function(props, {
|
|
28
31
|
attrs
|
|
29
32
|
}) {
|
|
@@ -88,22 +91,29 @@ const AbsoluteAddressBox = defineSetup("AbsoluteAddressBox", function(props, {
|
|
|
88
91
|
}
|
|
89
92
|
})]), h("div", {
|
|
90
93
|
"class": boxBody
|
|
91
|
-
}, [!!photo && h("div", {
|
|
94
|
+
}, [!!(photo == null ? void 0 : photo.src) && h("div", {
|
|
92
95
|
"class": boxPhotoLayout
|
|
93
96
|
}, [h("img", {
|
|
94
97
|
"class": boxPhoto,
|
|
95
98
|
"attrs": {
|
|
96
|
-
"src": photo
|
|
99
|
+
"src": photo.src
|
|
97
100
|
},
|
|
98
101
|
"on": {
|
|
99
102
|
"click": handleClickPhoto
|
|
100
103
|
}
|
|
101
|
-
}), h("
|
|
102
|
-
"class":
|
|
104
|
+
}), !!photo.title && h("div", {
|
|
105
|
+
"class": boxPhotoDescriptionLayout,
|
|
106
|
+
"on": {
|
|
107
|
+
"click": handleClickPhoto
|
|
108
|
+
}
|
|
109
|
+
}, [h("div", {
|
|
110
|
+
"class": boxPhotoDescription
|
|
111
|
+
}, [photo.title]), h("img", {
|
|
112
|
+
"class": boxPhotoArrow,
|
|
103
113
|
"attrs": {
|
|
104
|
-
"src":
|
|
114
|
+
"src": imgGuideArrow
|
|
105
115
|
}
|
|
106
|
-
})]), h("div", {
|
|
116
|
+
})])]), h("div", {
|
|
107
117
|
"class": boxTextClickableArea,
|
|
108
118
|
"on": {
|
|
109
119
|
"click": handleClickText
|
|
@@ -33,7 +33,10 @@ export interface BusinessRecomendPlaceMapProps extends CoordinatifyProps<Omit<He
|
|
|
33
33
|
geoErrorOnceNotificationKey?: string;
|
|
34
34
|
mapContext: CoordinatifyProps<BusinessRecomendPlaceContext>;
|
|
35
35
|
defaultCenterPlace?: CoordinatePlace | ((place?: CoordinatePlace) => CoordinatePlace | undefined);
|
|
36
|
-
renderPlacePhoto?: (place: CoordinatePlace) =>
|
|
36
|
+
renderPlacePhoto?: (place: CoordinatePlace) => undefined | {
|
|
37
|
+
src: string;
|
|
38
|
+
title?: string;
|
|
39
|
+
};
|
|
37
40
|
renderPlaceTag?: PickupPointsProps["renderPlaceTag"];
|
|
38
41
|
onLoadGeoLocation?: Coordinatify<UseGeoLocationProps["onLoad"]>;
|
|
39
42
|
onLoadDefaultGeoLocation?: Coordinatify<UseGeoLocationProps["onLoadDefault"]>;
|
|
@@ -69,6 +69,31 @@
|
|
|
69
69
|
height: 100%;
|
|
70
70
|
}
|
|
71
71
|
.n8tgemc {
|
|
72
|
+
position: absolute;
|
|
73
|
+
bottom: 0;
|
|
74
|
+
left: 0;
|
|
75
|
+
right: 0;
|
|
76
|
+
height: 3.6vw;
|
|
77
|
+
box-sizing: border-box;
|
|
78
|
+
display: flex;
|
|
79
|
+
justify-content: center;
|
|
80
|
+
align-items: center;
|
|
81
|
+
background-color: rgba(0, 0, 0, 0.6);
|
|
82
|
+
}
|
|
83
|
+
.n8tgemd {
|
|
84
|
+
margin-left: 0.6vw;
|
|
85
|
+
margin-top: 0.2vw;
|
|
86
|
+
width: 0.6vw;
|
|
87
|
+
height: 1.8vw;
|
|
88
|
+
}
|
|
89
|
+
.n8tgeme {
|
|
90
|
+
font-family: var(--HEYCAR_MAP_CSS_VAR_FONT_REGULAR);
|
|
91
|
+
font-weight: 500;
|
|
92
|
+
font-size: 2.1vw;
|
|
93
|
+
color: #FFFFFF;
|
|
94
|
+
line-height: 1;
|
|
95
|
+
}
|
|
96
|
+
.n8tgemf {
|
|
72
97
|
pointer-events: none;
|
|
73
98
|
position: absolute;
|
|
74
99
|
right: 0.045vw;
|
|
@@ -76,7 +101,7 @@
|
|
|
76
101
|
width: 3.74vw;
|
|
77
102
|
height: 3.74vw;
|
|
78
103
|
}
|
|
79
|
-
.
|
|
104
|
+
.n8tgemg {
|
|
80
105
|
display: -webkit-box;
|
|
81
106
|
font-size: 3.47vw;
|
|
82
107
|
font-family: var(--HEYCAR_MAP_CSS_VAR_FONT_SEMI_BOLD);
|
|
@@ -87,7 +112,7 @@
|
|
|
87
112
|
-webkit-box-orient: vertical;
|
|
88
113
|
overflow: hidden;
|
|
89
114
|
}
|
|
90
|
-
.
|
|
115
|
+
.n8tgemh {
|
|
91
116
|
margin-top: 0.53vw;
|
|
92
117
|
font-size: 2.93vw;
|
|
93
118
|
font-family: var(--HEYCAR_MAP_CSS_VAR_FONT_REGULAR);
|
|
@@ -96,22 +121,22 @@
|
|
|
96
121
|
line-height: 4.27vw;
|
|
97
122
|
opacity: 0.8;
|
|
98
123
|
}
|
|
99
|
-
.
|
|
124
|
+
.n8tgemi {
|
|
100
125
|
margin: 1.865vw 0;
|
|
101
126
|
width: 7.467vw;
|
|
102
127
|
height: 1.6vw;
|
|
103
128
|
}
|
|
104
|
-
.
|
|
129
|
+
.n8tgemj {
|
|
105
130
|
width: 1.758vw;
|
|
106
131
|
height: 2.93vw;
|
|
107
132
|
}
|
|
108
|
-
.
|
|
133
|
+
.n8tgemk {
|
|
109
134
|
width: 0.8vw;
|
|
110
135
|
height: 4vw;
|
|
111
136
|
background: #4C80FF;
|
|
112
137
|
border-radius: 0vw 0vw 26.67vw 26.67vw;
|
|
113
138
|
}
|
|
114
|
-
.
|
|
139
|
+
.n8tgeml {
|
|
115
140
|
width: 6.9355vw;
|
|
116
141
|
height: 10.67vw;
|
|
117
142
|
}
|
package/dist/v2/utils/log.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const availableLogKeys = /* @__PURE__ */ new Set();
|
|
2
2
|
const pkgName = "@heycar/heycars-map";
|
|
3
|
-
const pkgVersion = "2.
|
|
3
|
+
const pkgVersion = "2.10.0";
|
|
4
4
|
const isEnableLog = (name) => {
|
|
5
5
|
const searchParam = new URLSearchParams(location.search);
|
|
6
6
|
return searchParam.has(`log-${name}`);
|
|
@@ -126,7 +126,10 @@ const DemoBusinessRecomendPlace = defineSetup("DemoBusinessRecomendPlace", funct
|
|
|
126
126
|
"getAvailable": () => Promise.resolve(true),
|
|
127
127
|
"getRecomendPlace": getRecomendPlace,
|
|
128
128
|
"renderPlacePhoto": (place) => {
|
|
129
|
-
return
|
|
129
|
+
return {
|
|
130
|
+
title: "图文引导",
|
|
131
|
+
src: "https://oss-now.heycars.cn/image/graphicGuidance/file/hmlh38_xs6_DdksNX0_TbgF0lKXp.jpg"
|
|
132
|
+
};
|
|
130
133
|
},
|
|
131
134
|
"renderPlaceTag": (place) => {
|
|
132
135
|
return "最近使用";
|
|
@@ -130,7 +130,10 @@ const DemoBusinessReselectPlace = defineSetup("DemoBusinessReselectPlace", funct
|
|
|
130
130
|
"getAvailable": () => Promise.resolve(true),
|
|
131
131
|
"getRecomendPlace": getRecomendPlace,
|
|
132
132
|
"renderPlacePhoto": (place) => {
|
|
133
|
-
return
|
|
133
|
+
return {
|
|
134
|
+
title: "图文引导",
|
|
135
|
+
src: "https://oss-now.heycars.cn/image/graphicGuidance/file/hmlh38_xs6_DdksNX0_TbgF0lKXp.jpg"
|
|
136
|
+
};
|
|
134
137
|
},
|
|
135
138
|
"renderPlaceTag": (place) => {
|
|
136
139
|
return "最近使用";
|
|
@@ -15,6 +15,9 @@ export declare const boxTextLayout: import("@vanilla-extract/recipes").RuntimeFn
|
|
|
15
15
|
}>;
|
|
16
16
|
export declare const boxPhotoLayout: string;
|
|
17
17
|
export declare const boxPhoto: string;
|
|
18
|
+
export declare const boxPhotoDescriptionLayout: string;
|
|
19
|
+
export declare const boxPhotoArrow: string;
|
|
20
|
+
export declare const boxPhotoDescription: string;
|
|
18
21
|
export declare const boxPhotoIcon: string;
|
|
19
22
|
export declare const boxTitle: string;
|
|
20
23
|
export declare const boxDescription: string;
|
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
interface AddressBoxPhoto {
|
|
2
|
+
src: string;
|
|
3
|
+
title?: string;
|
|
4
|
+
}
|
|
1
5
|
export interface AbsoluteAddressBoxProps {
|
|
2
6
|
type: "box" | "locator" | "loading";
|
|
3
7
|
title: string;
|
|
4
8
|
description?: string;
|
|
5
|
-
photo?:
|
|
9
|
+
photo?: AddressBoxPhoto;
|
|
6
10
|
withArrow?: boolean;
|
|
7
11
|
onClickText?: () => any;
|
|
8
12
|
onClickPhoto?: () => any;
|
|
@@ -10,3 +14,4 @@ export interface AbsoluteAddressBoxProps {
|
|
|
10
14
|
export declare const AbsoluteAddressBox: import("vue-demi").DefineComponent<import("vue-demi").ComponentObjectPropsOptions<AbsoluteAddressBoxProps>, 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<AbsoluteAddressBoxProps, Required<AbsoluteAddressBoxProps>>, "clickText" | "clickPhoto", import("vue-demi").PublicProps, AbsoluteAddressBoxProps, AbsoluteAddressBoxProps, import("vue-demi").SlotsType<{} & {
|
|
11
15
|
default?: import("../../demi-polyfill").Slot | undefined;
|
|
12
16
|
}>>;
|
|
17
|
+
export {};
|
|
@@ -1,29 +1,32 @@
|
|
|
1
|
-
import "../../css/AbsoluteAddressBox-
|
|
1
|
+
import "../../css/AbsoluteAddressBox-7502ed45.css";
|
|
2
2
|
import { createVNode } from "vue";
|
|
3
3
|
import { computed } from "vue-demi";
|
|
4
|
-
import { ICON_DOT_LOADING_URL
|
|
4
|
+
import { ICON_DOT_LOADING_URL } from "../../api/cdn.js";
|
|
5
5
|
import { i as imgAddressLocator } from "../../chunks/address-locator.98305e58.js";
|
|
6
6
|
import { i as imgArrowRight } from "../../chunks/arrow-right.eedc7433.js";
|
|
7
7
|
import { defineSetup } from "../../types/helper.js";
|
|
8
8
|
import { c as createRuntimeFn } from "../../chunks/vanilla-extract-recipes-createRuntimeFn.esm.bd6fc290.js";
|
|
9
9
|
const imgBubbleRightArc = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMzIiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTAgMGgyLjEzMWExMCAxMCAwIDAxOS42OTYgNy41NTJMMTggMzJILjA0MkwwIDB6IiBmaWxsPSIjMjUzRTdBIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=";
|
|
10
|
+
const imgGuideArrow = "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHdpZHRoPSIyIiBoZWlnaHQ9IjYiPgogIDxwYXRoIGQ9Ik0uNTE2IDEuMTAzQS4zLjMgMCAwMDAgMS4zMXYyLjY2OGEuMy4zIDAgMDAuNTE2LjIwOEwxLjggMi44NTNhLjMuMyAwIDAwMC0uNDE2TC41MTYgMS4xMDN6IiBmaWxsPSIjRkZGIiAvPgo8L3N2Zz4=";
|
|
10
11
|
const AbsoluteAddressBox_css_ts_vanilla = "";
|
|
11
12
|
var absoluteAddressBox = "n8tgem1";
|
|
12
13
|
var absoluteAddressBoxLayout = "n8tgem0";
|
|
13
|
-
var arrowRight = "
|
|
14
|
+
var arrowRight = "n8tgemj";
|
|
14
15
|
var boxBody = "n8tgem2";
|
|
15
16
|
var boxHeader = "n8tgem3";
|
|
16
17
|
var boxHeaderIcon = "n8tgem4";
|
|
17
18
|
var boxHeaderText = "n8tgem5";
|
|
18
19
|
var boxPhoto = "n8tgemb";
|
|
19
|
-
var
|
|
20
|
+
var boxPhotoArrow = "n8tgemd";
|
|
21
|
+
var boxPhotoDescription = "n8tgeme";
|
|
22
|
+
var boxPhotoDescriptionLayout = "n8tgemc";
|
|
20
23
|
var boxPhotoLayout = "n8tgema";
|
|
21
24
|
var boxTextClickableArea = "n8tgem6";
|
|
22
25
|
var boxTextLayout = createRuntimeFn({ defaultClassName: "n8tgem7", variantClassNames: { withArrow: { true: "n8tgem8", false: "n8tgem9" } }, defaultVariants: {}, compoundVariants: [] });
|
|
23
|
-
var boxTitle = "
|
|
24
|
-
var imgDotLoading = "
|
|
25
|
-
var locatorIcon = "
|
|
26
|
-
var straightLine = "
|
|
26
|
+
var boxTitle = "n8tgemg";
|
|
27
|
+
var imgDotLoading = "n8tgemi";
|
|
28
|
+
var locatorIcon = "n8tgeml";
|
|
29
|
+
var straightLine = "n8tgemk";
|
|
27
30
|
const MultilineTitle = defineSetup("MultilineTitle", function(props, {
|
|
28
31
|
attrs
|
|
29
32
|
}) {
|
|
@@ -80,16 +83,21 @@ const AbsoluteAddressBox = defineSetup("AbsoluteAddressBox", function(props, {
|
|
|
80
83
|
"src": imgBubbleRightArc
|
|
81
84
|
}, null)]), createVNode("div", {
|
|
82
85
|
"class": boxBody
|
|
83
|
-
}, [!!photo && createVNode("div", {
|
|
86
|
+
}, [!!(photo == null ? void 0 : photo.src) && createVNode("div", {
|
|
84
87
|
"class": boxPhotoLayout
|
|
85
88
|
}, [createVNode("img", {
|
|
86
89
|
"class": boxPhoto,
|
|
87
|
-
"src": photo,
|
|
90
|
+
"src": photo.src,
|
|
88
91
|
"onClick": handleClickPhoto
|
|
89
|
-
}, null), createVNode("
|
|
90
|
-
"class":
|
|
91
|
-
"
|
|
92
|
-
},
|
|
92
|
+
}, null), !!photo.title && createVNode("div", {
|
|
93
|
+
"class": boxPhotoDescriptionLayout,
|
|
94
|
+
"onClick": handleClickPhoto
|
|
95
|
+
}, [createVNode("div", {
|
|
96
|
+
"class": boxPhotoDescription
|
|
97
|
+
}, [photo.title]), createVNode("img", {
|
|
98
|
+
"class": boxPhotoArrow,
|
|
99
|
+
"src": imgGuideArrow
|
|
100
|
+
}, null)])]), createVNode("div", {
|
|
93
101
|
"class": boxTextClickableArea,
|
|
94
102
|
"onClick": handleClickText
|
|
95
103
|
}, [createVNode("div", {
|
|
@@ -33,7 +33,10 @@ export interface BusinessRecomendPlaceMapProps extends CoordinatifyProps<Omit<He
|
|
|
33
33
|
geoErrorOnceNotificationKey?: string;
|
|
34
34
|
mapContext: CoordinatifyProps<BusinessRecomendPlaceContext>;
|
|
35
35
|
defaultCenterPlace?: CoordinatePlace | ((place?: CoordinatePlace) => CoordinatePlace | undefined);
|
|
36
|
-
renderPlacePhoto?: (place: CoordinatePlace) =>
|
|
36
|
+
renderPlacePhoto?: (place: CoordinatePlace) => undefined | {
|
|
37
|
+
src: string;
|
|
38
|
+
title?: string;
|
|
39
|
+
};
|
|
37
40
|
renderPlaceTag?: PickupPointsProps["renderPlaceTag"];
|
|
38
41
|
onLoadGeoLocation?: Coordinatify<UseGeoLocationProps["onLoad"]>;
|
|
39
42
|
onLoadDefaultGeoLocation?: Coordinatify<UseGeoLocationProps["onLoadDefault"]>;
|
|
@@ -47,7 +50,6 @@ export interface BusinessRecomendPlaceMapProps extends CoordinatifyProps<Omit<He
|
|
|
47
50
|
onClickLocatorPhoto?: AbsoluteAddressBoxProps["onClickPhoto"];
|
|
48
51
|
}
|
|
49
52
|
export declare const BusinessRecomendPlaceMapInner: import("vue-demi").DefineComponent<import("vue-demi").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>>, "resize" | "dragEnd" | "zoomEnd" | "changePlace" | "loadGeoLocation" | "loadDefaultGeoLocation" | "changeByDrag" | "changeGeoLocation" | "changeRecomandPlace" | "geoError" | "geoErrorOnce" | "clickLocatorText" | "clickLocatorPhoto", import("vue-demi").PublicProps, BusinessRecomendPlaceMapProps, BusinessRecomendPlaceMapProps, import("vue-demi").SlotsType<{
|
|
50
|
-
renderPlacePhoto?: ((place: CoordinatePlace) => string | undefined) | undefined;
|
|
51
53
|
renderPlaceTag?: PickupPointsProps["renderPlaceTag"];
|
|
52
54
|
fallback?: (() => import("vue-demi").VNodeChild) | undefined;
|
|
53
55
|
loading?: (() => import("vue-demi").VNodeChild) | undefined;
|
|
@@ -56,7 +58,6 @@ export declare const BusinessRecomendPlaceMapInner: import("vue-demi").DefineCom
|
|
|
56
58
|
default?: import("../../demi-polyfill").Slot | undefined;
|
|
57
59
|
}>>;
|
|
58
60
|
export declare const BusinessRecomendPlaceMap: import("vue-demi").DefineComponent<import("vue-demi").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>>, "resize" | "dragEnd" | "zoomEnd" | "changePlace" | "loadGeoLocation" | "loadDefaultGeoLocation" | "changeByDrag" | "changeGeoLocation" | "changeRecomandPlace" | "geoError" | "geoErrorOnce" | "clickLocatorText" | "clickLocatorPhoto", import("vue-demi").PublicProps, BusinessRecomendPlaceMapProps, BusinessRecomendPlaceMapProps, import("vue-demi").SlotsType<{
|
|
59
|
-
renderPlacePhoto?: ((place: CoordinatePlace) => string | undefined) | undefined;
|
|
60
61
|
renderPlaceTag?: PickupPointsProps["renderPlaceTag"];
|
|
61
62
|
fallback?: (() => import("vue-demi").VNodeChild) | undefined;
|
|
62
63
|
loading?: (() => import("vue-demi").VNodeChild) | undefined;
|
|
@@ -7,7 +7,6 @@ export declare const BusinessReselectPlaceMapInner: import("vue-demi").DefineCom
|
|
|
7
7
|
fallback?: (() => import("vue-demi").VNodeChild) | undefined;
|
|
8
8
|
loading?: (() => import("vue-demi").VNodeChild) | undefined;
|
|
9
9
|
renderPlaceTag?: ((place: Place) => string | undefined) | undefined;
|
|
10
|
-
renderPlacePhoto?: ((place: CoordinatePlace) => string | undefined) | undefined;
|
|
11
10
|
} & {
|
|
12
11
|
default?: import("../../demi-polyfill").Slot | undefined;
|
|
13
12
|
}>>;
|
|
@@ -15,7 +14,6 @@ export declare const BusinessReselectPlaceMap: import("vue-demi").DefineComponen
|
|
|
15
14
|
fallback?: (() => import("vue-demi").VNodeChild) | undefined;
|
|
16
15
|
loading?: (() => import("vue-demi").VNodeChild) | undefined;
|
|
17
16
|
renderPlaceTag?: ((place: Place) => string | undefined) | undefined;
|
|
18
|
-
renderPlacePhoto?: ((place: CoordinatePlace) => string | undefined) | undefined;
|
|
19
17
|
} & {
|
|
20
18
|
default?: import("../../demi-polyfill").Slot | undefined;
|
|
21
19
|
}>>;
|
|
@@ -69,6 +69,31 @@
|
|
|
69
69
|
height: 100%;
|
|
70
70
|
}
|
|
71
71
|
.n8tgemc {
|
|
72
|
+
position: absolute;
|
|
73
|
+
bottom: 0;
|
|
74
|
+
left: 0;
|
|
75
|
+
right: 0;
|
|
76
|
+
height: 3.6vw;
|
|
77
|
+
box-sizing: border-box;
|
|
78
|
+
display: flex;
|
|
79
|
+
justify-content: center;
|
|
80
|
+
align-items: center;
|
|
81
|
+
background-color: rgba(0, 0, 0, 0.6);
|
|
82
|
+
}
|
|
83
|
+
.n8tgemd {
|
|
84
|
+
margin-left: 0.6vw;
|
|
85
|
+
margin-top: 0.2vw;
|
|
86
|
+
width: 0.6vw;
|
|
87
|
+
height: 1.8vw;
|
|
88
|
+
}
|
|
89
|
+
.n8tgeme {
|
|
90
|
+
font-family: var(--HEYCAR_MAP_CSS_VAR_FONT_REGULAR);
|
|
91
|
+
font-weight: 500;
|
|
92
|
+
font-size: 2.1vw;
|
|
93
|
+
color: #FFFFFF;
|
|
94
|
+
line-height: 1;
|
|
95
|
+
}
|
|
96
|
+
.n8tgemf {
|
|
72
97
|
pointer-events: none;
|
|
73
98
|
position: absolute;
|
|
74
99
|
right: 0.045vw;
|
|
@@ -76,7 +101,7 @@
|
|
|
76
101
|
width: 3.74vw;
|
|
77
102
|
height: 3.74vw;
|
|
78
103
|
}
|
|
79
|
-
.
|
|
104
|
+
.n8tgemg {
|
|
80
105
|
display: -webkit-box;
|
|
81
106
|
font-size: 3.47vw;
|
|
82
107
|
font-family: var(--HEYCAR_MAP_CSS_VAR_FONT_SEMI_BOLD);
|
|
@@ -87,7 +112,7 @@
|
|
|
87
112
|
-webkit-box-orient: vertical;
|
|
88
113
|
overflow: hidden;
|
|
89
114
|
}
|
|
90
|
-
.
|
|
115
|
+
.n8tgemh {
|
|
91
116
|
margin-top: 0.53vw;
|
|
92
117
|
font-size: 2.93vw;
|
|
93
118
|
font-family: var(--HEYCAR_MAP_CSS_VAR_FONT_REGULAR);
|
|
@@ -96,22 +121,22 @@
|
|
|
96
121
|
line-height: 4.27vw;
|
|
97
122
|
opacity: 0.8;
|
|
98
123
|
}
|
|
99
|
-
.
|
|
124
|
+
.n8tgemi {
|
|
100
125
|
margin: 1.865vw 0;
|
|
101
126
|
width: 7.467vw;
|
|
102
127
|
height: 1.6vw;
|
|
103
128
|
}
|
|
104
|
-
.
|
|
129
|
+
.n8tgemj {
|
|
105
130
|
width: 1.758vw;
|
|
106
131
|
height: 2.93vw;
|
|
107
132
|
}
|
|
108
|
-
.
|
|
133
|
+
.n8tgemk {
|
|
109
134
|
width: 0.8vw;
|
|
110
135
|
height: 4vw;
|
|
111
136
|
background: #4C80FF;
|
|
112
137
|
border-radius: 0vw 0vw 26.67vw 26.67vw;
|
|
113
138
|
}
|
|
114
|
-
.
|
|
139
|
+
.n8tgeml {
|
|
115
140
|
width: 6.9355vw;
|
|
116
141
|
height: 10.67vw;
|
|
117
142
|
}
|
package/dist/v3/utils/log.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const availableLogKeys = /* @__PURE__ */ new Set();
|
|
2
2
|
const pkgName = "@heycar/heycars-map";
|
|
3
|
-
const pkgVersion = "2.
|
|
3
|
+
const pkgVersion = "2.10.0";
|
|
4
4
|
const isEnableLog = (name) => {
|
|
5
5
|
const searchParam = new URLSearchParams(location.search);
|
|
6
6
|
return searchParam.has(`log-${name}`);
|