解决方法:
就是增加一个key,在每次显示或隐藏列时时key值发生变化,重新加载绘制表格时就不会有影响。
例如:
<el-table
ref="multipleTable"
:data="data"
:height="height"
border
highlight-current-row
:v-loading="true"
:key="keyIndex"
在显示影藏列的方法中添加
this.keyIndex++
解决方法:
就是增加一个key,在每次显示或隐藏列时时key值发生变化,重新加载绘制表格时就不会有影响。
例如:
<el-table
ref="multipleTable"
:data="data"
:height="height"
border
highlight-current-row
:v-loading="true"
:key="keyIndex"
在显示影藏列的方法中添加
this.keyIndex++