{"action":"created","issue":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/2152","repository_url":"https://api.github.com/repos/ant-design/ant-design","labels_url":"https://api.github.com/repos/ant-design/ant-design/issues/2152/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design/issues/2152/comments","events_url":"https://api.github.com/repos/ant-design/ant-design/issues/2152/events","html_url":"https://github.com/ant-design/ant-design/issues/2152","id":161853197,"number":2152,"title":"RangePicker 表单校验问题","user":{"login":"aw6658913","id":19485727,"avatar_url":"https://avatars.githubusercontent.com/u/19485727?v=3","gravatar_id":"","url":"https://api.github.com/users/aw6658913","html_url":"https://github.com/aw6658913","followers_url":"https://api.github.com/users/aw6658913/followers","following_url":"https://api.github.com/users/aw6658913/following{/other_user}","gists_url":"https://api.github.com/users/aw6658913/gists{/gist_id}","starred_url":"https://api.github.com/users/aw6658913/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aw6658913/subscriptions","organizations_url":"https://api.github.com/users/aw6658913/orgs","repos_url":"https://api.github.com/users/aw6658913/repos","events_url":"https://api.github.com/users/aw6658913/events{/privacy}","received_events_url":"https://api.github.com/users/aw6658913/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-06-23T06:59:38Z","updated_at":"2016-06-23T08:17:28Z","closed_at":"2016-06-23T07:46:06Z","body":"我对表单的日期选择控件加上如下校验\r\nconst activeTimeV = getFieldProps('activeTime', {\r\n      rules: [\r\n        {\r\n          required: true,\r\n          type: 'date',\r\n          message: '请输入有效时间？',\r\n        },\r\n      ],\r\n    });\r\n\r\n浏览器会报t.getTime is not function错，估计是因为值是个数组而不是时间类型吧"},"comment":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/comments/227981097","html_url":"https://github.com/ant-design/ant-design/issues/2152#issuecomment-227981097","issue_url":"https://api.github.com/repos/ant-design/ant-design/issues/2152","id":227981097,"user":{"login":"afc163","id":507615,"avatar_url":"https://avatars.githubusercontent.com/u/507615?v=3","gravatar_id":"","url":"https://api.github.com/users/afc163","html_url":"https://github.com/afc163","followers_url":"https://api.github.com/users/afc163/followers","following_url":"https://api.github.com/users/afc163/following{/other_user}","gists_url":"https://api.github.com/users/afc163/gists{/gist_id}","starred_url":"https://api.github.com/users/afc163/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/afc163/subscriptions","organizations_url":"https://api.github.com/users/afc163/orgs","repos_url":"https://api.github.com/users/afc163/repos","events_url":"https://api.github.com/users/afc163/events{/privacy}","received_events_url":"https://api.github.com/users/afc163/received_events","type":"User","site_admin":false},"created_at":"2016-06-23T08:17:28Z","updated_at":"2016-06-23T08:17:28Z","body":"https://github.com/yiminghe/async-validator#type\r\n\r\n文档里只放了一个 async-validator 链接，确实有点单薄。"}}
{"actor":{"display_login":"afc163"}}