{"action":"created","issue":{"url":"https://api.github.com/repos/ElemeFE/element/issues/13242","repository_url":"https://api.github.com/repos/ElemeFE/element","labels_url":"https://api.github.com/repos/ElemeFE/element/issues/13242/labels{/name}","comments_url":"https://api.github.com/repos/ElemeFE/element/issues/13242/comments","events_url":"https://api.github.com/repos/ElemeFE/element/issues/13242/events","html_url":"https://github.com/ElemeFE/element/issues/13242","id":375788696,"node_id":"MDU6SXNzdWUzNzU3ODg2OTY=","number":13242,"title":"[Bug Report] el-table under collapse component","user":{"login":"Eflet","id":17873441,"node_id":"MDQ6VXNlcjE3ODczNDQx","avatar_url":"https://avatars3.githubusercontent.com/u/17873441?v=4","gravatar_id":"","url":"https://api.github.com/users/Eflet","html_url":"https://github.com/Eflet","followers_url":"https://api.github.com/users/Eflet/followers","following_url":"https://api.github.com/users/Eflet/following{/other_user}","gists_url":"https://api.github.com/users/Eflet/gists{/gist_id}","starred_url":"https://api.github.com/users/Eflet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eflet/subscriptions","organizations_url":"https://api.github.com/users/Eflet/orgs","repos_url":"https://api.github.com/users/Eflet/repos","events_url":"https://api.github.com/users/Eflet/events{/privacy}","received_events_url":"https://api.github.com/users/Eflet/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2018-10-31T03:58:24Z","updated_at":"2018-11-01T06:42:52Z","closed_at":null,"author_association":"NONE","body":"<!-- generated by https://eleme-issue.surge.sh DO NOT REMOVE -->\r\n\r\n### Element UI version\r\n2.4.5\r\n\r\n### OS/Browsers version\r\nwindows10 / Chrome\r\n\r\n### Vue version\r\n2.5.16\r\n\r\n### Reproduction Link\r\n[https://jsfiddle.net/mmx38qxw/6765/](https://jsfiddle.net/mmx38qxw/6765/)\r\n\r\n### Steps to reproduce\r\ninsert an el-table into collapse component, then toggle the collapse\r\n\r\n### What is Expected?\r\n正常打开或者关闭动画\r\n\r\n### What is actually happening?\r\n在动画时候collapse content的高度会有个闪烁，table数据越多这个问题越严重。\r\n卡上去像是el-table会根据父容器计算自己的宽高，然后collapse动画的时候在不断的计算。\r\n\r\n<!-- generated by https://eleme-issue.surge.sh DO NOT REMOVE -->\r\n"},"comment":{"url":"https://api.github.com/repos/ElemeFE/element/issues/comments/434947429","html_url":"https://github.com/ElemeFE/element/issues/13242#issuecomment-434947429","issue_url":"https://api.github.com/repos/ElemeFE/element/issues/13242","id":434947429,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNDk0NzQyOQ==","user":{"login":"Eflet","id":17873441,"node_id":"MDQ6VXNlcjE3ODczNDQx","avatar_url":"https://avatars3.githubusercontent.com/u/17873441?v=4","gravatar_id":"","url":"https://api.github.com/users/Eflet","html_url":"https://github.com/Eflet","followers_url":"https://api.github.com/users/Eflet/followers","following_url":"https://api.github.com/users/Eflet/following{/other_user}","gists_url":"https://api.github.com/users/Eflet/gists{/gist_id}","starred_url":"https://api.github.com/users/Eflet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Eflet/subscriptions","organizations_url":"https://api.github.com/users/Eflet/orgs","repos_url":"https://api.github.com/users/Eflet/repos","events_url":"https://api.github.com/users/Eflet/events{/privacy}","received_events_url":"https://api.github.com/users/Eflet/received_events","type":"User","site_admin":false},"created_at":"2018-11-01T06:42:52Z","updated_at":"2018-11-01T06:42:52Z","author_association":"NONE","body":"> @Eflet 和数据量是没有关系的，动画结束的时候，高度会向上一些。只要collapse-item 里面存在scroll-top的高度大于0的元素，貌似就会出现你说的这种现象\r\n\r\n对这个就是高度计算问题，其实是collapse关闭的时候，高度变成0了，然后table监控了这个父元素，自己计算了一个高度，等下次collapse展开的时候，collapse首先获取内容高度，这时候获取的高度，是里面table根据父容器高度0计算出来的，肯定是不对的，等动画做完，父元素高度移除了，才重新计算了一遍恢复征程。\r\ntable数据越多，他计算高度时候的误差越大，我项目里面有时候甚至会collapse展开的时候展开了2倍高度，太晃眼了= ="}}
{"actor":{"display_login":"Eflet"}}