From fe7b350b7c551278d8e74c3d34c276d2f71e3f86 Mon Sep 17 00:00:00 2001
From: 杨磊 <505174330@qq.com>
Date: 星期五, 26 七月 2024 11:53:04 +0800
Subject: [PATCH] 横板文字不换行

---
 src/pages/inherit/list.vue |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/pages/inherit/list.vue b/src/pages/inherit/list.vue
index eb25d41..9a9bf37 100644
--- a/src/pages/inherit/list.vue
+++ b/src/pages/inherit/list.vue
@@ -384,14 +384,17 @@
           },
         };
       });
-      let that = this
+      let that = this;
       const edgeType =
         this.viewType == 1 ? "cubic-horizontal" : "cubic-vertical";
       this.graph.edge(function (node) {
         return {
           type: edgeType,
           color: "#A3B1BF",
-          label:  that.textStyle(node.target._cfg?.model.relationInfo)
+          label:
+            that.viewType == 1
+              ? node.target._cfg?.model.relationInfo
+              : that.textStyle(node.target._cfg?.model.relationInfo),
         };
       });
       this.graph.on("node:click", (e) => {

--
Gitblit v1.9.1