{"action":"created","issue":{"url":"https://api.github.com/repos/yiminghe/async-validator/issues/21","repository_url":"https://api.github.com/repos/yiminghe/async-validator","labels_url":"https://api.github.com/repos/yiminghe/async-validator/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/yiminghe/async-validator/issues/21/comments","events_url":"https://api.github.com/repos/yiminghe/async-validator/issues/21/events","html_url":"https://github.com/yiminghe/async-validator/issues/21","id":190229300,"number":21,"title":"类型为 number 数字验证不通过的BUG","user":{"login":"fengcms","id":15262264,"avatar_url":"https://avatars.githubusercontent.com/u/15262264?v=3","gravatar_id":"","url":"https://api.github.com/users/fengcms","html_url":"https://github.com/fengcms","followers_url":"https://api.github.com/users/fengcms/followers","following_url":"https://api.github.com/users/fengcms/following{/other_user}","gists_url":"https://api.github.com/users/fengcms/gists{/gist_id}","starred_url":"https://api.github.com/users/fengcms/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fengcms/subscriptions","organizations_url":"https://api.github.com/users/fengcms/orgs","repos_url":"https://api.github.com/users/fengcms/repos","events_url":"https://api.github.com/users/fengcms/events{/privacy}","received_events_url":"https://api.github.com/users/fengcms/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-18T03:42:31Z","updated_at":"2016-12-13T06:42:06Z","closed_at":null,"body":"```html\r\n<template>\r\n<el-form ref=\"form\" :model=\"form\" :rules=\"rules\" label-width=\"100px\">\r\n        <el-form-item label=\"提现金额\" prop=\"money\">\r\n          <el-input v-model=\"form.money\"></el-input>\r\n        </el-form-item>\r\n      </el-form>\r\n</template>\r\n<script>\r\nexport default {\r\n  data() {\r\n    return {\r\n      form:{\r\n        money:null,\r\n      },\r\n      rules: {\r\n        money: [\r\n          { required: true, message: '请输入提现金额', trigger: 'blur' },\r\n          { type:\"number\", message: '请输入正确的提现金额', trigger: 'blur' }\r\n        ]\r\n      }\r\n    }\r\n  }\r\n</script>\r\n```\r\n输入数字校验不正确，提示 请输入正确的提现金额\r\n\r\n修改源码`lib/rule/type.js`第56行为\r\n```js\r\nreturn typeof +value === 'number';\r\n```\r\n则可以通过验证。"},"comment":{"url":"https://api.github.com/repos/yiminghe/async-validator/issues/comments/266659910","html_url":"https://github.com/yiminghe/async-validator/issues/21#issuecomment-266659910","issue_url":"https://api.github.com/repos/yiminghe/async-validator/issues/21","id":266659910,"user":{"login":"Ben07","id":8055139,"avatar_url":"https://avatars.githubusercontent.com/u/8055139?v=3","gravatar_id":"","url":"https://api.github.com/users/Ben07","html_url":"https://github.com/Ben07","followers_url":"https://api.github.com/users/Ben07/followers","following_url":"https://api.github.com/users/Ben07/following{/other_user}","gists_url":"https://api.github.com/users/Ben07/gists{/gist_id}","starred_url":"https://api.github.com/users/Ben07/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ben07/subscriptions","organizations_url":"https://api.github.com/users/Ben07/orgs","repos_url":"https://api.github.com/users/Ben07/repos","events_url":"https://api.github.com/users/Ben07/events{/privacy}","received_events_url":"https://api.github.com/users/Ben07/received_events","type":"User","site_admin":false},"created_at":"2016-12-13T06:42:06Z","updated_at":"2016-12-13T06:42:06Z","body":"input中获取的值是string类型，导致type不符。"}}
{"actor":{"display_login":"Ben07"}}