From 3e8f12c5732315ded43e7cfbea8fd6c01507f129 Mon Sep 17 00:00:00 2001 From: xueyinfei <1207092115@qq.com> Date: Sun, 1 Jun 2025 21:01:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=9A=E5=8A=A1=E5=85=B3=E7=B3=BB,=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=E8=B0=83=E6=95=B4=E9=A1=B5=E9=9D=A2=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/views/meta/metaInfo/businssRelation.vue | 9 +++++---- vue-fastapi-frontend/src/views/meta/metaInfo/index.vue | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/vue-fastapi-frontend/src/views/meta/metaInfo/businssRelation.vue b/vue-fastapi-frontend/src/views/meta/metaInfo/businssRelation.vue index 68cb5dd..d4acc97 100644 --- a/vue-fastapi-frontend/src/views/meta/metaInfo/businssRelation.vue +++ b/vue-fastapi-frontend/src/views/meta/metaInfo/businssRelation.vue @@ -10,6 +10,8 @@ const props = defineProps({ type: Object, default: () => {} }, + type: String, + default:()=>"" }) const g6data = ref([]) @@ -207,7 +209,6 @@ function initG6() { if (!targetNode.collapsed && targetIndex > targetStartIndex - 1) { targetY = (targetIndex - targetStartIndex + 0.5) * itemHeight + 30; - targetY = Math.min(targetY, 80); } const startPoint = { @@ -237,7 +238,7 @@ function initG6() { endPoint.y, ], ], - endArrow: cfg.endArrow, + endArrow: props.type === 'er'? {path:G6.Arrow.triangle(10,-10,6),fill:'#5B8FF9'} : false//cfg.endArrow, }, // must be assigned in G6 3.3 and later versions. it can be any string you want, but should be unique in a custom item type name: "path-shape", @@ -262,7 +263,7 @@ function initG6() { endPoint.y, ], ], - endArrow: cfg.endArrow, + endArrow: props.type === 'er'? {path: G6.Arrow.triangle(10,-10,6),fill:'#5B8FF9'} : false//cfg.endArrow, }, // must be assigned in G6 3.3 and later versions. it can be any string you want, but should be unique in a custom item type name: "path-shape", @@ -614,7 +615,7 @@ function initG6() { style: { stroke: '#e2e2e2', lineWidth: 4, - endArrow: true, + endArrow: {path: G6.Arrow.triangle(10,-10,6),fill:'#5B8FF9'}, }, }, modes: { diff --git a/vue-fastapi-frontend/src/views/meta/metaInfo/index.vue b/vue-fastapi-frontend/src/views/meta/metaInfo/index.vue index 84a2db1..1194ee2 100644 --- a/vue-fastapi-frontend/src/views/meta/metaInfo/index.vue +++ b/vue-fastapi-frontend/src/views/meta/metaInfo/index.vue @@ -315,13 +315,13 @@ - +
- +