From c4a40faeb16c08e033f0a4395eb18475385c8bbe Mon Sep 17 00:00:00 2001
From: yangfeng <wanwan926_4@163.com>
Date: 星期六, 02 十二月 2023 17:42:56 +0800
Subject: [PATCH] 设置label显示在连接线上面

---
 src/views/cockpitPage/components/PerSonnelProductivity.vue |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/src/views/cockpitPage/components/PerSonnelProductivity.vue b/src/views/cockpitPage/components/PerSonnelProductivity.vue
index db0b593..414d84c 100644
--- a/src/views/cockpitPage/components/PerSonnelProductivity.vue
+++ b/src/views/cockpitPage/components/PerSonnelProductivity.vue
@@ -234,8 +234,8 @@
               label: {
                 normal: {
                   position: "outer",
-                  paddding: [-100, 70],
-
+                  // paddding: [-100, 70],
+                  padding: [0, -55],
                   color: "#01f7fd",
                   fontSize: 12,
                   borderWidth: 20,
@@ -256,12 +256,16 @@
               },
               labelLine: {
                 show: true,
-                length: 20,
-                length2: 10,
+                length: 5,
+                length2: 70,
                 lineStyle: {
                   color: "#dcb018",
                 },
               },
+              labelLayout: {
+                verticalAlign: "bottom",
+                dy: -5,
+              },
               data: data,
             },
           ],

--
Gitblit v1.8.0