@zhenliang/sheet 0.1.95 → 0.1.96
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -125,7 +125,7 @@ export var getNumberEditor = function getNumberEditor(extraProps, getExtraProps)
|
|
|
125
125
|
// 粘贴上去的时候触发
|
|
126
126
|
NumberEditor.parser = function (value, record, currentValue) {
|
|
127
127
|
var _String2;
|
|
128
|
-
var result = (_String2 = String(value)) === null || _String2 === void 0 ? void 0 : _String2.replace(
|
|
128
|
+
var result = (_String2 = String(value)) === null || _String2 === void 0 ? void 0 : _String2.replace(/[,|%]/g, '');
|
|
129
129
|
result = formulaString(result, currentValue);
|
|
130
130
|
if (isNil(result) || isNaN(result)) {
|
|
131
131
|
return null;
|