From 140fa6c7157d1f212af0f32cb4df2d41e728a854 Mon Sep 17 00:00:00 2001 From: hanyuqing <1106611654@qq.com> Date: Wed, 3 Dec 2025 10:30:29 +0800 Subject: [PATCH] master --- vue/src/system/GraphDemo.vue | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/vue/src/system/GraphDemo.vue b/vue/src/system/GraphDemo.vue index b059cf8..a747f8c 100644 --- a/vue/src/system/GraphDemo.vue +++ b/vue/src/system/GraphDemo.vue @@ -203,7 +203,7 @@ export default { label: this.nodeShowLabel, labelFontSize: this.nodeFontSize, labelFontFamily: this.nodeFontFamily, - labelFontColor: this.nodeFontColor, + labelFill: this.nodeFontColor, } })) @@ -302,7 +302,6 @@ export default { style: { labelText: (d) => d.data.name, labelPlacement: 'center', - labelWordWrap: true, labelMaxWidth: '150%', labelMaxLines: 3, @@ -371,7 +370,7 @@ export default { label: this.nodeShowLabel, labelFontSize: this.nodeFontSize, labelFontFamily: this.nodeFontFamily, - labelFontColor: this.nodeFontColor, + labelFill: this.nodeFontColor, } })) const updatedData = { @@ -405,6 +404,7 @@ export default { } this.defaultData = updatedData this.updateGraph(updatedData) + }, clearAllStates() { @@ -538,7 +538,6 @@ export default { button { width: 45%; padding: 10px; - //margin: 10px 0; background: #007bff; color: white; border: none;