{"action":"created","comment":{"url":"https://api.github.com/repos/ant-design/ant-design/pulls/comments/213193923","pull_request_review_id":149977319,"id":213193923,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIxMzE5MzkyMw==","diff_hunk":"@@ -0,0 +1,51 @@\n+import * as React from 'react';\n+import Icon from '../icon';\n+import ScrollableInkTabBar from 'rc-tabs/lib/ScrollableInkTabBar';\n+import { TabsProps } from './index';\n+\n+export default class TabBar extends React.Component<TabsProps> {\n+  render() {\n+    const {\n+      tabBarStyle,\n+      animated = true,\n+      renderTabBar,\n+      tabBarExtraContent,\n+      tabPosition,\n+      prefixCls,\n+    } = this.props;\n+    const inkBarAnimated = typeof animated === 'object' ? animated.inkBar : animated;\n+\n+    const isVertical = tabPosition === 'left' || tabPosition === 'right';\n+    const prevIconType = isVertical ? 'up' : 'left';\n+    const nextIconType = isVertical ? 'down' : 'right';\n+    const prevIcon = (\n+      <span className={`${prefixCls}-tab-prev-icon`}>\n+        <Icon type={prevIconType} className={`${prefixCls}-tab-prev-icon-target`} />\n+      </span>\n+    );\n+    const nextIcon = (\n+      <span className={`${prefixCls}-tab-next-icon`}>\n+        <Icon type={nextIconType} className={`${prefixCls}-tab-next-icon-target`} />\n+      </span>\n+    );\n+\n+    const renderProps = {\n+      ...this.props,\n+      inkBarAnimated,\n+      extraContent: tabBarExtraContent,\n+      style: tabBarStyle,\n+      prevIcon,\n+      nextIcon,\n+    };\n+\n+    let RenderTabBar: React.ReactElement<any>;\n+\n+    if (renderTabBar) {\n+      RenderTabBar = renderTabBar(renderProps);","path":"components/tabs/TabBar.tsx","position":44,"original_position":44,"commit_id":"94d9e6d5cc2ae0b4fa58d6c400bfdf5444483982","original_commit_id":"94d9e6d5cc2ae0b4fa58d6c400bfdf5444483982","user":{"login":"afc163","id":507615,"node_id":"MDQ6VXNlcjUwNzYxNQ==","avatar_url":"https://avatars1.githubusercontent.com/u/507615?v=4","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},"body":"Tabs.DefaultTabBar 可以作为 renderTabBar 的一个参数传进去，这样就不用放在 Tabs 上了。","created_at":"2018-08-28T06:12:51Z","updated_at":"2018-08-28T06:12:51Z","html_url":"https://github.com/ant-design/ant-design/pull/11856#discussion_r213193923","pull_request_url":"https://api.github.com/repos/ant-design/ant-design/pulls/11856","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/ant-design/ant-design/pulls/comments/213193923"},"html":{"href":"https://github.com/ant-design/ant-design/pull/11856#discussion_r213193923"},"pull_request":{"href":"https://api.github.com/repos/ant-design/ant-design/pulls/11856"}}},"pull_request":{"url":"https://api.github.com/repos/ant-design/ant-design/pulls/11856","id":210318054,"node_id":"MDExOlB1bGxSZXF1ZXN0MjEwMzE4MDU0","html_url":"https://github.com/ant-design/ant-design/pull/11856","diff_url":"https://github.com/ant-design/ant-design/pull/11856.diff","patch_url":"https://github.com/ant-design/ant-design/pull/11856.patch","issue_url":"https://api.github.com/repos/ant-design/ant-design/issues/11856","number":11856,"state":"open","locked":false,"title":"feat: Tabs render tab bar","user":{"login":"mushan0x0","id":29084441,"node_id":"MDQ6VXNlcjI5MDg0NDQx","avatar_url":"https://avatars1.githubusercontent.com/u/29084441?v=4","gravatar_id":"","url":"https://api.github.com/users/mushan0x0","html_url":"https://github.com/mushan0x0","followers_url":"https://api.github.com/users/mushan0x0/followers","following_url":"https://api.github.com/users/mushan0x0/following{/other_user}","gists_url":"https://api.github.com/users/mushan0x0/gists{/gist_id}","starred_url":"https://api.github.com/users/mushan0x0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mushan0x0/subscriptions","organizations_url":"https://api.github.com/users/mushan0x0/orgs","repos_url":"https://api.github.com/users/mushan0x0/repos","events_url":"https://api.github.com/users/mushan0x0/events{/privacy}","received_events_url":"https://api.github.com/users/mushan0x0/received_events","type":"User","site_admin":false},"body":"* [x] Make sure that you propose PR to right branch: bugfix for `master`, feature for latest active branch `feature-x.x`.\r\n* [x] Make sure that you follow antd's [code convention](https://github.com/ant-design/ant-design/wiki/Code-convention-for-antd).\r\n* [x] Run `npm run lint` and fix those errors before submitting in order to keep consistent code style.\r\n* [x] Rebase before creating a PR to keep commit history clear.\r\n* [x] Add some descriptions and refer relative issues for you PR.\r\n\r\nExtra checklist:\r\n\r\n  * [x] Update API docs for the component.\r\n  * [x] Update/Add demo to demonstrate new feature.\r\n  * [x] Update TypeScript definition for the component.\r\n  * [x] Add unit tests for the feature.\r\n","created_at":"2018-08-23T03:04:22Z","updated_at":"2018-08-28T06:12:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3dcff4a58b7dbd9e40a5c760824150214e27736f","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/ant-design/ant-design/pulls/11856/commits","review_comments_url":"https://api.github.com/repos/ant-design/ant-design/pulls/11856/comments","review_comment_url":"https://api.github.com/repos/ant-design/ant-design/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ant-design/ant-design/issues/11856/comments","statuses_url":"https://api.github.com/repos/ant-design/ant-design/statuses/94d9e6d5cc2ae0b4fa58d6c400bfdf5444483982","head":{"label":"mushan0x0:tabs-renderTabBar","ref":"tabs-renderTabBar","sha":"94d9e6d5cc2ae0b4fa58d6c400bfdf5444483982","user":{"login":"mushan0x0","id":29084441,"node_id":"MDQ6VXNlcjI5MDg0NDQx","avatar_url":"https://avatars1.githubusercontent.com/u/29084441?v=4","gravatar_id":"","url":"https://api.github.com/users/mushan0x0","html_url":"https://github.com/mushan0x0","followers_url":"https://api.github.com/users/mushan0x0/followers","following_url":"https://api.github.com/users/mushan0x0/following{/other_user}","gists_url":"https://api.github.com/users/mushan0x0/gists{/gist_id}","starred_url":"https://api.github.com/users/mushan0x0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mushan0x0/subscriptions","organizations_url":"https://api.github.com/users/mushan0x0/orgs","repos_url":"https://api.github.com/users/mushan0x0/repos","events_url":"https://api.github.com/users/mushan0x0/events{/privacy}","received_events_url":"https://api.github.com/users/mushan0x0/received_events","type":"User","site_admin":false},"repo":{"id":145639283,"node_id":"MDEwOlJlcG9zaXRvcnkxNDU2MzkyODM=","name":"ant-design","full_name":"mushan0x0/ant-design","owner":{"login":"mushan0x0","id":29084441,"node_id":"MDQ6VXNlcjI5MDg0NDQx","avatar_url":"https://avatars1.githubusercontent.com/u/29084441?v=4","gravatar_id":"","url":"https://api.github.com/users/mushan0x0","html_url":"https://github.com/mushan0x0","followers_url":"https://api.github.com/users/mushan0x0/followers","following_url":"https://api.github.com/users/mushan0x0/following{/other_user}","gists_url":"https://api.github.com/users/mushan0x0/gists{/gist_id}","starred_url":"https://api.github.com/users/mushan0x0/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mushan0x0/subscriptions","organizations_url":"https://api.github.com/users/mushan0x0/orgs","repos_url":"https://api.github.com/users/mushan0x0/repos","events_url":"https://api.github.com/users/mushan0x0/events{/privacy}","received_events_url":"https://api.github.com/users/mushan0x0/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/mushan0x0/ant-design","description":"🐜 A UI Design Language","fork":true,"url":"https://api.github.com/repos/mushan0x0/ant-design","forks_url":"https://api.github.com/repos/mushan0x0/ant-design/forks","keys_url":"https://api.github.com/repos/mushan0x0/ant-design/keys{/key_id}","collaborators_url":"https://api.github.com/repos/mushan0x0/ant-design/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/mushan0x0/ant-design/teams","hooks_url":"https://api.github.com/repos/mushan0x0/ant-design/hooks","issue_events_url":"https://api.github.com/repos/mushan0x0/ant-design/issues/events{/number}","events_url":"https://api.github.com/repos/mushan0x0/ant-design/events","assignees_url":"https://api.github.com/repos/mushan0x0/ant-design/assignees{/user}","branches_url":"https://api.github.com/repos/mushan0x0/ant-design/branches{/branch}","tags_url":"https://api.github.com/repos/mushan0x0/ant-design/tags","blobs_url":"https://api.github.com/repos/mushan0x0/ant-design/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/mushan0x0/ant-design/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/mushan0x0/ant-design/git/refs{/sha}","trees_url":"https://api.github.com/repos/mushan0x0/ant-design/git/trees{/sha}","statuses_url":"https://api.github.com/repos/mushan0x0/ant-design/statuses/{sha}","languages_url":"https://api.github.com/repos/mushan0x0/ant-design/languages","stargazers_url":"https://api.github.com/repos/mushan0x0/ant-design/stargazers","contributors_url":"https://api.github.com/repos/mushan0x0/ant-design/contributors","subscribers_url":"https://api.github.com/repos/mushan0x0/ant-design/subscribers","subscription_url":"https://api.github.com/repos/mushan0x0/ant-design/subscription","commits_url":"https://api.github.com/repos/mushan0x0/ant-design/commits{/sha}","git_commits_url":"https://api.github.com/repos/mushan0x0/ant-design/git/commits{/sha}","comments_url":"https://api.github.com/repos/mushan0x0/ant-design/comments{/number}","issue_comment_url":"https://api.github.com/repos/mushan0x0/ant-design/issues/comments{/number}","contents_url":"https://api.github.com/repos/mushan0x0/ant-design/contents/{+path}","compare_url":"https://api.github.com/repos/mushan0x0/ant-design/compare/{base}...{head}","merges_url":"https://api.github.com/repos/mushan0x0/ant-design/merges","archive_url":"https://api.github.com/repos/mushan0x0/ant-design/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/mushan0x0/ant-design/downloads","issues_url":"https://api.github.com/repos/mushan0x0/ant-design/issues{/number}","pulls_url":"https://api.github.com/repos/mushan0x0/ant-design/pulls{/number}","milestones_url":"https://api.github.com/repos/mushan0x0/ant-design/milestones{/number}","notifications_url":"https://api.github.com/repos/mushan0x0/ant-design/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/mushan0x0/ant-design/labels{/name}","releases_url":"https://api.github.com/repos/mushan0x0/ant-design/releases{/id}","deployments_url":"https://api.github.com/repos/mushan0x0/ant-design/deployments","created_at":"2018-08-22T01:30:12Z","updated_at":"2018-08-26T02:59:19Z","pushed_at":"2018-08-28T01:05:25Z","git_url":"git://github.com/mushan0x0/ant-design.git","ssh_url":"git@github.com:mushan0x0/ant-design.git","clone_url":"https://github.com/mushan0x0/ant-design.git","svn_url":"https://github.com/mushan0x0/ant-design","homepage":"http://ant.design","size":267189,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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":"ant-design:feature-3.9.0","ref":"feature-3.9.0","sha":"5c26ce69c2fb1af2d994cfccc5168cc828c10ee9","user":{"login":"ant-design","id":12101536,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyMTAxNTM2","avatar_url":"https://avatars3.githubusercontent.com/u/12101536?v=4","gravatar_id":"","url":"https://api.github.com/users/ant-design","html_url":"https://github.com/ant-design","followers_url":"https://api.github.com/users/ant-design/followers","following_url":"https://api.github.com/users/ant-design/following{/other_user}","gists_url":"https://api.github.com/users/ant-design/gists{/gist_id}","starred_url":"https://api.github.com/users/ant-design/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ant-design/subscriptions","organizations_url":"https://api.github.com/users/ant-design/orgs","repos_url":"https://api.github.com/users/ant-design/repos","events_url":"https://api.github.com/users/ant-design/events{/privacy}","received_events_url":"https://api.github.com/users/ant-design/received_events","type":"Organization","site_admin":false},"repo":{"id":34526884,"node_id":"MDEwOlJlcG9zaXRvcnkzNDUyNjg4NA==","name":"ant-design","full_name":"ant-design/ant-design","owner":{"login":"ant-design","id":12101536,"node_id":"MDEyOk9yZ2FuaXphdGlvbjEyMTAxNTM2","avatar_url":"https://avatars3.githubusercontent.com/u/12101536?v=4","gravatar_id":"","url":"https://api.github.com/users/ant-design","html_url":"https://github.com/ant-design","followers_url":"https://api.github.com/users/ant-design/followers","following_url":"https://api.github.com/users/ant-design/following{/other_user}","gists_url":"https://api.github.com/users/ant-design/gists{/gist_id}","starred_url":"https://api.github.com/users/ant-design/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ant-design/subscriptions","organizations_url":"https://api.github.com/users/ant-design/orgs","repos_url":"https://api.github.com/users/ant-design/repos","events_url":"https://api.github.com/users/ant-design/events{/privacy}","received_events_url":"https://api.github.com/users/ant-design/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ant-design/ant-design","description":"🐜 A UI Design Language","fork":false,"url":"https://api.github.com/repos/ant-design/ant-design","forks_url":"https://api.github.com/repos/ant-design/ant-design/forks","keys_url":"https://api.github.com/repos/ant-design/ant-design/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ant-design/ant-design/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ant-design/ant-design/teams","hooks_url":"https://api.github.com/repos/ant-design/ant-design/hooks","issue_events_url":"https://api.github.com/repos/ant-design/ant-design/issues/events{/number}","events_url":"https://api.github.com/repos/ant-design/ant-design/events","assignees_url":"https://api.github.com/repos/ant-design/ant-design/assignees{/user}","branches_url":"https://api.github.com/repos/ant-design/ant-design/branches{/branch}","tags_url":"https://api.github.com/repos/ant-design/ant-design/tags","blobs_url":"https://api.github.com/repos/ant-design/ant-design/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ant-design/ant-design/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ant-design/ant-design/git/refs{/sha}","trees_url":"https://api.github.com/repos/ant-design/ant-design/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ant-design/ant-design/statuses/{sha}","languages_url":"https://api.github.com/repos/ant-design/ant-design/languages","stargazers_url":"https://api.github.com/repos/ant-design/ant-design/stargazers","contributors_url":"https://api.github.com/repos/ant-design/ant-design/contributors","subscribers_url":"https://api.github.com/repos/ant-design/ant-design/subscribers","subscription_url":"https://api.github.com/repos/ant-design/ant-design/subscription","commits_url":"https://api.github.com/repos/ant-design/ant-design/commits{/sha}","git_commits_url":"https://api.github.com/repos/ant-design/ant-design/git/commits{/sha}","comments_url":"https://api.github.com/repos/ant-design/ant-design/comments{/number}","issue_comment_url":"https://api.github.com/repos/ant-design/ant-design/issues/comments{/number}","contents_url":"https://api.github.com/repos/ant-design/ant-design/contents/{+path}","compare_url":"https://api.github.com/repos/ant-design/ant-design/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ant-design/ant-design/merges","archive_url":"https://api.github.com/repos/ant-design/ant-design/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ant-design/ant-design/downloads","issues_url":"https://api.github.com/repos/ant-design/ant-design/issues{/number}","pulls_url":"https://api.github.com/repos/ant-design/ant-design/pulls{/number}","milestones_url":"https://api.github.com/repos/ant-design/ant-design/milestones{/number}","notifications_url":"https://api.github.com/repos/ant-design/ant-design/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ant-design/ant-design/labels{/name}","releases_url":"https://api.github.com/repos/ant-design/ant-design/releases{/id}","deployments_url":"https://api.github.com/repos/ant-design/ant-design/deployments","created_at":"2015-04-24T15:37:24Z","updated_at":"2018-08-28T06:08:57Z","pushed_at":"2018-08-28T03:36:00Z","git_url":"git://github.com/ant-design/ant-design.git","ssh_url":"git@github.com:ant-design/ant-design.git","clone_url":"https://github.com/ant-design/ant-design.git","svn_url":"https://github.com/ant-design/ant-design","homepage":"https://ant.design","size":268876,"stargazers_count":32698,"watchers_count":32698,"language":"TypeScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":10503,"mirror_url":null,"archived":false,"open_issues_count":294,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit","node_id":"MDc6TGljZW5zZTEz"},"forks":10503,"open_issues":294,"watchers":32698,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ant-design/ant-design/pulls/11856"},"html":{"href":"https://github.com/ant-design/ant-design/pull/11856"},"issue":{"href":"https://api.github.com/repos/ant-design/ant-design/issues/11856"},"comments":{"href":"https://api.github.com/repos/ant-design/ant-design/issues/11856/comments"},"review_comments":{"href":"https://api.github.com/repos/ant-design/ant-design/pulls/11856/comments"},"review_comment":{"href":"https://api.github.com/repos/ant-design/ant-design/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ant-design/ant-design/pulls/11856/commits"},"statuses":{"href":"https://api.github.com/repos/ant-design/ant-design/statuses/94d9e6d5cc2ae0b4fa58d6c400bfdf5444483982"}},"author_association":"NONE"}}
{"actor":{"display_login":"afc163"}}