{"action":"created","issue":{"url":"https://api.github.com/repos/FEMessage/el-data-table/issues/276","repository_url":"https://api.github.com/repos/FEMessage/el-data-table","labels_url":"https://api.github.com/repos/FEMessage/el-data-table/issues/276/labels{/name}","comments_url":"https://api.github.com/repos/FEMessage/el-data-table/issues/276/comments","events_url":"https://api.github.com/repos/FEMessage/el-data-table/issues/276/events","html_url":"https://github.com/FEMessage/el-data-table/pull/276","id":548034224,"node_id":"MDExOlB1bGxSZXF1ZXN0MzYxNDEzMTEx","number":276,"title":"feat: 新增表格单选","user":{"login":"Jack-rainbow","id":20368037,"node_id":"MDQ6VXNlcjIwMzY4MDM3","avatar_url":"https://avatars1.githubusercontent.com/u/20368037?v=4","gravatar_id":"","url":"https://api.github.com/users/Jack-rainbow","html_url":"https://github.com/Jack-rainbow","followers_url":"https://api.github.com/users/Jack-rainbow/followers","following_url":"https://api.github.com/users/Jack-rainbow/following{/other_user}","gists_url":"https://api.github.com/users/Jack-rainbow/gists{/gist_id}","starred_url":"https://api.github.com/users/Jack-rainbow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Jack-rainbow/subscriptions","organizations_url":"https://api.github.com/users/Jack-rainbow/orgs","repos_url":"https://api.github.com/users/Jack-rainbow/repos","events_url":"https://api.github.com/users/Jack-rainbow/events{/privacy}","received_events_url":"https://api.github.com/users/Jack-rainbow/received_events","type":"User","site_admin":false},"labels":[{"id":955979076,"node_id":"MDU6TGFiZWw5NTU5NzkwNzY=","url":"https://api.github.com/repos/FEMessage/el-data-table/labels/enhancement","name":"enhancement","color":"a2eeef","default":true,"description":"New feature or request"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2020-01-10T11:43:51Z","updated_at":"2020-01-10T11:45:16Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/FEMessage/el-data-table/pulls/276","html_url":"https://github.com/FEMessage/el-data-table/pull/276","diff_url":"https://github.com/FEMessage/el-data-table/pull/276.diff","patch_url":"https://github.com/FEMessage/el-data-table/pull/276.patch"},"body":"## 为什么提PR？\r\n因为当前table不支持单选，故提出来\r\n## 尝试方法\r\n如果自己实现呢？如果自己实现，需要写大量的代码。虽然可以实现，但是如果包含很多溢出隐藏及显示Tooltip呢，那么代码写的特别臃肿。那么利用循环呢？不同宽度呢？依然臃肿。\r\n``` js\r\n\r\n<el-table\r\n  :data=\"[]\"\r\n >\r\n  <el-table-column label=\"\" width=\"50\">\r\n     <template slot-scope=\"scope\">\r\n            <el-radio v-model=\"tableRadio\" :label=\"scope.row\" ><i></i\r\n       ></el-radio>\r\n     </template>\r\n   </el-table-column>\r\n   <el-table-column prop=\"name\" label=\"名称\"/> \r\n   <el-table-column prop=\"sex\" label=\"性别\"/>\r\n</el-table>\r\n````\r\n\r\n## 文档\r\nhas-radio-select.md\r\n\r\n## 解决问题\r\n\r\n在项目中很多表格需要单选，且提出这个pr\r\n\r\n## 使用场景\r\n\r\n- 表格进行单选\r\n\r\n## 测试\r\n\r\n##### 单选\r\n![has-radio-select](https://s2.ax1x.com/2020/01/10/l4kAZF.gif)\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/FEMessage/el-data-table/issues/comments/573004212","html_url":"https://github.com/FEMessage/el-data-table/pull/276#issuecomment-573004212","issue_url":"https://api.github.com/repos/FEMessage/el-data-table/issues/276","id":573004212,"node_id":"MDEyOklzc3VlQ29tbWVudDU3MzAwNDIxMg==","user":{"login":"netlify[bot]","id":40209326,"node_id":"MDM6Qm90NDAyMDkzMjY=","avatar_url":"https://avatars3.githubusercontent.com/in/13473?v=4","gravatar_id":"","url":"https://api.github.com/users/netlify%5Bbot%5D","html_url":"https://github.com/apps/netlify","followers_url":"https://api.github.com/users/netlify%5Bbot%5D/followers","following_url":"https://api.github.com/users/netlify%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/netlify%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/netlify%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/netlify%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/netlify%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/netlify%5Bbot%5D/repos","events_url":"https://api.github.com/users/netlify%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/netlify%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2020-01-10T11:45:16Z","updated_at":"2020-01-10T11:45:16Z","author_association":"NONE","body":"Deploy preview for *el-data-table* ready!\n\nBuilt with commit 762befefda5056e4f2d5a6d7a1bbee392bdd3ed4\n\nhttps://deploy-preview-276--el-data-table.netlify.com"}}
{"actor":{"display_login":"netlify"}}