解决:应用el-table提供的api里的doLayout
doLayout:
对 Table 进行从新布局。当 Table 或其先人元素由暗藏切换为显示时,可能须要调用此办法
用法:每次el-table数据变更后调用doLayout
<el-table :data="table" ref="myTable" >this.$nextTick(() => { this.$refs.myTable.doLayout()})
解决:应用el-table提供的api里的doLayout
doLayout:
对 Table 进行从新布局。当 Table 或其先人元素由暗藏切换为显示时,可能须要调用此办法
用法:每次el-table数据变更后调用doLayout
<el-table :data="table" ref="myTable" >this.$nextTick(() => { this.$refs.myTable.doLayout()})