{"action":"created","issue":{"url":"https://api.github.com/repos/ElemeFE/element/issues/647","repository_url":"https://api.github.com/repos/ElemeFE/element","labels_url":"https://api.github.com/repos/ElemeFE/element/issues/647/labels{/name}","comments_url":"https://api.github.com/repos/ElemeFE/element/issues/647/comments","events_url":"https://api.github.com/repos/ElemeFE/element/issues/647/events","html_url":"https://github.com/ElemeFE/element/issues/647","id":185274978,"number":647,"title":"checkbox-group和checkbox能支持值取值于value而不是label值吗？","user":{"login":"cnweibo","id":12495869,"avatar_url":"https://avatars.githubusercontent.com/u/12495869?v=3","gravatar_id":"","url":"https://api.github.com/users/cnweibo","html_url":"https://github.com/cnweibo","followers_url":"https://api.github.com/users/cnweibo/followers","following_url":"https://api.github.com/users/cnweibo/following{/other_user}","gists_url":"https://api.github.com/users/cnweibo/gists{/gist_id}","starred_url":"https://api.github.com/users/cnweibo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cnweibo/subscriptions","organizations_url":"https://api.github.com/users/cnweibo/orgs","repos_url":"https://api.github.com/users/cnweibo/repos","events_url":"https://api.github.com/users/cnweibo/events{/privacy}","received_events_url":"https://api.github.com/users/cnweibo/received_events","type":"User","site_admin":false},"labels":[{"id":435935243,"url":"https://api.github.com/repos/ElemeFE/element/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-10-26T01:30:53Z","updated_at":"2016-10-31T08:36:56Z","closed_at":null,"body":"有什么办法让checkbox和checkbox-group组件的model和value而不是label值绑定呢？\n你比如说下面的，我希望checkList的值是[0,2]这样的值，而不是[\"复选框A\"]这样的值\n\n```\n<checkbox-group v-model=\"checkList\">\n          <checkbox class=\"checkbox\" label=\"复选框 A\" value=\"0\"></checkbox>\n          <checkbox class=\"checkbox\" label=\"复选框 B\" value=\"1\"></checkbox>\n          <checkbox class=\"checkbox\" label=\"复选框 C\" value=\"2\"></checkbox>\n          <checkbox class=\"checkbox\" label=\"禁用\" disabled></checkbox>\n          <checkbox class=\"checkbox\" label=\"选中且禁用\" disabled></checkbox>\n</checkbox-group>\n```\n"},"comment":{"url":"https://api.github.com/repos/ElemeFE/element/issues/comments/257239221","html_url":"https://github.com/ElemeFE/element/issues/647#issuecomment-257239221","issue_url":"https://api.github.com/repos/ElemeFE/element/issues/647","id":257239221,"user":{"login":"baiyaaaaa","id":3655403,"avatar_url":"https://avatars.githubusercontent.com/u/3655403?v=3","gravatar_id":"","url":"https://api.github.com/users/baiyaaaaa","html_url":"https://github.com/baiyaaaaa","followers_url":"https://api.github.com/users/baiyaaaaa/followers","following_url":"https://api.github.com/users/baiyaaaaa/following{/other_user}","gists_url":"https://api.github.com/users/baiyaaaaa/gists{/gist_id}","starred_url":"https://api.github.com/users/baiyaaaaa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baiyaaaaa/subscriptions","organizations_url":"https://api.github.com/users/baiyaaaaa/orgs","repos_url":"https://api.github.com/users/baiyaaaaa/repos","events_url":"https://api.github.com/users/baiyaaaaa/events{/privacy}","received_events_url":"https://api.github.com/users/baiyaaaaa/received_events","type":"User","site_admin":false},"created_at":"2016-10-31T08:36:56Z","updated_at":"2016-10-31T08:36:56Z","body":"理论上来说，true-label 和 false-label 不应该使用在这种场景下。checkbox-group 应该是使用在对多个选项进行选择的情况，true-label 和 false-label 是对单个 checkbox 是否勾选传输绑定不同值的场景。"}}
{"actor":{"display_login":"baiyaaaaa"}}