perf: 优化首页样式

This commit is contained in:
奔跑的面条
2022-10-08 20:32:36 +08:00
parent d8f8ef032d
commit 0841e632c2
3 changed files with 97 additions and 87 deletions
@@ -157,14 +157,12 @@ const props = defineProps({
}
})
// 百分比格式化persen
// 百分比格式化 person
const sliderFormatTooltip = (v: string) => {
// @ts-ignore
return `${(parseFloat(v) * 100).toFixed(0)}%`
}
// 角度格式化
const degFormatTooltip = (v: string) => {
// @ts-ignore
return `${v}deg`
}
</script>