Commit 3eb06dcb authored by linzer's avatar linzer Committed by 杨奕

input-number allow input '.' '-'

parent 409a3c85
......@@ -208,6 +208,15 @@
if (value === '') {
return;
}
if (value.indexOf('.') === (value.length - 1)) {
return;
}
if (value.indexOf('-') === (value.length - 1)) {
return;
}
const newVal = Number(value);
if (!isNaN(newVal)) {
this.setCurrentValue(newVal);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment