1、elementUI,表格出现这种样式错误,用了fixed。 见有些说把height改成max-height,但是样式还是会有问题,fixed的表格短了一截。 看了官网,里面写了doLayout的方法,百度见有人用,可以解决,于是我也试试 要记得在table那里加一个ref 然后就是接口请求得到数据的时候,走一遍这个方法 this.$nextTick(()=>{ &......
<el-table :data="tableData" style="width: 100%" ref="multipleTable" v-perfect-scrollbar :header-cell-style="{ textAlign: 'center' }" :cell-style="{ textAlign: 'center' }" @selection-change="handleSelectionChange" > <el-table-column fixed type="selection" width="55" /> <el-table...
Starting with the code in the comment above (#10308 (comment)), I came up with a new version of thefixLayoutmethod which does not suffer the performance penalties with many rows and also works with fixed columns and when new rows are added: fixLayout(){varcsTag=this.__cst;if(!csTag)...
<el-table :data="tableData" style="width: 100%" ref="multipleTable" v-perfect-scrollbar :header-cell-style="{ textAlign: 'center' }" :cell-style="{ textAlign: 'center' }" @selection-change="handleSelectionChange" > <el-table-column fixed type="selection" width="55" /> <el-table...
{ textAlign: 'center' }" @selection-change="handleSelectionChange" > <el-table-column fixed type="selection" width="55" /> <el-table-column fixed prop="date" label="ID"/> <el-table-column fixed prop="name" label="商家名称" width="255" /> <el-table-column prop="province" label...