在shanghaiStreetMapDasai.vue中优化样式,增加z-index以提升层级,同时在initRelationshipChart函数中设置图表缩放比例为0.8。
This commit is contained in:
parent
0852953750
commit
9026c734e6
@ -338,7 +338,7 @@
|
||||
<span ref="ripple" class="ripple"></span>
|
||||
</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">
|
||||
|
||||
</div>
|
||||
@ -3651,6 +3651,7 @@ const initRelationshipChart = () => {
|
||||
{
|
||||
type: "graph", // 图类型为关系图
|
||||
layout: "force", // 使用力引导布局
|
||||
zoom: 0.8,
|
||||
force: {
|
||||
repulsion: 1000, // 节点之间的斥力
|
||||
edgeLength: 1000, // 边的长度
|
||||
|
Loading…
x
Reference in New Issue
Block a user