yanghao 1 week ago
parent
commit
bfca1b13aa
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/views/pms/stat/rykb/inventory-situation.vue

+ 3 - 0
src/views/pms/stat/rykb/inventory-situation.vue

@@ -259,12 +259,15 @@ function getDistributionOption(
           formatter: '{b}\n{d}%',
           color: 'inherit',
           fontSize: layout.distributionLabelFontSize,
+          distanceToLabelLine: 1, // 标签与引导线的距离
           fontWeight: 500,
           fontFamily: FONT_FAMILY
         },
         labelLine: {
           show: true,
           minTurnAngle: 90,
+          length: layout.compact ? 10 : 15, // 引导线第一段长度
+          length2: layout.compact ? 12 : 20, // 引导线第二段长度
           lineStyle: {
             width: 1.5,
             opacity: 1