Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report]最新版chrome table columns width设置无效 #6255

Closed
annuoyxl opened this issue Sep 9, 2019 · 1 comment
Closed

[Bug Report]最新版chrome table columns width设置无效 #6255

annuoyxl opened this issue Sep 9, 2019 · 1 comment

Comments

@annuoyxl
Copy link

annuoyxl commented Sep 9, 2019

Environment
iview 3.4.2 / Windows / chrome最新版

Reproduction link
内网访问,暂时不能提供

Steps to reproduce
1、table的data是从vuex getters取值
2、table columns设置列宽
3、table是在 tab pane里渲染,切换tab时,table的列宽错乱

What is expected?
希望在任何版本的chrome浏览器下,table组件列宽渲染正常

@crazyguagua
Copy link

table.vue 968行

this.$on('on-visible-change', (val) => {
                if (val) {
                    this.handleResize();
                }
            });

加上nextTick 就好了

 this.$on('on-visible-change', (val) => {
                if (val) {
                   this.$nextTick(()=>{
                       this.handleResize();
                   }) 
                }
            });

DebugIsFalse added a commit that referenced this issue Sep 12, 2019
icarusion added a commit to view-design/ViewUI that referenced this issue Oct 15, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants