{"action":"created","comment":{"url":"https://api.github.com/repos/react-component/pagination/pulls/comments/210161350","pull_request_review_id":146319167,"id":210161350,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMDE2MTM1MA==","diff_hunk":"@@ -133,6 +137,22 @@ export default class Pagination extends React.Component {\n     return Math.min(this.calculatePage(), this.state.current + (this.props.showLessItems ? 3 : 5));\n   }\n \n+  /**\n+   * computed icon node that need to be rendered.\n+   * @param {React.ReactNode | React.ComponentType<PaginationProps>} icon received icon.\n+   * @param {'prev' | 'next' | 'jump-prev' | 'jump-next'} type\n+   * @returns {React.ReactNode}\n+   */\n+  getItemIcon = (icon, type) => {\n+    const { prefixCls } = this.props;\n+    let iconNode = icon\n+      || <a className={`${prefixCls}-item-link`} />;\n+    if (typeof icon === 'function') {\n+      iconNode = React.createElement(icon, { ...this.props, type });","path":"src/Pagination.jsx","position":26,"original_position":26,"commit_id":"b246c43ae307c0b3447915a87db999db9250d0a3","original_commit_id":"b246c43ae307c0b3447915a87db999db9250d0a3","user":{"login":"yesmeck","id":465125,"node_id":"MDQ6VXNlcjQ2NTEyNQ==","avatar_url":"https://avatars0.githubusercontent.com/u/465125?v=4","gravatar_id":"","url":"https://api.github.com/users/yesmeck","html_url":"https://github.com/yesmeck","followers_url":"https://api.github.com/users/yesmeck/followers","following_url":"https://api.github.com/users/yesmeck/following{/other_user}","gists_url":"https://api.github.com/users/yesmeck/gists{/gist_id}","starred_url":"https://api.github.com/users/yesmeck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yesmeck/subscriptions","organizations_url":"https://api.github.com/users/yesmeck/orgs","repos_url":"https://api.github.com/users/yesmeck/repos","events_url":"https://api.github.com/users/yesmeck/events{/privacy}","received_events_url":"https://api.github.com/users/yesmeck/received_events","type":"User","site_admin":false},"body":"这个 type 有什么用？","created_at":"2018-08-15T03:10:29Z","updated_at":"2018-08-15T03:10:29Z","html_url":"https://github.com/react-component/pagination/pull/139#discussion_r210161350","pull_request_url":"https://api.github.com/repos/react-component/pagination/pulls/139","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/react-component/pagination/pulls/comments/210161350"},"html":{"href":"https://github.com/react-component/pagination/pull/139#discussion_r210161350"},"pull_request":{"href":"https://api.github.com/repos/react-component/pagination/pulls/139"}}},"pull_request":{"url":"https://api.github.com/repos/react-component/pagination/pulls/139","id":204316925,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA0MzE2OTI1","html_url":"https://github.com/react-component/pagination/pull/139","diff_url":"https://github.com/react-component/pagination/pull/139.diff","patch_url":"https://github.com/react-component/pagination/pull/139.patch","issue_url":"https://api.github.com/repos/react-component/pagination/issues/139","number":139,"state":"open","locked":false,"title":"support custom default link icon & jump link icon","user":{"login":"HeskeyBaozi","id":15819224,"node_id":"MDQ6VXNlcjE1ODE5MjI0","avatar_url":"https://avatars3.githubusercontent.com/u/15819224?v=4","gravatar_id":"","url":"https://api.github.com/users/HeskeyBaozi","html_url":"https://github.com/HeskeyBaozi","followers_url":"https://api.github.com/users/HeskeyBaozi/followers","following_url":"https://api.github.com/users/HeskeyBaozi/following{/other_user}","gists_url":"https://api.github.com/users/HeskeyBaozi/gists{/gist_id}","starred_url":"https://api.github.com/users/HeskeyBaozi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HeskeyBaozi/subscriptions","organizations_url":"https://api.github.com/users/HeskeyBaozi/orgs","repos_url":"https://api.github.com/users/HeskeyBaozi/repos","events_url":"https://api.github.com/users/HeskeyBaozi/events{/privacy}","received_events_url":"https://api.github.com/users/HeskeyBaozi/received_events","type":"User","site_admin":false},"body":"可以设置默认的“下一页图标”和快进下一页图标。\r\n暴露接口以供未来svg图标的使用。","created_at":"2018-07-27T02:55:50Z","updated_at":"2018-08-15T03:10:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b6edabc489034ded4255f0c4412cd62d21a4c4bb","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/react-component/pagination/pulls/139/commits","review_comments_url":"https://api.github.com/repos/react-component/pagination/pulls/139/comments","review_comment_url":"https://api.github.com/repos/react-component/pagination/pulls/comments{/number}","comments_url":"https://api.github.com/repos/react-component/pagination/issues/139/comments","statuses_url":"https://api.github.com/repos/react-component/pagination/statuses/b246c43ae307c0b3447915a87db999db9250d0a3","head":{"label":"HeskeyBaozi:master","ref":"master","sha":"b246c43ae307c0b3447915a87db999db9250d0a3","user":{"login":"HeskeyBaozi","id":15819224,"node_id":"MDQ6VXNlcjE1ODE5MjI0","avatar_url":"https://avatars3.githubusercontent.com/u/15819224?v=4","gravatar_id":"","url":"https://api.github.com/users/HeskeyBaozi","html_url":"https://github.com/HeskeyBaozi","followers_url":"https://api.github.com/users/HeskeyBaozi/followers","following_url":"https://api.github.com/users/HeskeyBaozi/following{/other_user}","gists_url":"https://api.github.com/users/HeskeyBaozi/gists{/gist_id}","starred_url":"https://api.github.com/users/HeskeyBaozi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HeskeyBaozi/subscriptions","organizations_url":"https://api.github.com/users/HeskeyBaozi/orgs","repos_url":"https://api.github.com/users/HeskeyBaozi/repos","events_url":"https://api.github.com/users/HeskeyBaozi/events{/privacy}","received_events_url":"https://api.github.com/users/HeskeyBaozi/received_events","type":"User","site_admin":false},"repo":{"id":142423793,"node_id":"MDEwOlJlcG9zaXRvcnkxNDI0MjM3OTM=","name":"pagination","full_name":"HeskeyBaozi/pagination","owner":{"login":"HeskeyBaozi","id":15819224,"node_id":"MDQ6VXNlcjE1ODE5MjI0","avatar_url":"https://avatars3.githubusercontent.com/u/15819224?v=4","gravatar_id":"","url":"https://api.github.com/users/HeskeyBaozi","html_url":"https://github.com/HeskeyBaozi","followers_url":"https://api.github.com/users/HeskeyBaozi/followers","following_url":"https://api.github.com/users/HeskeyBaozi/following{/other_user}","gists_url":"https://api.github.com/users/HeskeyBaozi/gists{/gist_id}","starred_url":"https://api.github.com/users/HeskeyBaozi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HeskeyBaozi/subscriptions","organizations_url":"https://api.github.com/users/HeskeyBaozi/orgs","repos_url":"https://api.github.com/users/HeskeyBaozi/repos","events_url":"https://api.github.com/users/HeskeyBaozi/events{/privacy}","received_events_url":"https://api.github.com/users/HeskeyBaozi/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/HeskeyBaozi/pagination","description":"React Pagination","fork":true,"url":"https://api.github.com/repos/HeskeyBaozi/pagination","forks_url":"https://api.github.com/repos/HeskeyBaozi/pagination/forks","keys_url":"https://api.github.com/repos/HeskeyBaozi/pagination/keys{/key_id}","collaborators_url":"https://api.github.com/repos/HeskeyBaozi/pagination/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/HeskeyBaozi/pagination/teams","hooks_url":"https://api.github.com/repos/HeskeyBaozi/pagination/hooks","issue_events_url":"https://api.github.com/repos/HeskeyBaozi/pagination/issues/events{/number}","events_url":"https://api.github.com/repos/HeskeyBaozi/pagination/events","assignees_url":"https://api.github.com/repos/HeskeyBaozi/pagination/assignees{/user}","branches_url":"https://api.github.com/repos/HeskeyBaozi/pagination/branches{/branch}","tags_url":"https://api.github.com/repos/HeskeyBaozi/pagination/tags","blobs_url":"https://api.github.com/repos/HeskeyBaozi/pagination/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/HeskeyBaozi/pagination/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/HeskeyBaozi/pagination/git/refs{/sha}","trees_url":"https://api.github.com/repos/HeskeyBaozi/pagination/git/trees{/sha}","statuses_url":"https://api.github.com/repos/HeskeyBaozi/pagination/statuses/{sha}","languages_url":"https://api.github.com/repos/HeskeyBaozi/pagination/languages","stargazers_url":"https://api.github.com/repos/HeskeyBaozi/pagination/stargazers","contributors_url":"https://api.github.com/repos/HeskeyBaozi/pagination/contributors","subscribers_url":"https://api.github.com/repos/HeskeyBaozi/pagination/subscribers","subscription_url":"https://api.github.com/repos/HeskeyBaozi/pagination/subscription","commits_url":"https://api.github.com/repos/HeskeyBaozi/pagination/commits{/sha}","git_commits_url":"https://api.github.com/repos/HeskeyBaozi/pagination/git/commits{/sha}","comments_url":"https://api.github.com/repos/HeskeyBaozi/pagination/comments{/number}","issue_comment_url":"https://api.github.com/repos/HeskeyBaozi/pagination/issues/comments{/number}","contents_url":"https://api.github.com/repos/HeskeyBaozi/pagination/contents/{+path}","compare_url":"https://api.github.com/repos/HeskeyBaozi/pagination/compare/{base}...{head}","merges_url":"https://api.github.com/repos/HeskeyBaozi/pagination/merges","archive_url":"https://api.github.com/repos/HeskeyBaozi/pagination/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/HeskeyBaozi/pagination/downloads","issues_url":"https://api.github.com/repos/HeskeyBaozi/pagination/issues{/number}","pulls_url":"https://api.github.com/repos/HeskeyBaozi/pagination/pulls{/number}","milestones_url":"https://api.github.com/repos/HeskeyBaozi/pagination/milestones{/number}","notifications_url":"https://api.github.com/repos/HeskeyBaozi/pagination/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/HeskeyBaozi/pagination/labels{/name}","releases_url":"https://api.github.com/repos/HeskeyBaozi/pagination/releases{/id}","deployments_url":"https://api.github.com/repos/HeskeyBaozi/pagination/deployments","created_at":"2018-07-26T10:08:23Z","updated_at":"2018-08-13T11:55:45Z","pushed_at":"2018-08-13T11:55:42Z","git_url":"git://github.com/HeskeyBaozi/pagination.git","ssh_url":"git@github.com:HeskeyBaozi/pagination.git","clone_url":"https://github.com/HeskeyBaozi/pagination.git","svn_url":"https://github.com/HeskeyBaozi/pagination","homepage":"http://react-component.github.io/pagination/","size":6751,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"react-component:master","ref":"master","sha":"1ad91132b765399e5559f63d195a98a41e9386e6","user":{"login":"react-component","id":9441414,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk0NDE0MTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/9441414?v=4","gravatar_id":"","url":"https://api.github.com/users/react-component","html_url":"https://github.com/react-component","followers_url":"https://api.github.com/users/react-component/followers","following_url":"https://api.github.com/users/react-component/following{/other_user}","gists_url":"https://api.github.com/users/react-component/gists{/gist_id}","starred_url":"https://api.github.com/users/react-component/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/react-component/subscriptions","organizations_url":"https://api.github.com/users/react-component/orgs","repos_url":"https://api.github.com/users/react-component/repos","events_url":"https://api.github.com/users/react-component/events{/privacy}","received_events_url":"https://api.github.com/users/react-component/received_events","type":"Organization","site_admin":false},"repo":{"id":38832708,"node_id":"MDEwOlJlcG9zaXRvcnkzODgzMjcwOA==","name":"pagination","full_name":"react-component/pagination","owner":{"login":"react-component","id":9441414,"node_id":"MDEyOk9yZ2FuaXphdGlvbjk0NDE0MTQ=","avatar_url":"https://avatars0.githubusercontent.com/u/9441414?v=4","gravatar_id":"","url":"https://api.github.com/users/react-component","html_url":"https://github.com/react-component","followers_url":"https://api.github.com/users/react-component/followers","following_url":"https://api.github.com/users/react-component/following{/other_user}","gists_url":"https://api.github.com/users/react-component/gists{/gist_id}","starred_url":"https://api.github.com/users/react-component/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/react-component/subscriptions","organizations_url":"https://api.github.com/users/react-component/orgs","repos_url":"https://api.github.com/users/react-component/repos","events_url":"https://api.github.com/users/react-component/events{/privacy}","received_events_url":"https://api.github.com/users/react-component/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/react-component/pagination","description":"React Pagination","fork":false,"url":"https://api.github.com/repos/react-component/pagination","forks_url":"https://api.github.com/repos/react-component/pagination/forks","keys_url":"https://api.github.com/repos/react-component/pagination/keys{/key_id}","collaborators_url":"https://api.github.com/repos/react-component/pagination/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/react-component/pagination/teams","hooks_url":"https://api.github.com/repos/react-component/pagination/hooks","issue_events_url":"https://api.github.com/repos/react-component/pagination/issues/events{/number}","events_url":"https://api.github.com/repos/react-component/pagination/events","assignees_url":"https://api.github.com/repos/react-component/pagination/assignees{/user}","branches_url":"https://api.github.com/repos/react-component/pagination/branches{/branch}","tags_url":"https://api.github.com/repos/react-component/pagination/tags","blobs_url":"https://api.github.com/repos/react-component/pagination/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/react-component/pagination/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/react-component/pagination/git/refs{/sha}","trees_url":"https://api.github.com/repos/react-component/pagination/git/trees{/sha}","statuses_url":"https://api.github.com/repos/react-component/pagination/statuses/{sha}","languages_url":"https://api.github.com/repos/react-component/pagination/languages","stargazers_url":"https://api.github.com/repos/react-component/pagination/stargazers","contributors_url":"https://api.github.com/repos/react-component/pagination/contributors","subscribers_url":"https://api.github.com/repos/react-component/pagination/subscribers","subscription_url":"https://api.github.com/repos/react-component/pagination/subscription","commits_url":"https://api.github.com/repos/react-component/pagination/commits{/sha}","git_commits_url":"https://api.github.com/repos/react-component/pagination/git/commits{/sha}","comments_url":"https://api.github.com/repos/react-component/pagination/comments{/number}","issue_comment_url":"https://api.github.com/repos/react-component/pagination/issues/comments{/number}","contents_url":"https://api.github.com/repos/react-component/pagination/contents/{+path}","compare_url":"https://api.github.com/repos/react-component/pagination/compare/{base}...{head}","merges_url":"https://api.github.com/repos/react-component/pagination/merges","archive_url":"https://api.github.com/repos/react-component/pagination/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/react-component/pagination/downloads","issues_url":"https://api.github.com/repos/react-component/pagination/issues{/number}","pulls_url":"https://api.github.com/repos/react-component/pagination/pulls{/number}","milestones_url":"https://api.github.com/repos/react-component/pagination/milestones{/number}","notifications_url":"https://api.github.com/repos/react-component/pagination/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/react-component/pagination/labels{/name}","releases_url":"https://api.github.com/repos/react-component/pagination/releases{/id}","deployments_url":"https://api.github.com/repos/react-component/pagination/deployments","created_at":"2015-07-09T16:39:00Z","updated_at":"2018-08-13T02:25:21Z","pushed_at":"2018-08-13T11:55:44Z","git_url":"git://github.com/react-component/pagination.git","ssh_url":"git@github.com:react-component/pagination.git","clone_url":"https://github.com/react-component/pagination.git","svn_url":"https://github.com/react-component/pagination","homepage":"http://react-component.github.io/pagination/","size":6725,"stargazers_count":255,"watchers_count":255,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":112,"mirror_url":null,"archived":false,"open_issues_count":7,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":112,"open_issues":7,"watchers":255,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/react-component/pagination/pulls/139"},"html":{"href":"https://github.com/react-component/pagination/pull/139"},"issue":{"href":"https://api.github.com/repos/react-component/pagination/issues/139"},"comments":{"href":"https://api.github.com/repos/react-component/pagination/issues/139/comments"},"review_comments":{"href":"https://api.github.com/repos/react-component/pagination/pulls/139/comments"},"review_comment":{"href":"https://api.github.com/repos/react-component/pagination/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/react-component/pagination/pulls/139/commits"},"statuses":{"href":"https://api.github.com/repos/react-component/pagination/statuses/b246c43ae307c0b3447915a87db999db9250d0a3"}},"author_association":"NONE"}}
{"actor":{"display_login":"yesmeck"}}