element icon indicating copy to clipboard operation
element copied to clipboard

[Bug Report] table data and column prop cant match when change column with v-if; 使用v-if更改table column, table data 和column prop无法对应

Open chengfengfengwang opened this issue 2 years ago • 4 comments

Element UI version

2.15.7

OS/Browsers version

macos

Vue version

2.6.14

Reproduction Link

https://codepen.io/a602120/pen/abGWLQa?editors=1010

Steps to reproduce

点击change按钮2次,使changeColumn的值为3; click button twice;

What is Expected?

日期列pay_date, 应该渲染为对应的数据2022-09-12; the pay_date column should render correct data;

What is actually happening?

日期列取值为prop name; the pay_date column rendered name column data;

chengfengfengwang avatar Sep 19 '22 03:09 chengfengfengwang

没看懂,日期列具体是那一列

5z5 avatar Sep 19 '22 10:09 5z5

张丝丝-2-B这个数据哪里来的呀

5z5 avatar Sep 19 '22 10:09 5z5

没看懂,日期列具体是那一列

你确定你读完复现步骤了?

chengfengfengwang avatar Sep 19 '22 11:09 chengfengfengwang

没读完。。。。。

| | @.*** | | @.*** |

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2022年09月19日 19:04 | | 收件人 | @.> | | 抄送至 | @.@.> | | 主题 | Re: [ElemeFE/element] [Bug Report] table data and column prop cant match when change column with v-if; 使用v-if更改table column, table data 和column prop无法对应 (Issue #22154) |

没看懂,日期列具体是那一列

你确定你读完复现步骤了?

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

5z5 avatar Sep 19 '22 15:09 5z5

| | @.*** | | @.*** |

---- 回复的原邮件 ---- | 发件人 | @.> | | 日期 | 2022年09月19日 19:06 | | 收件人 | @.> | | 抄送至 | @.@.> | | 主题 | Re: [ElemeFE/element] [Bug Report] table data and column prop cant match when change column with v-if; 使用v-if更改table column, table data 和column prop无法对应 (Issue #22154) |

张丝丝-2-B这个数据哪里来的呀

我提的是bug,所以是bug,你懂吗??

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you commented.Message ID: @.***>

5z5 avatar Oct 11 '22 09:10 5z5

Element UI version

2.15.7

OS/Browsers version

macos

Vue version

2.6.14

Reproduction Link

https://codepen.io/a602120/pen/abGWLQa?editors=1010

Steps to reproduce

点击change按钮2次,使changeColumn的值为3; click button twice;

What is Expected?

日期列pay_date, 应该渲染为对应的数据2022-09-12; the pay_date column should render correct data;

What is actually happening?

日期列取值为prop name; the pay_date column rendered name column data;

v-if情况下el-table-column要加key的,加了key是没问题的

jalery922 avatar Nov 07 '22 09:11 jalery922