基础布局
<el-table-column show-overflow-tooltip align="right" header-align="center" prop="MILEAGE" :label="'里程\n(公里)'"></el-table-column>
添加以下样式即可
/deep/ .el-table thead {
white-space: pre-line;/*保留换行符*/
}
基础布局
<el-table-column show-overflow-tooltip align="right" header-align="center" prop="MILEAGE" :label="'里程\n(公里)'"></el-table-column>
添加以下样式即可
/deep/ .el-table thead {
white-space: pre-line;/*保留换行符*/
}