Element Plus version
1.1.0-beta.9
OS/Browsers version
windows 7/ chrome 66 and chrome 69
Vue version
3.2.10
Reproduction Link
https://codepen.io/iamkun/pen/YzWMaVa
Steps to reproduce
First of all, please note, the codepen url below is fake because the bug cannot be reproduced at Codepen.
cdn:
This bug is repeated in two places:
The first is the official website, https://element-plus.gitee.io/#/zh-CN/component/table, In Chrome 66/69, I can only see the address column. Where are the other two columns?
<tbody><tr class="el-table__row"><td class="el-table_1_column_3 el-table__cell" rowspan="1" colspan="1"><div class="cell"><!---->上海市普陀区金沙江路 1518 弄</div></td></tr><tr class="el-table__row"><td class="el-table_1_column_3 el-table__cell" rowspan="1" colspan="1"><div class="cell"><!---->上海市普陀区金沙江路 1517 弄</div></td></tr><tr class="el-table__row"><td class="el-table_1_column_3 el-table__cell" rowspan="1" colspan="1"><div class="cell"><!---->上海市普陀区金沙江路 1519 弄</div></td></tr><tr class="el-table__row"><td class="el-table_1_column_3 el-table__cell" rowspan="1" colspan="1"><div class="cell"><!---->上海市普陀区金沙江路 1516 弄</div></td></tr></tbody>
The second is in the development mode, the leftmost column cannot be displayed. Where's the first column? Where's the 'el-table_1_column_1'?
<colgroup><col name="el-table_1_column_2" width="394"><col name="el-table_1_column_3" width="393"><col name="el-table_1_column_4" width="393"><!----></colgroup>
What is Expected?
I want to see all the columns.
What is actually happening?
Some columns are missing, at least in chrome 66 / 69.
9条答案
按热度按时间thtygnil1#
Translation of this issue:
Element Plus version
1.1.0-beta.9
OS/Browsers version
windows 7/ chrome 66 and chrome 69
Vue version
3.2.10
Reproduction Link
https://codepen.io/iamkun/pen/YzWMaVa
Steps to reproduce
First of all, please note, the codepen url below is fake because the bug cannot be reproduced at Codepen.
cdn:
This bug is repeated in two places:
The first is the official website, https://element-plus.gitee.io/#/zh -CN/component/table, In Chrome 66/69, I can only see the address column. Where are the other two columns?
! image
The second is in the development mode, the leftmost column cannot be displayed. Where's the first column? Where's the 'el-table_ 1_ column_ 1'?
What is Expected?
I want to see all the columns.
What is actually happening?
Some columns are missing, at least in chrome 66 / 69.
w8rqjzmb2#
Hello @microkof. Please provide an online reproduction demo by clicking this link or a minimal GitHub repository.
你好 @microkof, 请提供一个可复现问题的链接以便于我们帮你排查问题。可以通过点击 此处 创建或者提供一个最小化的 GitHub 仓库。
5cg8jx4n3#
Please provider a correct reproduction link
9ceoxa924#
Please provider a correct reproduction link
Yes, OK.
Hi, I prepared a code, but I didn't upload the code to GitHub, because I need to study what 'github personal access token' is, so I uploaded the code to gitee.com. I believe this is also possible.
https://gitee.com/microkof/table-column-missing-after-f5-in-dev-mode
Reproduction method:
press F5 to refresh the page. You will find that one column is missing from the table. Click the 'test page 2'
button, similarly. The table has 4 columns, and only 3 columns remain after F5 refresh.
bsxbgnwa5#
Please provider a correct reproduction link
Also, you can observe this effect from the official website
https://element-plus.gitee.io/#/zh-CN/component/table
In addition, in my last reply, I said that the Chrome 6x version may or may not be required. Now I think it is necessary.
oxf4rvwz6#
Sorry, I stil can't reproduce this problem.
Can someone help me reproduce it? @element-plus/backers
b1uwtaje7#
Sorry, I stil can't reproduce this problem.
Can someone help me reproduce it? @element-plus/backers
First, Download Chrome 66, from :
https://dl.google.com/release2/chrome/Qystcf3MOD8_66.0.3359.117/66.0.3359.117_chrome_installer.exe
Be careful, it will silently upgrade.
And then, my OS is Window 7, you'd better do the same, if you can.
dtcbnfnu8#
Sorry, I stil can't reproduce this problem.
Can someone help me reproduce it? @element-plus/backers
I think I know the reason for this bug.
Open file:
element-plus/es/components/table/index.js
Search statement:
The correct way to write it should be:
_columns
is a temporary variable used by the previous logical code, and its data is incomplete. AndnewColumns
is the final data, and its data is complete.Then please search for:
Obviously, the variable used for rendering data is
columns
, not_columns
。At least I think this is the reason at present. If you think it's not, I'll continue to find the real reason for the error.
wn9m85ua9#
I'm sorry, the above solution solves the TableBody part only, but does not solve the TableHeader part, because it involves another variable
originColumns
. I hope the official will give a thorough solution.