{"action":"opened","issue":{"url":"https://api.github.com/repos/NervJS/taro/issues/942","repository_url":"https://api.github.com/repos/NervJS/taro","labels_url":"https://api.github.com/repos/NervJS/taro/issues/942/labels{/name}","comments_url":"https://api.github.com/repos/NervJS/taro/issues/942/comments","events_url":"https://api.github.com/repos/NervJS/taro/issues/942/events","html_url":"https://github.com/NervJS/taro/issues/942","id":374303446,"node_id":"MDU6SXNzdWUzNzQzMDM0NDY=","number":942,"title":"h5 下来回切换 Tabbar 时重复创建 DOM","user":{"login":"vimcaw","id":21964227,"node_id":"MDQ6VXNlcjIxOTY0MjI3","avatar_url":"https://avatars3.githubusercontent.com/u/21964227?v=4","gravatar_id":"","url":"https://api.github.com/users/vimcaw","html_url":"https://github.com/vimcaw","followers_url":"https://api.github.com/users/vimcaw/followers","following_url":"https://api.github.com/users/vimcaw/following{/other_user}","gists_url":"https://api.github.com/users/vimcaw/gists{/gist_id}","starred_url":"https://api.github.com/users/vimcaw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vimcaw/subscriptions","organizations_url":"https://api.github.com/users/vimcaw/orgs","repos_url":"https://api.github.com/users/vimcaw/repos","events_url":"https://api.github.com/users/vimcaw/events{/privacy}","received_events_url":"https://api.github.com/users/vimcaw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-10-26T09:36:43Z","updated_at":"2018-10-26T09:36:43Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"**问题描述**\r\n在 h5 下，重复切换几个 Tabbar 时会不断地重复创建 DOM，这样性能很不好，正常的行为应该是像路由返回一样切换 `display` 属性来隐藏和显示。\r\n\r\n**复现步骤**\r\n任何大于一个 Tab 的 Tabbar 页面都能复现\r\n\r\n下面的动图可以看到问题（动图大小 5M，加载可能慢一点），注意右边的 DOM 结构。\r\n\r\n![2018-10-26_17-33-37](https://user-images.githubusercontent.com/21964227/47558300-60837980-d945-11e8-80bb-42ab48fab6b0.gif)\r\n\r\n**期望行为**\r\n切换 Tabbar 时，已渲染的 Tab 页面不再渲染，而且像路由返回一样通过切换 `display` 属性来隐藏和显示。\r\n\r\n**报错信息**\r\n无报错，但是与期望行为不一致，而且会带来很严重的性能问题。\r\n\r\n**系统信息**\r\n\r\n - 操作系统: Windows 10\r\n - Taro 版本 v1.0.7\r\n - Node.js 版本 v8.11.4\r\n - 报错平台 h5\r\n\r\n**补充信息**\r\n"}}
{"actor":{"display_login":"vimcaw"}}