@heycar/heycars-map 1.0.0-coordinate7 → 2.0.0-switchMap1
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 +4 -25
- package/dist/v2/App.js +6 -4
- package/dist/v2/Demo/DemoBusinessQuoting.js +4 -11
- package/dist/v2/Demo/DemoBusinessRecomendPlace.js +3 -8
- package/dist/v2/Demo/DemoBusinessReselectPlace.js +2 -7
- package/dist/v2/Demo/DemoBusinessTaxiEnd.d.ts +1 -3
- package/dist/v2/Demo/DemoBusinessTaxiEnd.js +2 -18
- package/dist/v2/Demo/DemoBusinessTaxiService.d.ts +1 -2392
- package/dist/v2/Demo/DemoBusinessTaxiService.js +6 -19
- package/dist/v2/business-components/BusinessQuotingMap/BusinessQuotingMap.d.ts +5 -5
- package/dist/v2/business-components/BusinessQuotingMap/BusinessQuotingMap.js +42 -11
- package/dist/v2/business-components/BusinessQuotingMap/index.js +3 -2
- package/dist/v2/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.d.ts +2 -3
- package/dist/v2/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.js +4 -2
- package/dist/v2/business-components/BusinessRecomendPlaceMap/index.js +2 -1
- package/dist/v2/business-components/BusinessReselectPlaceMap/BusinessReselectPlaceMap.d.ts +3 -2
- package/dist/v2/business-components/BusinessReselectPlaceMap/BusinessReselectPlaceMap.js +44 -17
- package/dist/v2/business-components/BusinessReselectPlaceMap/index.js +3 -2
- package/dist/v2/business-components/BusinessTaxiEndMap/BusinessTaxiEndMap.d.ts +2 -3
- package/dist/v2/business-components/BusinessTaxiEndMap/BusinessTaxiEndMap.js +22 -8
- package/dist/v2/business-components/BusinessTaxiEndMap/index.js +3 -2
- package/dist/v2/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.d.ts +5 -5
- package/dist/v2/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.js +42 -18
- package/dist/v2/business-components/BusinessTaxiServiceMap/index.js +3 -2
- package/dist/v2/chunks/{BusinessRecomendPlaceMap.87ea3b2f.js → BusinessRecomendPlaceMap.5be4fdcf.js} +38 -15
- package/dist/v2/components/AmapMarker/AmapMarker.js +2 -1
- package/dist/v2/components/GmapAdvancedMarkerElement/GmapAdvancedMarkerElement.js +1 -1
- package/dist/v2/components/MapProvider/MapProvider.js +16 -15
- package/dist/v2/demi-polyfill/demi-polyfill.d.ts +1 -0
- package/dist/v2/hooks/useMapLoader.d.ts +5 -3
- package/dist/v2/hooks/useMapLoader.js +29 -14
- package/dist/v2/hooks-business/useBusinessAlarm.d.ts +3 -0
- package/dist/v2/hooks-business/useBusinessQuotingMap.d.ts +5 -2393
- package/dist/v2/hooks-business/useBusinessQuotingMap.js +5 -10
- package/dist/v2/hooks-business/useBusinessRecomendPlaceMap.d.ts +8 -17
- package/dist/v2/hooks-business/useBusinessRecomendPlaceMap.js +8 -34
- package/dist/v2/hooks-business/useBusinessReselectPlaceMap.d.ts +4 -13
- package/dist/v2/hooks-business/useBusinessTaxiServiceMap.d.ts +5 -2393
- package/dist/v2/hooks-business/useBusinessTaxiServiceMap.js +5 -10
- package/dist/v2/index.js +1 -1
- package/dist/v2/utils/compare.d.ts +4 -0
- package/dist/v2/utils/compare.js +6 -0
- package/dist/v2/utils/helper.d.ts +4 -0
- package/dist/v2/utils/helper.js +14 -0
- package/dist/v2/utils/log.js +1 -1
- package/dist/v3/App.js +6 -4
- package/dist/v3/Demo/DemoBusinessQuoting.js +4 -11
- package/dist/v3/Demo/DemoBusinessRecomendPlace.js +3 -8
- package/dist/v3/Demo/DemoBusinessReselectPlace.js +2 -7
- package/dist/v3/Demo/DemoBusinessTaxiEnd.d.ts +1 -3
- package/dist/v3/Demo/DemoBusinessTaxiEnd.js +3 -17
- package/dist/v3/Demo/DemoBusinessTaxiService.d.ts +1 -2392
- package/dist/v3/Demo/DemoBusinessTaxiService.js +6 -17
- package/dist/v3/business-components/BusinessQuotingMap/BusinessQuotingMap.d.ts +16 -7
- package/dist/v3/business-components/BusinessQuotingMap/BusinessQuotingMap.js +42 -11
- package/dist/v3/business-components/BusinessQuotingMap/index.js +3 -2
- package/dist/v3/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.d.ts +10 -3
- package/dist/v3/business-components/BusinessRecomendPlaceMap/BusinessRecomendPlaceMap.js +4 -2
- package/dist/v3/business-components/BusinessRecomendPlaceMap/index.js +2 -1
- package/dist/v3/business-components/BusinessReselectPlaceMap/BusinessReselectPlaceMap.d.ts +10 -2
- package/dist/v3/business-components/BusinessReselectPlaceMap/BusinessReselectPlaceMap.js +44 -17
- package/dist/v3/business-components/BusinessReselectPlaceMap/index.js +3 -2
- package/dist/v3/business-components/BusinessTaxiEndMap/BusinessTaxiEndMap.d.ts +4 -3
- package/dist/v3/business-components/BusinessTaxiEndMap/BusinessTaxiEndMap.js +22 -8
- package/dist/v3/business-components/BusinessTaxiEndMap/index.js +3 -2
- package/dist/v3/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.d.ts +19 -7
- package/dist/v3/business-components/BusinessTaxiServiceMap/BusinessTaxiServiceMap.js +42 -18
- package/dist/v3/business-components/BusinessTaxiServiceMap/index.js +3 -2
- package/dist/v3/chunks/{BusinessRecomendPlaceMap.57b15c64.js → BusinessRecomendPlaceMap.39888296.js} +38 -15
- package/dist/v3/components/AmapMarker/AmapMarker.js +2 -1
- package/dist/v3/components/GmapAdvancedMarkerElement/GmapAdvancedMarkerElement.js +1 -1
- package/dist/v3/components/MapProvider/MapProvider.js +16 -15
- package/dist/v3/demi-polyfill/demi-polyfill.d.ts +1 -0
- package/dist/v3/hooks/useMapLoader.d.ts +5 -3
- package/dist/v3/hooks/useMapLoader.js +29 -14
- package/dist/v3/hooks-business/useBusinessAlarm.d.ts +3 -0
- package/dist/v3/hooks-business/useBusinessQuotingMap.d.ts +5 -2393
- package/dist/v3/hooks-business/useBusinessQuotingMap.js +5 -10
- package/dist/v3/hooks-business/useBusinessRecomendPlaceMap.d.ts +8 -17
- package/dist/v3/hooks-business/useBusinessRecomendPlaceMap.js +8 -34
- package/dist/v3/hooks-business/useBusinessReselectPlaceMap.d.ts +4 -13
- package/dist/v3/hooks-business/useBusinessTaxiServiceMap.d.ts +5 -2393
- package/dist/v3/hooks-business/useBusinessTaxiServiceMap.js +5 -10
- package/dist/v3/index.js +1 -1
- package/dist/v3/utils/compare.d.ts +4 -0
- package/dist/v3/utils/compare.js +6 -0
- package/dist/v3/utils/helper.d.ts +4 -0
- package/dist/v3/utils/helper.js +14 -0
- package/dist/v3/utils/log.js +1 -1
- package/package.json +1 -1
- package/dist/v2/Demo/Demo.d.ts +0 -3
- package/dist/v2/Demo/Demo.js +0 -1634
- package/dist/v2/components/AmapLoader/AmapLoader.d.ts +0 -5
- package/dist/v2/components/AmapLoader/AmapLoader.js +0 -21
- package/dist/v2/components/AmapLoader/index.d.ts +0 -1
- package/dist/v2/components/AmapLoader/index.js +0 -4
- package/dist/v2/components/GmapLoader/GmapLoader.d.ts +0 -5
- package/dist/v2/components/GmapLoader/GmapLoader.js +0 -21
- package/dist/v2/components/GmapLoader/index.d.ts +0 -1
- package/dist/v2/components/GmapLoader/index.js +0 -4
- package/dist/v2/hooks-business/useBusinessTaxiEndMap.d.ts +0 -3
- package/dist/v2/hooks-business/useBusinessTaxiEndMap.js +0 -7
- package/dist/v3/Demo/Demo.d.ts +0 -9
- package/dist/v3/Demo/Demo.js +0 -1612
- package/dist/v3/components/AmapLoader/AmapLoader.d.ts +0 -10
- package/dist/v3/components/AmapLoader/AmapLoader.js +0 -21
- package/dist/v3/components/AmapLoader/index.d.ts +0 -1
- package/dist/v3/components/AmapLoader/index.js +0 -4
- package/dist/v3/components/GmapLoader/GmapLoader.d.ts +0 -10
- package/dist/v3/components/GmapLoader/GmapLoader.js +0 -21
- package/dist/v3/components/GmapLoader/index.d.ts +0 -1
- package/dist/v3/components/GmapLoader/index.js +0 -4
- package/dist/v3/hooks-business/useBusinessTaxiEndMap.d.ts +0 -3
- package/dist/v3/hooks-business/useBusinessTaxiEndMap.js +0 -7
package/README.md
CHANGED
|
@@ -168,7 +168,6 @@ export default defineComponent({
|
|
|
168
168
|
setup() {
|
|
169
169
|
const {
|
|
170
170
|
centerPlace,
|
|
171
|
-
googleConnectionStatus,
|
|
172
171
|
mapContext,
|
|
173
172
|
setCenterPlaceByUserSpecified,
|
|
174
173
|
setCenterPlaceByUserSpecifiedInZone,
|
|
@@ -271,10 +270,6 @@ export default defineComponent({
|
|
|
271
270
|
isBusinessTimeout ? "给用户超时提示" : "给用户无权限反馈",
|
|
272
271
|
);
|
|
273
272
|
}}
|
|
274
|
-
onChangeGoogleConnection={(status) =>
|
|
275
|
-
// 根据目前的产品需求,连通性检测只会被检测一次。
|
|
276
|
-
console.log("谷歌连通性发生变化时触发,连通性状态是:", status)
|
|
277
|
-
}
|
|
278
273
|
/>
|
|
279
274
|
);
|
|
280
275
|
},
|
|
@@ -293,7 +288,6 @@ export default defineComponent({
|
|
|
293
288
|
setup() {
|
|
294
289
|
const {
|
|
295
290
|
centerPlace,
|
|
296
|
-
googleConnectionStatus,
|
|
297
291
|
mapContext,
|
|
298
292
|
setCenterPlaceByUserSpecified,
|
|
299
293
|
setCenterPlaceByUserSpecifiedInZone,
|
|
@@ -421,10 +415,6 @@ export default defineComponent({
|
|
|
421
415
|
isBusinessTimeout ? "给用户超时提示" : "给用户无权限反馈",
|
|
422
416
|
);
|
|
423
417
|
}}
|
|
424
|
-
onChangeGoogleConnection={(status) =>
|
|
425
|
-
// 根据目前的产品需求,连通性检测只会被检测一次。
|
|
426
|
-
console.log("谷歌连通性发生变化时触发,连通性状态是:", status)
|
|
427
|
-
}
|
|
428
418
|
/>
|
|
429
419
|
);
|
|
430
420
|
},
|
|
@@ -441,7 +431,7 @@ import { BusinessQuotingMap, useBusinessQuotingMap } from "@heycar/heycars-map";
|
|
|
441
431
|
|
|
442
432
|
export default defineComponent({
|
|
443
433
|
setup() {
|
|
444
|
-
const {
|
|
434
|
+
const { mapContext } = useBusinessQuotingMap();
|
|
445
435
|
return () => (
|
|
446
436
|
<BusinessQuotingMap
|
|
447
437
|
class={"demo"}
|
|
@@ -463,8 +453,7 @@ export default defineComponent({
|
|
|
463
453
|
renderDescription={({ distance, duration, tolls }) =>
|
|
464
454
|
`全程 *${distance / 1000}公里* 约行驶 *${duration}* 高速费用 *${tolls ?? 0}*元`
|
|
465
455
|
}
|
|
466
|
-
|
|
467
|
-
registerOverlay={registerFitVeiw}
|
|
456
|
+
mapContext={mapContext}
|
|
468
457
|
onClickStartPoint={(place) => console.log("点击起点时触发 palce = ", place)}
|
|
469
458
|
onClickEndPoint={(place) => console.log("点击终点时触发 palce = ", place)}
|
|
470
459
|
onChangeGoogleConnection={(status) =>
|
|
@@ -487,7 +476,7 @@ import { BusinessTaxiServiceMap, useBusinessTaxiServiceMap } from "@heycar/heyca
|
|
|
487
476
|
|
|
488
477
|
export default defineComponent({
|
|
489
478
|
setup() {
|
|
490
|
-
const {
|
|
479
|
+
const { mapContext } = useBusinessTaxiServiceMap();
|
|
491
480
|
return () => (
|
|
492
481
|
<BusinessTaxiServiceMap
|
|
493
482
|
class={css.adjustedDemo}
|
|
@@ -524,12 +513,7 @@ export default defineComponent({
|
|
|
524
513
|
]);
|
|
525
514
|
}}
|
|
526
515
|
interval={5000}
|
|
527
|
-
|
|
528
|
-
registerOverlay={registerFitVeiw}
|
|
529
|
-
onChangeGoogleConnection={(status) =>
|
|
530
|
-
// 根据目前的产品需求,连通性检测只会被检测一次。
|
|
531
|
-
console.log("谷歌连通性发生变化时触发,连通性状态是:", status)
|
|
532
|
-
}
|
|
516
|
+
mapContext={mapContext}
|
|
533
517
|
/>
|
|
534
518
|
);
|
|
535
519
|
},
|
|
@@ -546,7 +530,6 @@ import { BusinessTaxiEndMap } from "@heycar/heycars-map";
|
|
|
546
530
|
|
|
547
531
|
export default defineComponent({
|
|
548
532
|
setup() {
|
|
549
|
-
const { googleConnectionStatus } = useBusinessTaxiEndMap();
|
|
550
533
|
return () => (
|
|
551
534
|
<BusinessTaxiEndMap
|
|
552
535
|
class={"demo"}
|
|
@@ -564,10 +547,6 @@ export default defineComponent({
|
|
|
564
547
|
displayName: "长城美华 Coffee Shop (CCMW)",
|
|
565
548
|
type: "wgs84",
|
|
566
549
|
}}
|
|
567
|
-
onChangeGoogleConnection={(status) =>
|
|
568
|
-
// 根据目前的产品需求,连通性检测只会被检测一次。
|
|
569
|
-
console.log("谷歌连通性发生变化时触发,连通性状态是:", status)
|
|
570
|
-
}
|
|
571
550
|
/>
|
|
572
551
|
);
|
|
573
552
|
},
|
package/dist/v2/App.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h } from "vue";
|
|
2
|
-
import { defineComponent } from "vue-demi";
|
|
3
|
-
import {
|
|
2
|
+
import { defineComponent, ref } from "vue-demi";
|
|
3
|
+
import { DemoBusinessTaxiService } from "./Demo/DemoBusinessTaxiService.js";
|
|
4
4
|
import { MapProvider } from "./components/MapProvider/MapProvider.js";
|
|
5
5
|
const gmapApiKey = "AIzaSyCRtkaNSWMOhOXDOUpJK4OVbm5RIstYj-I";
|
|
6
6
|
const gmapId = "d0af0c05331af64a";
|
|
@@ -9,6 +9,8 @@ const amapApiKey = "81ed1d2b5b77187683717a5f2f19591a";
|
|
|
9
9
|
const amapApiSecret = "1dfe626553258a9f91d7c4552c0816d2";
|
|
10
10
|
const App = defineComponent({
|
|
11
11
|
setup() {
|
|
12
|
+
const supplierRef = ref("amap");
|
|
13
|
+
window.supplierRef = supplierRef;
|
|
12
14
|
return () => h(MapProvider, {
|
|
13
15
|
"attrs": {
|
|
14
16
|
"amapKey": amapApiKey,
|
|
@@ -17,9 +19,9 @@ const App = defineComponent({
|
|
|
17
19
|
"gmapRasterId": gmapRasterId,
|
|
18
20
|
"gmapKey": gmapApiKey,
|
|
19
21
|
"language": "en",
|
|
20
|
-
"supplier":
|
|
22
|
+
"supplier": supplierRef.value
|
|
21
23
|
}
|
|
22
|
-
}, [h(
|
|
24
|
+
}, [h(DemoBusinessTaxiService)]);
|
|
23
25
|
}
|
|
24
26
|
});
|
|
25
27
|
export {
|
|
@@ -5,11 +5,9 @@ import { defineSetup } from "../types/helper.js";
|
|
|
5
5
|
import { d as demo } from "../chunks/Demo.css.e921a2f6.js";
|
|
6
6
|
const DemoBusinessQuoting = defineSetup("DemoBusinessQuoting", function() {
|
|
7
7
|
const {
|
|
8
|
-
|
|
9
|
-
setMap,
|
|
10
|
-
registerFitVeiw
|
|
8
|
+
mapContext
|
|
11
9
|
} = useBusinessQuotingMap();
|
|
12
|
-
return () => h("div", [h(
|
|
10
|
+
return () => h("div", [h(BusinessQuotingMap, {
|
|
13
11
|
"class": demo,
|
|
14
12
|
"attrs": {
|
|
15
13
|
"from": {
|
|
@@ -32,16 +30,11 @@ const DemoBusinessQuoting = defineSetup("DemoBusinessQuoting", function() {
|
|
|
32
30
|
duration,
|
|
33
31
|
tolls
|
|
34
32
|
}) => `全程 *${distance / 1e3}公里* 约行驶 *${duration}* 高速费用 *${tolls != null ? tolls : 0}*元`,
|
|
35
|
-
"
|
|
36
|
-
"registerOverlay": registerFitVeiw
|
|
33
|
+
"mapContext": mapContext
|
|
37
34
|
},
|
|
38
35
|
"on": {
|
|
39
36
|
"clickStartPoint": (place) => console.log("点击起点时触发 palce = ", place),
|
|
40
|
-
"clickEndPoint": (place) => console.log("点击终点时触发 palce = ", place)
|
|
41
|
-
"changeGoogleConnection": (status) => (
|
|
42
|
-
// 根据目前的产品需求,连通性检测只会被检测一次。
|
|
43
|
-
console.log("谷歌连通性发生变化时触发,连通性状态是:", status)
|
|
44
|
-
)
|
|
37
|
+
"clickEndPoint": (place) => console.log("点击终点时触发 palce = ", place)
|
|
45
38
|
}
|
|
46
39
|
})]);
|
|
47
40
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { h } from "vue";
|
|
2
|
-
import { B as BusinessRecomendPlaceMap } from "../chunks/BusinessRecomendPlaceMap.
|
|
2
|
+
import { B as BusinessRecomendPlaceMap } from "../chunks/BusinessRecomendPlaceMap.5be4fdcf.js";
|
|
3
3
|
import { useBusinessRecomendPlaceMap } from "../hooks-business/useBusinessRecomendPlaceMap.js";
|
|
4
4
|
import { defineSetup } from "../types/helper.js";
|
|
5
5
|
import { d as demo } from "../chunks/Demo.css.e921a2f6.js";
|
|
@@ -53,7 +53,6 @@ const DemoBusinessRecomendPlace = defineSetup("DemoBusinessRecomendPlace", funct
|
|
|
53
53
|
centerPlace,
|
|
54
54
|
mapContext,
|
|
55
55
|
geoPosition,
|
|
56
|
-
googleConnectionStatus,
|
|
57
56
|
setCenterPlaceByUserSpecified,
|
|
58
57
|
setCenterPlaceByUserSpecifiedInZone
|
|
59
58
|
} = useBusinessRecomendPlaceMap();
|
|
@@ -105,7 +104,7 @@ const DemoBusinessRecomendPlace = defineSetup("DemoBusinessRecomendPlace", funct
|
|
|
105
104
|
}
|
|
106
105
|
});
|
|
107
106
|
return () => {
|
|
108
|
-
return h("div", [h("div", [
|
|
107
|
+
return h("div", [h("div", [JSON.stringify(centerPlace)]), h("div", [JSON.stringify(geoPosition.value)]), h(BusinessRecomendPlaceMap, {
|
|
109
108
|
"class": demo,
|
|
110
109
|
"attrs": {
|
|
111
110
|
"geoLoadingTitle": "正在获取您当前的位置",
|
|
@@ -152,11 +151,7 @@ const DemoBusinessRecomendPlace = defineSetup("DemoBusinessRecomendPlace", funct
|
|
|
152
151
|
},
|
|
153
152
|
"geoErrorOnce": (isBusinessTimeout) => {
|
|
154
153
|
console.log("获取GPS失败时触发, 只触发一次, ", isBusinessTimeout ? "给用户超时提示" : "给用户无权限反馈");
|
|
155
|
-
}
|
|
156
|
-
"changeGoogleConnection": (status) => (
|
|
157
|
-
// 根据目前的产品需求,连通性检测只会被检测一次。
|
|
158
|
-
console.log("谷歌连通性发生变化时触发,连通性状态是:", status)
|
|
159
|
-
)
|
|
154
|
+
}
|
|
160
155
|
}
|
|
161
156
|
})]);
|
|
162
157
|
};
|
|
@@ -52,7 +52,6 @@ const DemoBusinessReselectPlace = defineSetup("DemoBusinessReselectPlace", funct
|
|
|
52
52
|
const {
|
|
53
53
|
centerPlace,
|
|
54
54
|
mapContext,
|
|
55
|
-
googleConnectionStatus,
|
|
56
55
|
setCenterPlaceByUserSpecified,
|
|
57
56
|
setCenterPlaceByUserSpecifiedInZone
|
|
58
57
|
} = useBusinessRecomendPlaceMap();
|
|
@@ -110,7 +109,7 @@ const DemoBusinessReselectPlace = defineSetup("DemoBusinessReselectPlace", funct
|
|
|
110
109
|
}
|
|
111
110
|
});
|
|
112
111
|
return () => {
|
|
113
|
-
return h("div", [h("div", [
|
|
112
|
+
return h("div", [h("div", [JSON.stringify(centerPlace)]), h(BusinessReselectPlaceMap, {
|
|
114
113
|
"class": demo,
|
|
115
114
|
"attrs": {
|
|
116
115
|
"unavailableTitle": "当前区域暂未开通服务",
|
|
@@ -153,11 +152,7 @@ const DemoBusinessReselectPlace = defineSetup("DemoBusinessReselectPlace", funct
|
|
|
153
152
|
},
|
|
154
153
|
"geoErrorOnce": (isBusinessTimeout) => {
|
|
155
154
|
console.log("获取GPS失败时触发, 只触发一次, ", isBusinessTimeout ? "给用户超时提示" : "给用户无权限反馈");
|
|
156
|
-
}
|
|
157
|
-
"changeGoogleConnection": (status) => (
|
|
158
|
-
// 根据目前的产品需求,连通性检测只会被检测一次。
|
|
159
|
-
console.log("谷歌连通性发生变化时触发,连通性状态是:", status)
|
|
160
|
-
)
|
|
155
|
+
}
|
|
161
156
|
}
|
|
162
157
|
})]);
|
|
163
158
|
};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
import { type CoordinatePlace } from "../types/interface";
|
|
2
|
-
export declare const DemoBusinessTaxiEnd: import("vue-demi").DefineComponent<{}, {
|
|
3
|
-
googleConnectionStatus: Readonly<import("vue-demi").Ref<import("../types/interface").GoogleConnectionStatus>>;
|
|
4
|
-
}, {
|
|
2
|
+
export declare const DemoBusinessTaxiEnd: import("vue-demi").DefineComponent<{}, unknown, {
|
|
5
3
|
from: CoordinatePlace;
|
|
6
4
|
to: CoordinatePlace;
|
|
7
5
|
contentHeight: number;
|
|
@@ -1,18 +1,9 @@
|
|
|
1
1
|
import { h } from "vue";
|
|
2
2
|
import { defineComponent } from "vue-demi";
|
|
3
3
|
import { BusinessTaxiEndMap } from "../business-components/BusinessTaxiEndMap/BusinessTaxiEndMap.js";
|
|
4
|
-
import { useBusinessTaxiEndMap } from "../hooks-business/useBusinessTaxiEndMap.js";
|
|
5
4
|
import { l as layout, a as adjustedDemo } from "../chunks/Demo.css.e921a2f6.js";
|
|
6
5
|
const DemoBusinessTaxiEnd = defineComponent({
|
|
7
6
|
name: "DemoBusinessTaxiEnd",
|
|
8
|
-
setup() {
|
|
9
|
-
const {
|
|
10
|
-
googleConnectionStatus
|
|
11
|
-
} = useBusinessTaxiEndMap();
|
|
12
|
-
return {
|
|
13
|
-
googleConnectionStatus
|
|
14
|
-
};
|
|
15
|
-
},
|
|
16
7
|
data() {
|
|
17
8
|
return {
|
|
18
9
|
from: {
|
|
@@ -57,22 +48,15 @@ const DemoBusinessTaxiEnd = defineComponent({
|
|
|
57
48
|
const {
|
|
58
49
|
from,
|
|
59
50
|
to,
|
|
60
|
-
contentHeight
|
|
61
|
-
googleConnectionStatus
|
|
51
|
+
contentHeight
|
|
62
52
|
} = this;
|
|
63
53
|
return h("div", {
|
|
64
54
|
"class": layout
|
|
65
|
-
}, [h("div", [
|
|
55
|
+
}, [h("div", [JSON.stringify(from), " | ", JSON.stringify(to)]), h(BusinessTaxiEndMap, {
|
|
66
56
|
"class": adjustedDemo,
|
|
67
57
|
"attrs": {
|
|
68
58
|
"from": from,
|
|
69
59
|
"to": to
|
|
70
|
-
},
|
|
71
|
-
"on": {
|
|
72
|
-
"changeGoogleConnection": (status) => (
|
|
73
|
-
// 根据目前的产品需求,连通性检测只会被检测一次。
|
|
74
|
-
console.log("谷歌连通性发生变化时触发,连通性状态是:", status)
|
|
75
|
-
)
|
|
76
60
|
}
|
|
77
61
|
}), h("div", {
|
|
78
62
|
"style": {
|