Просмотр исходного кода

Merge remote-tracking branch 'origin/master'

HD_wangm 4 месяцев назад
Родитель
Сommit
ad7ffaaccb
1 измененных файлов с 8 добавлено и 6 удалено
  1. 8 6
      pages/worktime/detail/index.uvue

+ 8 - 6
pages/worktime/detail/index.uvue

@@ -168,7 +168,8 @@
                 labelLine: {
                     show: true
                 },
-                data: [] as UTSJSONObject[]
+                data: [] as UTSJSONObject[],
+				textOffset: 150
             } as UTSJSONObject
         ] as UTSJSONObject[]
     } as UTSJSONObject)
@@ -219,17 +220,17 @@
                 extra: {
                     pie: {
                         activeOpacity: 0.5,
-                        activeRadius: 10,
+                        activeRadius: 0,
                         offsetAngle: 0,
                         labelWidth: 15,
                         ringWidth: 30,
-                        customRadius: 0,
+                        // 添加 customRadius 来控制饼图大小
+                        customRadius: 80,
                         border: false,
                         borderWidth: 0,
                         borderColor: '#FFFFFF',
                         centerColor: '#FFFFFF',
-                        linearType: 'custom',
-                        radius: 70
+                        linearType: 'custom'
                     }
                 }
             } as UTSJSONObject
@@ -326,7 +327,8 @@
                     labelLine: {
                         show: false
                     },
-                    data: chartItems
+                    data: chartItems,
+					textOffset: 150
                 }
             ]
         }