在shanghaiStreetMapDasai.vue中优化样式,增加z-index以提升层级,同时在initRelationshipChart函数中设置图表缩放比例为0.8。

This commit is contained in:
yindongqi 2025-08-07 18:22:13 +08:00
parent 0852953750
commit 9026c734e6

View File

@ -338,7 +338,7 @@
<span ref="ripple" class="ripple"></span> <span ref="ripple" class="ripple"></span>
</div> </div>
<div <div
class="flex items-center justify-center w-96 h-48 border-2 border-dashed rounded border-gray-500 overflow-hidden" class="flex items-center justify-center w-96 h-48 border-2 border-dashed rounded border-gray-500 overflow-hidden z-[999]"
ref="main9" v-show="relationShow"> ref="main9" v-show="relationShow">
</div> </div>
@ -3651,6 +3651,7 @@ const initRelationshipChart = () => {
{ {
type: "graph", // type: "graph", //
layout: "force", // 使 layout: "force", // 使
zoom: 0.8,
force: { force: {
repulsion: 1000, // repulsion: 1000, //
edgeLength: 1000, // edgeLength: 1000, //