ElemeFE / element-react

Element UI
https://elemefe.github.io/element-react/index
MIT License
2.83k stars 444 forks source link

页面使用 keep-alive 缓存,table 组件 使用 fixed 问题 #1068

Closed zongcong closed 4 years ago

zongcong commented 4 years ago

描述

页面使用 keep-alive 缓存,table 组件 使用 fixed 属性,当切换到别的页面时,再回到当前页面,使用 fixed 属性的表格会发生错布局错乱

Reproduce Steps

  1. 页面使用 keep-alive 缓存,table 组件 使用 fixed 属性
  2. 切换路由页面发生跳转,然后再返回当前 table 组件 使用 fixed 属性的页面,会发现使用 fixed 属性的 table 组件布局发生错乱

路由没有切换之前

image

切换路由后返回

image

版本 2.13.2

代码

image