remove toPersianDigits

This commit is contained in:
2026-06-17 13:51:29 +03:30
parent b42b123957
commit 61e10dd45a
13 changed files with 65 additions and 55 deletions
@@ -19,7 +19,7 @@
<Vue3Odometer
:value="displayGoldVal"
class="o-text !text-xl font-bold"
style="font-family: iran-sans; direction: ltr"
style="direction: ltr"
/>
ریال
</div>
@@ -113,10 +113,6 @@ onMounted(async () => {
chartMounted.value = true
})
const toPersianNumber = (num: number) => {
return num.toString().replace(/\d/g, (d) => '۰۱۲۳۴۵۶۷۸۹'[d])
}
const chartOptions = computed(() => {
const fontFamily = getProjectFontFamily()
@@ -144,7 +140,7 @@ const chartOptions = computed(() => {
tickAmount: 8,
show: false,
labels: {
formatter: (val: number) => toPersianNumber(usePrice(val, true, 'ه.ریال')),
formatter: (val: number) => usePrice(val, true, 'ه.ریال'),
style: { fontSize: '13px', fontFamily },
},
},
@@ -165,7 +161,7 @@ const chartOptions = computed(() => {
})}`
},
},
formatter: (val: number) => toPersianNumber(usePrice(val, true, 'ه.ریال')),
formatter: (val: number) => usePrice(val, true, 'ه.ریال'),
style: { fontFamily },
},
colors: [config.config.color],