{"action":"created","issue":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/4558","repository_url":"https://api.github.com/repos/ant-design/ant-design","labels_url":"https://api.github.com/repos/ant-design/ant-design/issues/4558/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design/issues/4558/comments","events_url":"https://api.github.com/repos/ant-design/ant-design/issues/4558/events","html_url":"https://github.com/ant-design/ant-design/issues/4558","id":199825414,"number":4558,"title":"Tabs在map后的TabPane中，无法默认选中第一项BUG","user":{"login":"Liuqing650","id":22534368,"avatar_url":"https://avatars0.githubusercontent.com/u/22534368?v=4","gravatar_id":"","url":"https://api.github.com/users/Liuqing650","html_url":"https://github.com/Liuqing650","followers_url":"https://api.github.com/users/Liuqing650/followers","following_url":"https://api.github.com/users/Liuqing650/following{/other_user}","gists_url":"https://api.github.com/users/Liuqing650/gists{/gist_id}","starred_url":"https://api.github.com/users/Liuqing650/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Liuqing650/subscriptions","organizations_url":"https://api.github.com/users/Liuqing650/orgs","repos_url":"https://api.github.com/users/Liuqing650/repos","events_url":"https://api.github.com/users/Liuqing650/events{/privacy}","received_events_url":"https://api.github.com/users/Liuqing650/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"yesmeck","id":465125,"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},"assignees":[{"login":"yesmeck","id":465125,"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}],"milestone":null,"comments":7,"created_at":"2017-01-10T13:47:50Z","updated_at":"2018-05-29T04:57:14Z","closed_at":"2017-01-20T03:40:41Z","author_association":"NONE","body":"tabs组件直接return(  <Tabs defaultActiveKey=\"1\"> .... </Tabs> )没有问题， defaultActiveKey没有的时候也会默认选中第一个。当在\r\n```jsx\r\n         const TabPane = Tabs.TabPane;\r\n         const logTagTest = list.map((item) => {\r\n\t return <TabPane tab={item.name} key={item.id}>\r\n\t\t\t\t{item.value}\r\n\t\t\t</TabPane>\r\n\t}) \r\n\treturn (<Tabs > {logTagTest} </Tabs> )\r\n```\r\n页面就只有tab名了，不会默认选中第一个，看起来一片空白\r\n[问题效果图](http://123.207.100.248/mabylove/error/images/bug-tabs.png)\r\n不知道这算不算个BUG，或者是这样写很不规范吗？\r\ndefaultActiveKey在models中初始化值的时候如果给了值是可以出现指定选项内容的，但在reducers中给的值无效，只有初始化的值有效。也就是组件渲染出来只用了第一次获取的值，第二次的没用到，但是不指定同样没有效果。\r\n\r\n- antd version: ^2.5.3\r\n- dva: \"1.0.0\"\r\n- Browser and its version: chrome"},"comment":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/comments/392652795","html_url":"https://github.com/ant-design/ant-design/issues/4558#issuecomment-392652795","issue_url":"https://api.github.com/repos/ant-design/ant-design/issues/4558","id":392652795,"user":{"login":"lock[bot]","id":33595554,"avatar_url":"https://avatars1.githubusercontent.com/in/6672?v=4","gravatar_id":"","url":"https://api.github.com/users/lock%5Bbot%5D","html_url":"https://github.com/apps/lock","followers_url":"https://api.github.com/users/lock%5Bbot%5D/followers","following_url":"https://api.github.com/users/lock%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/lock%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/lock%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lock%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/lock%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/lock%5Bbot%5D/repos","events_url":"https://api.github.com/users/lock%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/lock%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-05-29T04:57:14Z","updated_at":"2018-05-29T04:57:14Z","author_association":"NONE","body":"This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.\n"}}
{"actor":{"display_login":"lock"}}