{"action":"closed","issue":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/2471","repository_url":"https://api.github.com/repos/ant-design/ant-design","labels_url":"https://api.github.com/repos/ant-design/ant-design/issues/2471/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design/issues/2471/comments","events_url":"https://api.github.com/repos/ant-design/ant-design/issues/2471/events","html_url":"https://github.com/ant-design/ant-design/issues/2471","id":167007328,"number":2471,"title":"Table 中展开功能需要key从1开始","user":{"login":"Witee","id":3724622,"avatar_url":"https://avatars.githubusercontent.com/u/3724622?v=3","gravatar_id":"","url":"https://api.github.com/users/Witee","html_url":"https://github.com/Witee","followers_url":"https://api.github.com/users/Witee/followers","following_url":"https://api.github.com/users/Witee/following{/other_user}","gists_url":"https://api.github.com/users/Witee/gists{/gist_id}","starred_url":"https://api.github.com/users/Witee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Witee/subscriptions","organizations_url":"https://api.github.com/users/Witee/orgs","repos_url":"https://api.github.com/users/Witee/repos","events_url":"https://api.github.com/users/Witee/events{/privacy}","received_events_url":"https://api.github.com/users/Witee/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-22T09:36:05Z","updated_at":"2016-07-24T07:39:52Z","closed_at":"2016-07-24T07:39:52Z","body":"import { Table } from 'antd';\r\n\r\nconst columns = [\r\n  { title: '姓名', dataIndex: 'name', key: 'name' },\r\n  { title: '年龄', dataIndex: 'age', key: 'age' },\r\n  { title: '住址', dataIndex: 'address', key: 'address' },\r\n  { title: '操作', dataIndex: '', key: 'x', render: () => <a href=\"#\">删除</a> },\r\n];\r\n\r\nconst data = [\r\n  { key: 1, name: '胡彦斌', age: 32, address: '西湖区湖底公园1号', description: '我是胡彦斌，今年32岁，住在西湖区湖底公园1号。' },\r\n  { key: 2, name: '吴彦祖', age: 42, address: '西湖区湖底公园2号', description: '我是吴彦祖，今年42岁，住在西湖区湖底公园2号。' },\r\n  { key: 3, name: '李大嘴', age: 32, address: '西湖区湖底公园3号', description: '我是李大嘴，今年32岁，住在西湖区湖底公园3号。' },\r\n];\r\n\r\nReactDOM.render(\r\n  <Table columns={columns}\r\n    expandedRowRender={record => <p>{record.description}</p>}\r\n    dataSource={data}\r\n    className=\"table\"\r\n  />\r\n, mountNode);\r\n\r\n\r\n以上是官方的例子，发现data的key从0开始写的话，0的那列点+号就无法展开，key+1就可以了，不影响使用，算不算个小的bug\r\n\r\n"}}
{"actor":{"display_login":"afc163"}}