diff --git a/packages/uni-h5/dist/uni-h5.cjs.js b/packages/uni-h5/dist/uni-h5.cjs.js index b74e574faa0ed480021ef63eaaa3f28c72a0911e..bcc1c0f59f15116f03627552d07a6e6bdecd0557 100644 --- a/packages/uni-h5/dist/uni-h5.cjs.js +++ b/packages/uni-h5/dist/uni-h5.cjs.js @@ -8633,7 +8633,7 @@ var index$c = /* @__PURE__ */ defineBuiltInComponent({ }, [vue.createVNode("div", { "ref": mapRef, "style": "width: 100%; height: 100%; position: relative; overflow: hidden" - }, null, 512), props2.markers.map((item) => item.id && vue.createVNode(MapMarker, vue.mergeProps({ + }, null, 512), props2.markers.map((item) => vue.createVNode(MapMarker, vue.mergeProps({ "key": item.id }, item), null, 16)), props2.polyline.map((item) => vue.createVNode(MapPolyline, item, null, 16)), props2.circles.map((item) => vue.createVNode(MapCircle, item, null, 16)), props2.controls.map((item) => vue.createVNode(MapControl, item, null, 16)), props2.showLocation && vue.createVNode(MapLocation, null, null), vue.createVNode("div", { "style": "position: absolute;top: 0;width: 100%;height: 100%;overflow: hidden;pointer-events: none;" diff --git a/packages/uni-h5/dist/uni-h5.es.js b/packages/uni-h5/dist/uni-h5.es.js index f76c67cb4c732b49b96d073cf63bf2e3f8afb6a2..40a7acd14ddd339c86b32555b13930107e743154 100644 --- a/packages/uni-h5/dist/uni-h5.es.js +++ b/packages/uni-h5/dist/uni-h5.es.js @@ -20394,7 +20394,7 @@ var Map$1 = /* @__PURE__ */ defineBuiltInComponent({ }, [createVNode("div", { "ref": mapRef, "style": "width: 100%; height: 100%; position: relative; overflow: hidden" - }, null, 512), props2.markers.map((item) => item.id && createVNode(MapMarker, mergeProps({ + }, null, 512), props2.markers.map((item) => createVNode(MapMarker, mergeProps({ "key": item.id }, item), null, 16)), props2.polyline.map((item) => createVNode(MapPolyline, item, null, 16)), props2.circles.map((item) => createVNode(MapCircle, item, null, 16)), props2.controls.map((item) => createVNode(MapControl, item, null, 16)), props2.showLocation && createVNode(MapLocation, null, null), createVNode("div", { "style": "position: absolute;top: 0;width: 100%;height: 100%;overflow: hidden;pointer-events: none;" diff --git a/packages/uni-h5/src/view/components/map/index.tsx b/packages/uni-h5/src/view/components/map/index.tsx index 7839e8810be7a43e553b8f522f397aa46cc4fd2b..f44e8914f5f65c89061c1c592638ef3213afce82 100644 --- a/packages/uni-h5/src/view/components/map/index.tsx +++ b/packages/uni-h5/src/view/components/map/index.tsx @@ -463,9 +463,9 @@ export default /*#__PURE__*/ defineBuiltInComponent({ ref={mapRef} style="width: 100%; height: 100%; position: relative; overflow: hidden" /> - {props.markers.map( - (item) => item.id && - )} + {props.markers.map((item) => ( + + ))} {props.polyline.map((item) => ( ))}