0f05ea10 by lihua

x

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