{"action":"created","issue":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/2523","repository_url":"https://api.github.com/repos/ant-design/ant-design","labels_url":"https://api.github.com/repos/ant-design/ant-design/issues/2523/labels{/name}","comments_url":"https://api.github.com/repos/ant-design/ant-design/issues/2523/comments","events_url":"https://api.github.com/repos/ant-design/ant-design/issues/2523/events","html_url":"https://github.com/ant-design/ant-design/issues/2523","id":168004257,"number":2523,"title":"TreeSelect 无法禁止选中某个树节点","user":{"login":"justnull","id":724861,"avatar_url":"https://avatars.githubusercontent.com/u/724861?v=3","gravatar_id":"","url":"https://api.github.com/users/justnull","html_url":"https://github.com/justnull","followers_url":"https://api.github.com/users/justnull/followers","following_url":"https://api.github.com/users/justnull/following{/other_user}","gists_url":"https://api.github.com/users/justnull/gists{/gist_id}","starred_url":"https://api.github.com/users/justnull/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/justnull/subscriptions","organizations_url":"https://api.github.com/users/justnull/orgs","repos_url":"https://api.github.com/users/justnull/repos","events_url":"https://api.github.com/users/justnull/events{/privacy}","received_events_url":"https://api.github.com/users/justnull/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"warmhug","id":2011119,"avatar_url":"https://avatars.githubusercontent.com/u/2011119?v=3","gravatar_id":"","url":"https://api.github.com/users/warmhug","html_url":"https://github.com/warmhug","followers_url":"https://api.github.com/users/warmhug/followers","following_url":"https://api.github.com/users/warmhug/following{/other_user}","gists_url":"https://api.github.com/users/warmhug/gists{/gist_id}","starred_url":"https://api.github.com/users/warmhug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/warmhug/subscriptions","organizations_url":"https://api.github.com/users/warmhug/orgs","repos_url":"https://api.github.com/users/warmhug/repos","events_url":"https://api.github.com/users/warmhug/events{/privacy}","received_events_url":"https://api.github.com/users/warmhug/received_events","type":"User","site_admin":false},"assignees":[{"login":"warmhug","id":2011119,"avatar_url":"https://avatars.githubusercontent.com/u/2011119?v=3","gravatar_id":"","url":"https://api.github.com/users/warmhug","html_url":"https://github.com/warmhug","followers_url":"https://api.github.com/users/warmhug/followers","following_url":"https://api.github.com/users/warmhug/following{/other_user}","gists_url":"https://api.github.com/users/warmhug/gists{/gist_id}","starred_url":"https://api.github.com/users/warmhug/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/warmhug/subscriptions","organizations_url":"https://api.github.com/users/warmhug/orgs","repos_url":"https://api.github.com/users/warmhug/repos","events_url":"https://api.github.com/users/warmhug/events{/privacy}","received_events_url":"https://api.github.com/users/warmhug/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-07-28T03:04:52Z","updated_at":"2016-07-28T08:52:45Z","closed_at":"2016-07-28T08:52:45Z","body":"- antd 版本: ^0.12.17\r\n- 操作系统及其版本：win7 x64\r\n- 浏览器及其版本:chrome\r\n\r\n\r\n\r\n<!-- 引入 antd 了 TreeSelect -->\r\n\r\n#### 你期待的结果是：\r\n\r\n可以禁止点击某个树节点\r\n\r\n#### 实际上的结果：\r\n\r\n没有效果。\r\n\r\n#### 可重现的在线演示\r\n ```\r\nvar treeSelectData =[ {\r\n  label: '节点',\r\n  value: '0-1',\r\n  key: '0-1',\r\n},{\r\n  label: '分类',\r\n  value: '0-0',\r\n  disabled: true,\r\n  key: '0-0',\r\n  children: [{\r\n    label: '节点1',\r\n    value: '0-0-1',\r\n    key: '0-0-1',\r\n  }, {\r\n    label: '节点2',\r\n    value: '0-0-2',\r\n    key: '0-0-2',\r\n  }],\r\n}];\r\n<TreeSelect style={{ width: 200 }}\r\n                          value={this.state.keyType}\r\n                          dropdownStyle={{ maxHeight: 400, overflow: 'auto' }}\r\n                          treeData={treeSelectData}\r\n                          placeholder=\"请选择\"\r\n                          treeDefaultExpandAll\r\n                          onChange={this.onChangeKeyType}>\r\n                        </TreeSelect>```\r\n"},"comment":{"url":"https://api.github.com/repos/ant-design/ant-design/issues/comments/235837711","html_url":"https://github.com/ant-design/ant-design/issues/2523#issuecomment-235837711","issue_url":"https://api.github.com/repos/ant-design/ant-design/issues/2523","id":235837711,"user":{"login":"afc163","id":507615,"avatar_url":"https://avatars.githubusercontent.com/u/507615?v=3","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},"created_at":"2016-07-28T08:52:45Z","updated_at":"2016-07-28T08:52:45Z","body":"This is fixed in https://github.com/ant-design/ant-design/issues/1823\r\n\r\n0.12 的 antd 早就不维护了，也不支持这个功能的，尽快升级吧。"}}
{"actor":{"display_login":"afc163"}}