{"action":"created","issue":{"url":"https://api.github.com/repos/ElemeFE/element/issues/2555","repository_url":"https://api.github.com/repos/ElemeFE/element","labels_url":"https://api.github.com/repos/ElemeFE/element/issues/2555/labels{/name}","comments_url":"https://api.github.com/repos/ElemeFE/element/issues/2555/comments","events_url":"https://api.github.com/repos/ElemeFE/element/issues/2555/events","html_url":"https://github.com/ElemeFE/element/issues/2555","id":202298597,"number":2555,"title":"Table 组件内存泄漏","user":{"login":"whwei","id":2890565,"avatar_url":"https://avatars0.githubusercontent.com/u/2890565?v=3","gravatar_id":"","url":"https://api.github.com/users/whwei","html_url":"https://github.com/whwei","followers_url":"https://api.github.com/users/whwei/followers","following_url":"https://api.github.com/users/whwei/following{/other_user}","gists_url":"https://api.github.com/users/whwei/gists{/gist_id}","starred_url":"https://api.github.com/users/whwei/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/whwei/subscriptions","organizations_url":"https://api.github.com/users/whwei/orgs","repos_url":"https://api.github.com/users/whwei/repos","events_url":"https://api.github.com/users/whwei/events{/privacy}","received_events_url":"https://api.github.com/users/whwei/received_events","type":"User","site_admin":false},"labels":[{"id":475060668,"url":"https://api.github.com/repos/ElemeFE/element/labels/contribution%20welcome","name":"contribution welcome","color":"fef2c0","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2017-01-21T07:04:02Z","updated_at":"2017-06-16T09:30:34Z","closed_at":"2017-04-04T06:42:34Z","body":"<!--\r\n提交 issue 前请务必查看 FAQ：https://github.com/ElemeFE/element/blob/master/FAQ.md。如果你的问题可以在 FAQ 中找到解决方案，我们会直接关闭 issue。\r\n\r\nissue 仅用于提交 bug 或 feature 以及设计相关的内容，其它疑问请到 gitter 聊天室找社区里面的小伙伴聊一聊：https://gitter.im/ElemeFE/element\r\n\r\n有问题请提供 Demo 或者 GitHub 仓库地址，节省大家时间\r\n-->\r\n\r\n<!--\r\nIssues are exclusively for bug reports and feature requests. For other questions, please visit gitter: https://gitter.im/ElemeFE/element\r\n\r\nThank you for contributing! Please carefully read the following before opening your issue.\r\n -->\r\n\r\n### ElementUI version\r\n1.1.5\r\n\r\n### OS/Browers version\r\nmacOS/Chrome 55\r\n\r\n### Vue version\r\n2.1.10\r\n\r\n### Reproduction Link\r\n[https://github.com/whwei/element-ui-table-component-memory-leak-demo](https://github.com/whwei/element-ui-table-component-memory-leak-demo)\r\n\r\n### Steps to reproduce\r\n1. 打开 `index.html`，页面渲染第一个table\r\n1. 点击 `toggle` 按钮显示第二个空的table\r\n1. 再次点击 `toggle` 按钮重新显示第一个table\r\n1. repeat...\r\n\r\n### What is Expected?\r\n内存在适当的时候应该被释放\r\n\r\n### What is actually happening?\r\n每次toggle，内存占用持续上升，最后导致页面变慢卡死\r\n"},"comment":{"url":"https://api.github.com/repos/ElemeFE/element/issues/comments/308979621","html_url":"https://github.com/ElemeFE/element/issues/2555#issuecomment-308979621","issue_url":"https://api.github.com/repos/ElemeFE/element/issues/2555","id":308979621,"user":{"login":"a7270102","id":18033256,"avatar_url":"https://avatars1.githubusercontent.com/u/18033256?v=3","gravatar_id":"","url":"https://api.github.com/users/a7270102","html_url":"https://github.com/a7270102","followers_url":"https://api.github.com/users/a7270102/followers","following_url":"https://api.github.com/users/a7270102/following{/other_user}","gists_url":"https://api.github.com/users/a7270102/gists{/gist_id}","starred_url":"https://api.github.com/users/a7270102/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/a7270102/subscriptions","organizations_url":"https://api.github.com/users/a7270102/orgs","repos_url":"https://api.github.com/users/a7270102/repos","events_url":"https://api.github.com/users/a7270102/events{/privacy}","received_events_url":"https://api.github.com/users/a7270102/received_events","type":"User","site_admin":false},"created_at":"2017-06-16T09:30:34Z","updated_at":"2017-06-16T09:30:34Z","body":"我也碰到了组件泄漏的问题;场景： A,B页面 通过路由切换视图， 如A-->B.   B页面上使用原生html 构造template，再返回A后，经过CG，内存会和刚开始在A时一样； 若使用EL组件 构造template,返回A后，内存不会释放，经过谷歌的开发者工具查看内存快照对比，很明显有dom未被释放刚好对应el组件； 建议去尝试复现一下"}}
{"actor":{"display_login":"a7270102"}}