{"action":"created","comment":{"url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/pulls/comments/75794365","id":75794365,"diff_hunk":"@@ -22,11 +22,19 @@ export default class DatePickerCtrl {\n \t\tthis.$element = $element;\n \n \t\tif (this.minDate instanceof Date) {\n-\t\t\tthis.minDate = new Date(this.minDate.setMilliseconds(0));\n+\t\t\tthis.minDate = new Date(\n+\t\t\t\tthis.dateOnly\n+\t\t\t\t\t? this.maxDate.setHours(0)","path":"src/components/date-picker/DatePickerCtrl.js","position":7,"original_position":7,"commit_id":"25a9bca447ff5377a60fd50d125b940f283ad24e","original_commit_id":"25a9bca447ff5377a60fd50d125b940f283ad24e","user":{"login":"arzyu","id":1270145,"avatar_url":"https://avatars.githubusercontent.com/u/1270145?v=3","gravatar_id":"","url":"https://api.github.com/users/arzyu","html_url":"https://github.com/arzyu","followers_url":"https://api.github.com/users/arzyu/followers","following_url":"https://api.github.com/users/arzyu/following{/other_user}","gists_url":"https://api.github.com/users/arzyu/gists{/gist_id}","starred_url":"https://api.github.com/users/arzyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arzyu/subscriptions","organizations_url":"https://api.github.com/users/arzyu/orgs","repos_url":"https://api.github.com/users/arzyu/repos","events_url":"https://api.github.com/users/arzyu/events{/privacy}","received_events_url":"https://api.github.com/users/arzyu/received_events","type":"User","site_admin":false},"body":"@ashnorseman 应该是 `this.minDate.setHours(0)`","created_at":"2016-08-23T02:33:41Z","updated_at":"2016-08-23T02:33:41Z","html_url":"https://github.com/ShuyunFF2E/ccms-components/pull/132#discussion_r75794365","pull_request_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/pulls/132","_links":{"self":{"href":"https://api.github.com/repos/ShuyunFF2E/ccms-components/pulls/comments/75794365"},"html":{"href":"https://github.com/ShuyunFF2E/ccms-components/pull/132#discussion_r75794365"},"pull_request":{"href":"https://api.github.com/repos/ShuyunFF2E/ccms-components/pulls/132"}}},"pull_request":{"url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/pulls/132","id":81921860,"html_url":"https://github.com/ShuyunFF2E/ccms-components/pull/132","diff_url":"https://github.com/ShuyunFF2E/ccms-components/pull/132.diff","patch_url":"https://github.com/ShuyunFF2E/ccms-components/pull/132.patch","issue_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/issues/132","number":132,"state":"open","locked":false,"title":"COMPONENTS-107 日期选择器需要提供重置接口","user":{"login":"ashnorseman","id":6183608,"avatar_url":"https://avatars.githubusercontent.com/u/6183608?v=3","gravatar_id":"","url":"https://api.github.com/users/ashnorseman","html_url":"https://github.com/ashnorseman","followers_url":"https://api.github.com/users/ashnorseman/followers","following_url":"https://api.github.com/users/ashnorseman/following{/other_user}","gists_url":"https://api.github.com/users/ashnorseman/gists{/gist_id}","starred_url":"https://api.github.com/users/ashnorseman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ashnorseman/subscriptions","organizations_url":"https://api.github.com/users/ashnorseman/orgs","repos_url":"https://api.github.com/users/ashnorseman/repos","events_url":"https://api.github.com/users/ashnorseman/events{/privacy}","received_events_url":"https://api.github.com/users/ashnorseman/received_events","type":"User","site_admin":false},"body":"可以通过代码设置 dateRange.start = null; dateRange.end = null;\r\n\r\n","created_at":"2016-08-19T03:32:47Z","updated_at":"2016-08-23T02:33:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"adb8b95dd7fd1331514ac6e617db60c1a7e38bf6","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/pulls/132/commits","review_comments_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/pulls/132/comments","review_comment_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/issues/132/comments","statuses_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/statuses/25a9bca447ff5377a60fd50d125b940f283ad24e","head":{"label":"ShuyunFF2E:feat/date-picker-reset","ref":"feat/date-picker-reset","sha":"25a9bca447ff5377a60fd50d125b940f283ad24e","user":{"login":"ShuyunFF2E","id":19563300,"avatar_url":"https://avatars.githubusercontent.com/u/19563300?v=3","gravatar_id":"","url":"https://api.github.com/users/ShuyunFF2E","html_url":"https://github.com/ShuyunFF2E","followers_url":"https://api.github.com/users/ShuyunFF2E/followers","following_url":"https://api.github.com/users/ShuyunFF2E/following{/other_user}","gists_url":"https://api.github.com/users/ShuyunFF2E/gists{/gist_id}","starred_url":"https://api.github.com/users/ShuyunFF2E/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShuyunFF2E/subscriptions","organizations_url":"https://api.github.com/users/ShuyunFF2E/orgs","repos_url":"https://api.github.com/users/ShuyunFF2E/repos","events_url":"https://api.github.com/users/ShuyunFF2E/events{/privacy}","received_events_url":"https://api.github.com/users/ShuyunFF2E/received_events","type":"Organization","site_admin":false},"repo":{"id":59626104,"name":"ccms-components","full_name":"ShuyunFF2E/ccms-components","owner":{"login":"ShuyunFF2E","id":19563300,"avatar_url":"https://avatars.githubusercontent.com/u/19563300?v=3","gravatar_id":"","url":"https://api.github.com/users/ShuyunFF2E","html_url":"https://github.com/ShuyunFF2E","followers_url":"https://api.github.com/users/ShuyunFF2E/followers","following_url":"https://api.github.com/users/ShuyunFF2E/following{/other_user}","gists_url":"https://api.github.com/users/ShuyunFF2E/gists{/gist_id}","starred_url":"https://api.github.com/users/ShuyunFF2E/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShuyunFF2E/subscriptions","organizations_url":"https://api.github.com/users/ShuyunFF2E/orgs","repos_url":"https://api.github.com/users/ShuyunFF2E/repos","events_url":"https://api.github.com/users/ShuyunFF2E/events{/privacy}","received_events_url":"https://api.github.com/users/ShuyunFF2E/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ShuyunFF2E/ccms-components","description":"数据赢家组件库 written by Angular1.x + ES2015","fork":false,"url":"https://api.github.com/repos/ShuyunFF2E/ccms-components","forks_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/forks","keys_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/teams","hooks_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/hooks","issue_events_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/issues/events{/number}","events_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/events","assignees_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/assignees{/user}","branches_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/branches{/branch}","tags_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/tags","blobs_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/statuses/{sha}","languages_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/languages","stargazers_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/stargazers","contributors_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/contributors","subscribers_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/subscribers","subscription_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/subscription","commits_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/issues/comments{/number}","contents_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/contents/{+path}","compare_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/merges","archive_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/downloads","issues_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/issues{/number}","pulls_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/pulls{/number}","milestones_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/milestones{/number}","notifications_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/labels{/name}","releases_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/releases{/id}","deployments_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/deployments","created_at":"2016-05-25T02:57:56Z","updated_at":"2016-08-19T10:03:21Z","pushed_at":"2016-08-22T09:14:42Z","git_url":"git://github.com/ShuyunFF2E/ccms-components.git","ssh_url":"git@github.com:ShuyunFF2E/ccms-components.git","clone_url":"https://github.com/ShuyunFF2E/ccms-components.git","svn_url":"https://github.com/ShuyunFF2E/ccms-components","homepage":"http://shuyunff2e.github.io/ccms-components/","size":1692,"stargazers_count":25,"watchers_count":25,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":16,"mirror_url":null,"open_issues_count":12,"forks":16,"open_issues":12,"watchers":25,"default_branch":"dev"}},"base":{"label":"ShuyunFF2E:dev","ref":"dev","sha":"a5f406036c233ab428155c95459111c288d3ad3c","user":{"login":"ShuyunFF2E","id":19563300,"avatar_url":"https://avatars.githubusercontent.com/u/19563300?v=3","gravatar_id":"","url":"https://api.github.com/users/ShuyunFF2E","html_url":"https://github.com/ShuyunFF2E","followers_url":"https://api.github.com/users/ShuyunFF2E/followers","following_url":"https://api.github.com/users/ShuyunFF2E/following{/other_user}","gists_url":"https://api.github.com/users/ShuyunFF2E/gists{/gist_id}","starred_url":"https://api.github.com/users/ShuyunFF2E/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShuyunFF2E/subscriptions","organizations_url":"https://api.github.com/users/ShuyunFF2E/orgs","repos_url":"https://api.github.com/users/ShuyunFF2E/repos","events_url":"https://api.github.com/users/ShuyunFF2E/events{/privacy}","received_events_url":"https://api.github.com/users/ShuyunFF2E/received_events","type":"Organization","site_admin":false},"repo":{"id":59626104,"name":"ccms-components","full_name":"ShuyunFF2E/ccms-components","owner":{"login":"ShuyunFF2E","id":19563300,"avatar_url":"https://avatars.githubusercontent.com/u/19563300?v=3","gravatar_id":"","url":"https://api.github.com/users/ShuyunFF2E","html_url":"https://github.com/ShuyunFF2E","followers_url":"https://api.github.com/users/ShuyunFF2E/followers","following_url":"https://api.github.com/users/ShuyunFF2E/following{/other_user}","gists_url":"https://api.github.com/users/ShuyunFF2E/gists{/gist_id}","starred_url":"https://api.github.com/users/ShuyunFF2E/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ShuyunFF2E/subscriptions","organizations_url":"https://api.github.com/users/ShuyunFF2E/orgs","repos_url":"https://api.github.com/users/ShuyunFF2E/repos","events_url":"https://api.github.com/users/ShuyunFF2E/events{/privacy}","received_events_url":"https://api.github.com/users/ShuyunFF2E/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ShuyunFF2E/ccms-components","description":"数据赢家组件库 written by Angular1.x + ES2015","fork":false,"url":"https://api.github.com/repos/ShuyunFF2E/ccms-components","forks_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/forks","keys_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/teams","hooks_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/hooks","issue_events_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/issues/events{/number}","events_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/events","assignees_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/assignees{/user}","branches_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/branches{/branch}","tags_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/tags","blobs_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/git/refs{/sha}","trees_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/statuses/{sha}","languages_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/languages","stargazers_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/stargazers","contributors_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/contributors","subscribers_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/subscribers","subscription_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/subscription","commits_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/commits{/sha}","git_commits_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/git/commits{/sha}","comments_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/comments{/number}","issue_comment_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/issues/comments{/number}","contents_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/contents/{+path}","compare_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/merges","archive_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/downloads","issues_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/issues{/number}","pulls_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/pulls{/number}","milestones_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/milestones{/number}","notifications_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/labels{/name}","releases_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/releases{/id}","deployments_url":"https://api.github.com/repos/ShuyunFF2E/ccms-components/deployments","created_at":"2016-05-25T02:57:56Z","updated_at":"2016-08-19T10:03:21Z","pushed_at":"2016-08-22T09:14:42Z","git_url":"git://github.com/ShuyunFF2E/ccms-components.git","ssh_url":"git@github.com:ShuyunFF2E/ccms-components.git","clone_url":"https://github.com/ShuyunFF2E/ccms-components.git","svn_url":"https://github.com/ShuyunFF2E/ccms-components","homepage":"http://shuyunff2e.github.io/ccms-components/","size":1692,"stargazers_count":25,"watchers_count":25,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":16,"mirror_url":null,"open_issues_count":12,"forks":16,"open_issues":12,"watchers":25,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/ShuyunFF2E/ccms-components/pulls/132"},"html":{"href":"https://github.com/ShuyunFF2E/ccms-components/pull/132"},"issue":{"href":"https://api.github.com/repos/ShuyunFF2E/ccms-components/issues/132"},"comments":{"href":"https://api.github.com/repos/ShuyunFF2E/ccms-components/issues/132/comments"},"review_comments":{"href":"https://api.github.com/repos/ShuyunFF2E/ccms-components/pulls/132/comments"},"review_comment":{"href":"https://api.github.com/repos/ShuyunFF2E/ccms-components/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ShuyunFF2E/ccms-components/pulls/132/commits"},"statuses":{"href":"https://api.github.com/repos/ShuyunFF2E/ccms-components/statuses/25a9bca447ff5377a60fd50d125b940f283ad24e"}}}}
{"actor":{"display_login":"arzyu"}}