Commit 6f907a9e3ee41f5ff110d5ac0d425e1e09262c45

Authored by ww
1 parent 50bc5aed

fix: textComponent not render unit

... ... @@ -69,7 +69,7 @@
69 69 <!-- <Image :style="{ width: `${getWidth}px` }" :src="getImagBase64" /> -->
70 70 <div
71 71 class="w-full text-center truncate p-5"
72   - :style="{ fontSize: fontSize({ radio: getRadio, basic: 12, max: 16 }), color: '#999' }"
  72 + :style="{ fontSize: fontSize({ radio: getRadio, basic: 12, max: 12 }), color: '#999' }"
73 73 >
74 74 <Tooltip
75 75 placement="top"
... ...
... ... @@ -75,6 +75,7 @@
75 75 <Statistic
76 76 :value="props.value.value || 0"
77 77 class="truncate"
  78 + :suffix="getShowUnit ? props.value.unit : ''"
78 79 :value-style="{
79 80 fontSize: fontSize({ radio: getRadio, basic: 24, min: 16 }),
80 81 color: props.value.fontColor,
... ...