{"action":"created","issue":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/303","labels_url":"https://api.github.com/repos/ant-design/ant-design/issues/303/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design/issues/303/comments","events_url":"https://api.github.com/repos/ant-design/ant-design/issues/303/events","html_url":"https://github.com/ant-design/ant-design/issues/303","id":107429623,"number":303,"title":"Tree 树形控件能否添加让外部组件可以随时修改树的节点的选中状态的功能","user":{"login":"xu6658037","id":1472337,"avatar_url":"https://avatars.githubusercontent.com/u/1472337?v=3","gravatar_id":"","url":"https://api.github.com/users/xu6658037","html_url":"https://github.com/xu6658037","followers_url":"https://api.github.com/users/xu6658037/followers","following_url":"https://api.github.com/users/xu6658037/following{/other_user}","gists_url":"https://api.github.com/users/xu6658037/gists{/gist_id}","starred_url":"https://api.github.com/users/xu6658037/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xu6658037/subscriptions","organizations_url":"https://api.github.com/users/xu6658037/orgs","repos_url":"https://api.github.com/users/xu6658037/repos","events_url":"https://api.github.com/users/xu6658037/events{/privacy}","received_events_url":"https://api.github.com/users/xu6658037/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-09-21T01:33:02Z","updated_at":"2015-09-21T10:33:39Z","closed_at":null,"body":"例如可以在rc-tree组件的基础上添加这行代码，这样外部就可以通过传入defaultCheckedKeys值，随时更改树里面有哪些节点会被选中\r\n```javascript\r\ncomponentWillReceiveProps(nextprops){\r\n      const checkedKeys = nextprops.defaultCheckedKeys;\r\n      if(checkedKeys)\r\n        this.setState({checkedKeys:checkedKeys});\r\n  }"},"comment":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/comments/141936325","html_url":"https://github.com/ant-design/ant-design/issues/303#issuecomment-141936325","issue_url":"https://api.github.com/repos/ant-design/ant-design/issues/303","id":141936325,"user":{"login":"yiminghe","id":200876,"avatar_url":"https://avatars.githubusercontent.com/u/200876?v=3","gravatar_id":"","url":"https://api.github.com/users/yiminghe","html_url":"https://github.com/yiminghe","followers_url":"https://api.github.com/users/yiminghe/followers","following_url":"https://api.github.com/users/yiminghe/following{/other_user}","gists_url":"https://api.github.com/users/yiminghe/gists{/gist_id}","starred_url":"https://api.github.com/users/yiminghe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yiminghe/subscriptions","organizations_url":"https://api.github.com/users/yiminghe/orgs","repos_url":"https://api.github.com/users/yiminghe/repos","events_url":"https://api.github.com/users/yiminghe/events{/privacy}","received_events_url":"https://api.github.com/users/yiminghe/received_events","type":"User","site_admin":false},"created_at":"2015-09-21T10:33:39Z","updated_at":"2015-09-21T10:33:39Z","body":"@warmhug "}}