overall印花scale为字符串时候使用toFixed会报错

This commit is contained in:
X1627315083@163.com
2026-02-24 11:27:43 +08:00
parent 7fb7ffaced
commit b8f38db351

View File

@@ -16,7 +16,7 @@
:max="1000"
:step="1"
is-input
:tipFormatter="(v) => `${scale.toFixed(0)}%`"
:tipFormatter="(v) => `${Number(scale)?.toFixed(0)}%`"
:value="scale"
@input="inputFillScale"
/>