Commit 6f907a9e3ee41f5ff110d5ac0d425e1e09262c45

Authored by ww
1 parent 50bc5aed

fix: textComponent not render unit

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