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 @@ - +
- +