From 5bff7e6781757fa0b274eeaf89078b97cbef6eaf Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Fri, 16 May 2025 10:27:45 +0800
Subject: [PATCH] feat:修改字体

---
 src/views/wel/index.vue |   16 +++++++++-------
 1 files changed, 9 insertions(+), 7 deletions(-)

diff --git a/src/views/wel/index.vue b/src/views/wel/index.vue
index 4ca3a8a..a4fa729 100644
--- a/src/views/wel/index.vue
+++ b/src/views/wel/index.vue
@@ -209,6 +209,7 @@
   const data = {
     total: {
       title: '总计',
+      
       figure: totalNum.toString(), // 动态计算总数
     },
     data: val.map(item => ({
@@ -245,7 +246,7 @@
       textStyle: {
         color: 'rgba(28, 31, 35, 0.80)',
         fontSize: '12px',
-        fontWeight: 'normal',
+        fontWeight: 'bold',
       },
       subtext: data.total.figure,
       subtextStyle: {
@@ -261,24 +262,25 @@
       {
         name: '',
         type: 'pie',
-        radius: ['50%', '65%'],
+        radius: ['43%', '63%'],
         avoidLabelOverlap: true,
-        // left: '10%',
+        left: '-2%',
         label: {
           formatter: params => {
-            return `{a|${params.name}}: ${params.data.rate}%`;
+            // 使用 b 样式标记包裹百分比数值
+            return `{a|${params.name}}: {b|${params.data.rate}%}`;
           },
           alignTo: 'labelLine',
           overflow: 'truncate',
           rich: {
             a: {
               color: 'rgba(28, 31, 35, 0.80)',
-              fontSize: '12px',
+              fontSize: 12, // 建议去掉引号使用数字
             },
             b: {
               color: '#1C1F23',
-              fontSize: '14px',
-              fontWeight: '600',
+              fontSize: 14,
+              fontWeight: 'bold', // 确保加粗
             },
           },
         },

--
Gitblit v1.9.3