Skip to content

Commit c5c729a

Browse files
author
zhouwei3-xy
committed
remove es6 code
1 parent 0b54de7 commit c5c729a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/vue-validator.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@
9999
numberType: function(value, input) {
100100
var valid = false,
101101
msg = '请输入数字';
102-
if (isNaN(value)) return { valid, msg };
102+
if (isNaN(value)) return { valid: valid, msg: msg };
103103
var min = parseFloat(input.getAttribute('min'));
104104
var max = parseFloat(input.getAttribute('max'));
105105
min = isNaN(min) ? -Infinity : min;

src/ruleset.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ var ruleset = {
8888
numberType: function(value, input) {
8989
var valid = false,
9090
msg = '请输入数字';
91-
if (isNaN(value)) return { valid, msg };
91+
if (isNaN(value)) return { valid: valid, msg: msg };
9292
var min = parseFloat(input.getAttribute('min'));
9393
var max = parseFloat(input.getAttribute('max'));
9494
min = isNaN(min) ? -Infinity : min;

0 commit comments

Comments
 (0)