表头内容较多,且td长度比较窄,导致文字换行问题
增加css样式,表格外层div类名:station-search
.station-search .table-head {
font-size: 14px !important;
}
.station-search .el-table .caret-wrapper {
position: absolute;
top: 2px;
right: 0;
}
.station-search .el-table .cell, .el-table th div {
padding: 0 !important;
}
.station-search .el-table tr td .cell {
padding: 5px 2px !important;
}
.station-search .el-table .cell,
.station-search .el-table th div,
.station-search .el-table--border td:first-child .cell,
.station-search .el-table--border th:first-child .cell {
padding-left: 0 !important;
}
修改过后: