无人机管理后台前端(已迁走)
张含笑
2025-05-16 5bff7e6781757fa0b274eeaf89078b97cbef6eaf
feat:修改字体
1 files modified
16 ■■■■■ changed files
src/views/wel/index.vue 16 ●●●●● patch | view | raw | blame | history
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', // 确保加粗
            },
          },
        },