{"action":"created","comment":{"url":"https://api.github.com/repos/ant-design/ant-design/pulls/comments/65084435","id":65084435,"diff_hunk":"@@ -1,12 +1,20 @@\n ---\n order: 10\n-title: 获得选项的文本\n+title: \n+  zh-CN: 获得选项的文本\n+  en-US: Get value of selected item\n ---\n \n+## zh-CN\n 默认情况下 `onChange` 里只能拿到 value，如果需要拿到选中的节点文本 label，可以使用 `labelInValue` 属性。\n \n 选中项的 label 会被包装到 value 中传递给 `onChange` 等函数，此时 value 是一个对象。\n \n+## en-US\n+As a default behavior, `onChange` callback can only get value of selected item. For getting label property of selected item, you can use `labelInValue` props.\n+\n+Label of selected item will be packed as an object for passing to `onChange` callback.\n+","path":"components/select/demo/label-in-value.md","position":18,"original_position":18,"commit_id":"6a36a298f31d7bd1afd2f6dc633c8ca30fe01c1c","original_commit_id":"6a36a298f31d7bd1afd2f6dc633c8ca30fe01c1c","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},"body":"`label` of selected item will be inserted to augument `value` of `onChange` callback function.","created_at":"2016-05-30T15:16:50Z","updated_at":"2016-05-30T15:16:50Z","html_url":"https://github.com/ant-design/ant-design/pull/1899#discussion_r65084435","pull_request_url":"https://api.github.com/repos/ant-design/ant-design/pulls/1899","_links":{"self":{"href":"https://api.github.com/repos/ant-design/ant-design/pulls/comments/65084435"},"html":{"href":"https://github.com/ant-design/ant-design/pull/1899#discussion_r65084435"},"pull_request":{"href":"https://api.github.com/repos/ant-design/ant-design/pulls/1899"}}},"pull_request":{"url":"https://api.github.com/repos/ant-design/ant-design/pulls/1899","id":71853315,"html_url":"https://github.com/ant-design/ant-design/pull/1899","diff_url":"https://github.com/ant-design/ant-design/pull/1899.diff","patch_url":"https://github.com/ant-design/ant-design/pull/1899.patch","issue_url":"https://api.github.com/repos/ant-design/ant-design/issues/1899","number":1899,"state":"open","locked":false,"title":"I18n of Select","user":{"login":"RaoHai","id":566097,"avatar_url":"https://avatars.githubusercontent.com/u/566097?v=3","gravatar_id":"","url":"https://api.github.com/users/RaoHai","html_url":"https://github.com/RaoHai","followers_url":"https://api.github.com/users/RaoHai/followers","following_url":"https://api.github.com/users/RaoHai/following{/other_user}","gists_url":"https://api.github.com/users/RaoHai/gists{/gist_id}","starred_url":"https://api.github.com/users/RaoHai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RaoHai/subscriptions","organizations_url":"https://api.github.com/users/RaoHai/orgs","repos_url":"https://api.github.com/users/RaoHai/repos","events_url":"https://api.github.com/users/RaoHai/events{/privacy}","received_events_url":"https://api.github.com/users/RaoHai/received_events","type":"User","site_admin":false},"body":"i18n of select and demos","created_at":"2016-05-30T05:11:19Z","updated_at":"2016-05-30T15:16:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a381f737267c7b675c4bea13748e3e73b215534e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ant-design/ant-design/pulls/1899/commits","review_comments_url":"https://api.github.com/repos/ant-design/ant-design/pulls/1899/comments","review_comment_url":"https://api.github.com/repos/ant-design/ant-design/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ant-design/ant-design/issues/1899/comments","statuses_url":"https://api.github.com/repos/ant-design/ant-design/statuses/6a36a298f31d7bd1afd2f6dc633c8ca30fe01c1c","head":{"label":"RaoHai:SelectI18n","ref":"SelectI18n","sha":"6a36a298f31d7bd1afd2f6dc633c8ca30fe01c1c","user":{"login":"RaoHai","id":566097,"avatar_url":"https://avatars.githubusercontent.com/u/566097?v=3","gravatar_id":"","url":"https://api.github.com/users/RaoHai","html_url":"https://github.com/RaoHai","followers_url":"https://api.github.com/users/RaoHai/followers","following_url":"https://api.github.com/users/RaoHai/following{/other_user}","gists_url":"https://api.github.com/users/RaoHai/gists{/gist_id}","starred_url":"https://api.github.com/users/RaoHai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RaoHai/subscriptions","organizations_url":"https://api.github.com/users/RaoHai/orgs","repos_url":"https://api.github.com/users/RaoHai/repos","events_url":"https://api.github.com/users/RaoHai/events{/privacy}","received_events_url":"https://api.github.com/users/RaoHai/received_events","type":"User","site_admin":false},"repo":{"id":42709334,"name":"ant-design","full_name":"RaoHai/ant-design","owner":{"login":"RaoHai","id":566097,"avatar_url":"https://avatars.githubusercontent.com/u/566097?v=3","gravatar_id":"","url":"https://api.github.com/users/RaoHai","html_url":"https://github.com/RaoHai","followers_url":"https://api.github.com/users/RaoHai/followers","following_url":"https://api.github.com/users/RaoHai/following{/other_user}","gists_url":"https://api.github.com/users/RaoHai/gists{/gist_id}","starred_url":"https://api.github.com/users/RaoHai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RaoHai/subscriptions","organizations_url":"https://api.github.com/users/RaoHai/orgs","repos_url":"https://api.github.com/users/RaoHai/repos","events_url":"https://api.github.com/users/RaoHai/events{/privacy}","received_events_url":"https://api.github.com/users/RaoHai/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RaoHai/ant-design","description":"一个 UI 设计语言","fork":true,"url":"https://api.github.com/repos/RaoHai/ant-design","forks_url":"https://api.github.com/repos/RaoHai/ant-design/forks","keys_url":"https://api.github.com/repos/RaoHai/ant-design/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RaoHai/ant-design/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RaoHai/ant-design/teams","hooks_url":"https://api.github.com/repos/RaoHai/ant-design/hooks","issue_events_url":"https://api.github.com/repos/RaoHai/ant-design/issues/events{/number}","events_url":"https://api.github.com/repos/RaoHai/ant-design/events","assignees_url":"https://api.github.com/repos/RaoHai/ant-design/assignees{/user}","branches_url":"https://api.github.com/repos/RaoHai/ant-design/branches{/branch}","tags_url":"https://api.github.com/repos/RaoHai/ant-design/tags","blobs_url":"https://api.github.com/repos/RaoHai/ant-design/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RaoHai/ant-design/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RaoHai/ant-design/git/refs{/sha}","trees_url":"https://api.github.com/repos/RaoHai/ant-design/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RaoHai/ant-design/statuses/{sha}","languages_url":"https://api.github.com/repos/RaoHai/ant-design/languages","stargazers_url":"https://api.github.com/repos/RaoHai/ant-design/stargazers","contributors_url":"https://api.github.com/repos/RaoHai/ant-design/contributors","subscribers_url":"https://api.github.com/repos/RaoHai/ant-design/subscribers","subscription_url":"https://api.github.com/repos/RaoHai/ant-design/subscription","commits_url":"https://api.github.com/repos/RaoHai/ant-design/commits{/sha}","git_commits_url":"https://api.github.com/repos/RaoHai/ant-design/git/commits{/sha}","comments_url":"https://api.github.com/repos/RaoHai/ant-design/comments{/number}","issue_comment_url":"https://api.github.com/repos/RaoHai/ant-design/issues/comments{/number}","contents_url":"https://api.github.com/repos/RaoHai/ant-design/contents/{+path}","compare_url":"https://api.github.com/repos/RaoHai/ant-design/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RaoHai/ant-design/merges","archive_url":"https://api.github.com/repos/RaoHai/ant-design/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RaoHai/ant-design/downloads","issues_url":"https://api.github.com/repos/RaoHai/ant-design/issues{/number}","pulls_url":"https://api.github.com/repos/RaoHai/ant-design/pulls{/number}","milestones_url":"https://api.github.com/repos/RaoHai/ant-design/milestones{/number}","notifications_url":"https://api.github.com/repos/RaoHai/ant-design/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RaoHai/ant-design/labels{/name}","releases_url":"https://api.github.com/repos/RaoHai/ant-design/releases{/id}","deployments_url":"https://api.github.com/repos/RaoHai/ant-design/deployments","created_at":"2015-09-18T08:32:29Z","updated_at":"2016-01-28T02:56:04Z","pushed_at":"2016-05-30T09:02:32Z","git_url":"git://github.com/RaoHai/ant-design.git","ssh_url":"git@github.com:RaoHai/ant-design.git","clone_url":"https://github.com/RaoHai/ant-design.git","svn_url":"https://github.com/RaoHai/ant-design","homepage":"http://ant.design/","size":21612,"stargazers_count":0,"watchers_count":0,"language":"CSS","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ant-design:master","ref":"master","sha":"1a961f2adc584bab6e92a72c584ca3ee28406906","user":{"login":"ant-design","id":12101536,"avatar_url":"https://avatars.githubusercontent.com/u/12101536?v=3","gravatar_id":"","url":"https://api.github.com/users/ant-design","html_url":"https://github.com/ant-design","followers_url":"https://api.github.com/users/ant-design/followers","following_url":"https://api.github.com/users/ant-design/following{/other_user}","gists_url":"https://api.github.com/users/ant-design/gists{/gist_id}","starred_url":"https://api.github.com/users/ant-design/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ant-design/subscriptions","organizations_url":"https://api.github.com/users/ant-design/orgs","repos_url":"https://api.github.com/users/ant-design/repos","events_url":"https://api.github.com/users/ant-design/events{/privacy}","received_events_url":"https://api.github.com/users/ant-design/received_events","type":"Organization","site_admin":false},"repo":{"id":34526884,"name":"ant-design","full_name":"ant-design/ant-design","owner":{"login":"ant-design","id":12101536,"avatar_url":"https://avatars.githubusercontent.com/u/12101536?v=3","gravatar_id":"","url":"https://api.github.com/users/ant-design","html_url":"https://github.com/ant-design","followers_url":"https://api.github.com/users/ant-design/followers","following_url":"https://api.github.com/users/ant-design/following{/other_user}","gists_url":"https://api.github.com/users/ant-design/gists{/gist_id}","starred_url":"https://api.github.com/users/ant-design/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ant-design/subscriptions","organizations_url":"https://api.github.com/users/ant-design/orgs","repos_url":"https://api.github.com/users/ant-design/repos","events_url":"https://api.github.com/users/ant-design/events{/privacy}","received_events_url":"https://api.github.com/users/ant-design/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ant-design/ant-design","description":":ant: A design language","fork":false,"url":"https://api.github.com/repos/ant-design/ant-design","forks_url":"https://api.github.com/repos/ant-design/ant-design/forks","keys_url":"https://api.github.com/repos/ant-design/ant-design/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ant-design/ant-design/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ant-design/ant-design/teams","hooks_url":"https://api.github.com/repos/ant-design/ant-design/hooks","issue_events_url":"https://api.github.com/repos/ant-design/ant-design/issues/events{/number}","events_url":"https://api.github.com/repos/ant-design/ant-design/events","assignees_url":"https://api.github.com/repos/ant-design/ant-design/assignees{/user}","branches_url":"https://api.github.com/repos/ant-design/ant-design/branches{/branch}","tags_url":"https://api.github.com/repos/ant-design/ant-design/tags","blobs_url":"https://api.github.com/repos/ant-design/ant-design/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ant-design/ant-design/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ant-design/ant-design/git/refs{/sha}","trees_url":"https://api.github.com/repos/ant-design/ant-design/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ant-design/ant-design/statuses/{sha}","languages_url":"https://api.github.com/repos/ant-design/ant-design/languages","stargazers_url":"https://api.github.com/repos/ant-design/ant-design/stargazers","contributors_url":"https://api.github.com/repos/ant-design/ant-design/contributors","subscribers_url":"https://api.github.com/repos/ant-design/ant-design/subscribers","subscription_url":"https://api.github.com/repos/ant-design/ant-design/subscription","commits_url":"https://api.github.com/repos/ant-design/ant-design/commits{/sha}","git_commits_url":"https://api.github.com/repos/ant-design/ant-design/git/commits{/sha}","comments_url":"https://api.github.com/repos/ant-design/ant-design/comments{/number}","issue_comment_url":"https://api.github.com/repos/ant-design/ant-design/issues/comments{/number}","contents_url":"https://api.github.com/repos/ant-design/ant-design/contents/{+path}","compare_url":"https://api.github.com/repos/ant-design/ant-design/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ant-design/ant-design/merges","archive_url":"https://api.github.com/repos/ant-design/ant-design/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ant-design/ant-design/downloads","issues_url":"https://api.github.com/repos/ant-design/ant-design/issues{/number}","pulls_url":"https://api.github.com/repos/ant-design/ant-design/pulls{/number}","milestones_url":"https://api.github.com/repos/ant-design/ant-design/milestones{/number}","notifications_url":"https://api.github.com/repos/ant-design/ant-design/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ant-design/ant-design/labels{/name}","releases_url":"https://api.github.com/repos/ant-design/ant-design/releases{/id}","deployments_url":"https://api.github.com/repos/ant-design/ant-design/deployments","created_at":"2015-04-24T15:37:24Z","updated_at":"2016-05-30T10:34:26Z","pushed_at":"2016-05-30T11:54:05Z","git_url":"git://github.com/ant-design/ant-design.git","ssh_url":"git@github.com:ant-design/ant-design.git","clone_url":"https://github.com/ant-design/ant-design.git","svn_url":"https://github.com/ant-design/ant-design","homepage":"http://ant.design","size":82856,"stargazers_count":3976,"watchers_count":3976,"language":"CSS","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":681,"mirror_url":null,"open_issues_count":51,"forks":681,"open_issues":51,"watchers":3976,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ant-design/ant-design/pulls/1899"},"html":{"href":"https://github.com/ant-design/ant-design/pull/1899"},"issue":{"href":"https://api.github.com/repos/ant-design/ant-design/issues/1899"},"comments":{"href":"https://api.github.com/repos/ant-design/ant-design/issues/1899/comments"},"review_comments":{"href":"https://api.github.com/repos/ant-design/ant-design/pulls/1899/comments"},"review_comment":{"href":"https://api.github.com/repos/ant-design/ant-design/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ant-design/ant-design/pulls/1899/commits"},"statuses":{"href":"https://api.github.com/repos/ant-design/ant-design/statuses/6a36a298f31d7bd1afd2f6dc633c8ca30fe01c1c"}}}}
{"actor":{"display_login":"afc163"}}