1.3.7
win 10/ chrome 58.0.3029.110
2.3.4
https://jsfiddle.net/co8c0sk4/
Click on the change button twice will make the table appear broken.
If v-if changed to v-show, the columns will not be hidden, and clicking on the button will not do anything.
Clicking on the change button will be able to show between Address and Name.
Clicking on the change button will break the table. It doesn't matter if I use v-show or v-if, it simply won't work.
A similar problem happens if you try to dynamically change the width of some column.
I tried to control el-table itself using v-if and v-else-if. Still no use when changed. Looks like there's something dynamic going on behind the back that's preventing it from switching.
You need to add key
: https://jsfiddle.net/co8c0sk4/7/
Doesn't work with v-show...my table is pretty big, i would like to avoid to rerender everything... :(
Most helpful comment
You need to add
key
: https://jsfiddle.net/co8c0sk4/7/