</el-table-column> 获取列表数据的时候,自适应调整宽度 getTableList(data) {this.tableList =data;this.$nextTick(() =>{ const tds= document.querySelectorAll('td.handle-column>.cell')if(tds &&tds.length) {this.autoWidth = Math.max(...[...tds].map(v => v.offsetWidth))this.$refs.ta...
el-table在flex布局下宽度不能自适应的解决方法 https://blog.csdn.net/Komorebi_00/article/details/127566867 分类:vue 鼓舞飞扬 粉丝-9关注 -0 +加关注 0 0 升级成为会员
</el-table-column> 获取列表数据的时候,自适应调整宽度 getTableList(data) {this.tableList =data;this.$nextTick(() =>{ const tds= document.querySelectorAll('td.handle-column>.cell')if(tds &&tds.length) {this.autoWidth = Math.max(...[...tds].map(v => v.offsetWidth))this.$refs.ta...
</el-table-column> 获取列表数据的时候,自适应调整宽度 getTableList(data) {this.tableList =data;this.$nextTick(() =>{ const tds= document.querySelectorAll('td.handle-column>.cell')if(tds &&tds.length) {this.autoWidth = Math.max(...[...tds].map(v => v.offsetWidth))this.$refs.ta...