+
{{ value }}
@@ -55,16 +52,6 @@ const props = defineProps({
description: { type: String, default: '' }
});
-const valueFontSize = computed(() => {
- const valStr = String(props.value ?? '');
- const len = valStr.length;
- if (len > 20) return 'text-[20px]';
- if (len > 16) return 'text-[24px]';
- if (len > 12) return 'text-[28px]';
- if (len > 10) return 'text-[32px]';
- return 'text-[38px]';
-});
-
function hexToRgba(hex, alpha) {
const h = String(hex || '')
.replace('#', '')
@@ -72,9 +59,9 @@ function hexToRgba(hex, alpha) {
const full =
h.length === 3
? h
- .split('')
- .map((c) => c + c)
- .join('')
+ .split('')
+ .map((c) => c + c)
+ .join('')
: h;
if (full.length !== 6) return `rgba(91, 137, 255, ${alpha})`;
const r = parseInt(full.slice(0, 2), 16);