ElemeFE / element

A Vue.js 2.0 UI Toolkit for Web
https://element.eleme.io/
MIT License
54.1k stars 14.64k forks source link

After the [Bug Report] table-column is reordered with the V-for, the column's formatter will continue to execute the original column #9526

Closed javaswing closed 6 years ago

javaswing commented 6 years ago

Element UI version

1.4.13

OS/Browsers version

all brower

Vue version

2.1.10

Reproduction Link

https://jsfiddle.net/javaSwing/qyks3qfm/4/

Steps to reproduce

https://jsfiddle.net/javaSwing/qyks3qfm/4/

What is Expected?

视图进行重新渲染后,对应的formatter方法应当跟随列改变位置

What is actually happening?

列的位置已经进行改变,对应的formatter方法,还在原来位置继续执行

element-bot commented 6 years ago

Translation of this issue:

Element UI version

1.4.13

OS/Browsers version

All Brower

Vue version

2.1.10

Reproduction Link

https://jsfiddle.net/javaSwing/qyks3qfm/4/

Steps to reproduce

Https://jsfiddle.net/javaSwing/qyks3qfm/4/

What is Expected?

After the view is re rendered, the corresponding formatter method should follow the column change position

What is actually happening?

The location of the column has been changed, and the corresponding formatter method continues to be executed in its original position.

Leopoldthecoder commented 6 years ago

已在之前的 issue 里回复。