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

Created on 1 Jun 2020  ·  2Comments  ·  Source: ElemeFE/element

描述

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

Reproduce Steps

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

路由没有切换之前

image

切换路由后返回

image

版本 2.13.2

代码

image

invalid

Most helpful comment

使用 table 提供的 doLayout 方法可以解决此问题

All 2 comments

Hello, this issue has been closed because it does not conform to our issue requirements. Please submit issues with issue-generator. More info can be found in #3693.

使用 table 提供的 doLayout 方法可以解决此问题

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Kingwl picture Kingwl  ·  3Comments

yuchonghua picture yuchonghua  ·  3Comments

no5no6 picture no5no6  ·  3Comments

chenzhe-pro picture chenzhe-pro  ·  3Comments

yubo111 picture yubo111  ·  3Comments