From 4668abd062a1d7686ca19f3fa35fd9888c95c36a Mon Sep 17 00:00:00 2001 From: Md Afiq Iskandar Date: Mon, 28 Jul 2025 10:36:54 +0800 Subject: [PATCH] Refactor Process Flow Component Labels for Improved Clarity - Updated HexagonShape.vue, RectangleShape.vue, SwimlaneHorizontal.vue, SwimlaneVertical.vue, and TrapezoidShape.vue to remove label text from shape components, enhancing visual clarity. - Modified index.vue to clarify node label and description input visibility, ensuring they only appear for process nodes and text annotations. - Adjusted processBuilder.js to set default label values to an empty string for new nodes, improving consistency in node creation. --- components/process-flow/custom/HexagonShape.vue | 2 +- components/process-flow/custom/RectangleShape.vue | 2 +- components/process-flow/custom/SwimlaneHorizontal.vue | 2 +- components/process-flow/custom/SwimlaneVertical.vue | 2 +- components/process-flow/custom/TrapezoidShape.vue | 2 +- pages/process-builder/index.vue | 8 ++++---- stores/processBuilder.js | 4 ++-- 7 files changed, 11 insertions(+), 11 deletions(-) diff --git a/components/process-flow/custom/HexagonShape.vue b/components/process-flow/custom/HexagonShape.vue index 2c5e9bf..0f304a2 100644 --- a/components/process-flow/custom/HexagonShape.vue +++ b/components/process-flow/custom/HexagonShape.vue @@ -36,7 +36,7 @@ const displayDescription = computed(() => { :style="shapeStyle" >
-
{{ displayLabel }}
+
{{ displayDescription }}
diff --git a/components/process-flow/custom/RectangleShape.vue b/components/process-flow/custom/RectangleShape.vue index 5cdf1c8..6e1958a 100644 --- a/components/process-flow/custom/RectangleShape.vue +++ b/components/process-flow/custom/RectangleShape.vue @@ -45,7 +45,7 @@ const displayDescription = computed(() => { :style="shapeStyle" >
-
{{ displayLabel }}
+
{{ displayDescription }}
diff --git a/components/process-flow/custom/SwimlaneHorizontal.vue b/components/process-flow/custom/SwimlaneHorizontal.vue index 6b609dd..f686379 100644 --- a/components/process-flow/custom/SwimlaneHorizontal.vue +++ b/components/process-flow/custom/SwimlaneHorizontal.vue @@ -45,7 +45,7 @@ const displayDescription = computed(() => { :style="shapeStyle" >
-
{{ displayLabel }}
+
{{ displayDescription }}
diff --git a/components/process-flow/custom/SwimlaneVertical.vue b/components/process-flow/custom/SwimlaneVertical.vue index 82f48ab..28e27b4 100644 --- a/components/process-flow/custom/SwimlaneVertical.vue +++ b/components/process-flow/custom/SwimlaneVertical.vue @@ -47,7 +47,7 @@ const displayDescription = computed(() => { :style="shapeStyle" >
-
{{ displayLabel }}
+
{{ displayDescription }}
diff --git a/components/process-flow/custom/TrapezoidShape.vue b/components/process-flow/custom/TrapezoidShape.vue index ff55e94..478ef15 100644 --- a/components/process-flow/custom/TrapezoidShape.vue +++ b/components/process-flow/custom/TrapezoidShape.vue @@ -36,7 +36,7 @@ const displayDescription = computed(() => { :style="shapeStyle" >
-
{{ displayLabel }}
+
{{ displayDescription }}
diff --git a/pages/process-builder/index.vue b/pages/process-builder/index.vue index 9597ea8..628b6c8 100644 --- a/pages/process-builder/index.vue +++ b/pages/process-builder/index.vue @@ -3270,8 +3270,8 @@ const sendToBack = () => { Basic Properties - -
+ +
{ />
- -
+ +