{"action":"created","issue":{"url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/3045","repository_url":"https://api.github.com/repos/ant-design/ant-design-pro","labels_url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/3045/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/3045/comments","events_url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/3045/events","html_url":"https://github.com/ant-design/ant-design-pro/issues/3045","id":386751663,"node_id":"MDU6SXNzdWUzODY3NTE2NjM=","number":3045,"title":"在layout中通过cloneElement给props.children传递参数，children中获取为undefined","user":{"login":"freedomljt","id":3245574,"node_id":"MDQ6VXNlcjMyNDU1NzQ=","avatar_url":"https://avatars0.githubusercontent.com/u/3245574?v=4","gravatar_id":"","url":"https://api.github.com/users/freedomljt","html_url":"https://github.com/freedomljt","followers_url":"https://api.github.com/users/freedomljt/followers","following_url":"https://api.github.com/users/freedomljt/following{/other_user}","gists_url":"https://api.github.com/users/freedomljt/gists{/gist_id}","starred_url":"https://api.github.com/users/freedomljt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freedomljt/subscriptions","organizations_url":"https://api.github.com/users/freedomljt/orgs","repos_url":"https://api.github.com/users/freedomljt/repos","events_url":"https://api.github.com/users/freedomljt/events{/privacy}","received_events_url":"https://api.github.com/users/freedomljt/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-12-03T10:29:06Z","updated_at":"2018-12-03T23:32:42Z","closed_at":"2018-12-03T11:43:10Z","author_association":"NONE","body":"React.Children.map(children, child => {\r\n      return React.cloneElement(\r\n        child,\r\n        null,\r\n        React.Children.map(child.props.children, c => {\r\n          return React.cloneElement(c, { test: 'test'});\r\n        } ),\r\n      );\r\n    });\r\n\r\n\r\n已经双层clone了，但是还是不能获取到传递进来的props；"},"comment":{"url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/comments/443911344","html_url":"https://github.com/ant-design/ant-design-pro/issues/3045#issuecomment-443911344","issue_url":"https://api.github.com/repos/ant-design/ant-design-pro/issues/3045","id":443911344,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MzkxMTM0NA==","user":{"login":"freedomljt","id":3245574,"node_id":"MDQ6VXNlcjMyNDU1NzQ=","avatar_url":"https://avatars0.githubusercontent.com/u/3245574?v=4","gravatar_id":"","url":"https://api.github.com/users/freedomljt","html_url":"https://github.com/freedomljt","followers_url":"https://api.github.com/users/freedomljt/followers","following_url":"https://api.github.com/users/freedomljt/following{/other_user}","gists_url":"https://api.github.com/users/freedomljt/gists{/gist_id}","starred_url":"https://api.github.com/users/freedomljt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/freedomljt/subscriptions","organizations_url":"https://api.github.com/users/freedomljt/orgs","repos_url":"https://api.github.com/users/freedomljt/repos","events_url":"https://api.github.com/users/freedomljt/events{/privacy}","received_events_url":"https://api.github.com/users/freedomljt/received_events","type":"User","site_admin":false},"created_at":"2018-12-03T23:32:42Z","updated_at":"2018-12-03T23:32:42Z","author_association":"NONE","body":"如果需要在比较深的路由中获取clonrelement进去的参数，从开始路由到目标路由每一个都要用一次cloneelement两次的形式来渲染children，才能正常获取"}}
{"actor":{"display_login":"freedomljt"}}