0f05ea10 by lihua

x

1 parent 423d6c2d
......@@ -593,6 +593,7 @@ const inputEventChange = (val, scope, field, max: any = null) => {
} else { //需要支持负数
row[field] = row[field].toString().replace(/[^\d.-]/g, "")
row[field] = row[field].toString().replace(/\.{2,}/g, ".")
row[field] = row[field].toString().replace(".", "$#$").replace(/\./g, "").replace("$#$", ".")
// 第四步:移除整数部分前面不必要的零,但保留小数部分的有效零
if (row[field].startsWith('-')) {
// 对于负数,去掉负号进行处理
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!