在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>
|
<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, // 边的长度
|
||||||
|
Loading…
x
Reference in New Issue
Block a user