This commit is contained in:
zlwu committed 2026-08-03 00:48:46 +08:00
1 parent 272c68af4b
commit 40fc54942b
76 files changed
+464684 -14130

No files matched your search

@@ -734,6 +734,44 @@ body .el-table thead {
}
}
// 名称列(客户/产品/合同等):Excel 式自动换行 + 左对齐,覆盖全局 nowrap/居中
// 用法:el-table-column 增加 class-name="col-name-wrap" label-class-name="col-name-wrap",
// 并设 align="left" header-align="left",去掉 show-overflow-tooltip
.el-table {
th.el-table__cell.col-name-wrap,
td.el-table__cell.col-name-wrap {
vertical-align: middle;
height: auto;
text-align: left !important;
> .cell {
white-space: normal !important;
word-break: break-word;
overflow-wrap: anywhere;
line-height: 1.45;
text-overflow: unset;
overflow: visible;
height: auto;
text-align: left !important;
justify-content: flex-start !important;
}
}
td.el-table__cell.col-name-wrap {
.el-link,
.el-link > span {
white-space: normal;
word-break: break-word;
overflow-wrap: anywhere;
display: inline;
vertical-align: baseline;
height: auto;
line-height: 1.45;
text-align: left;
}
}
}
// 全局:列表表格内容居中展示(表头 + 单元格)
// 列上设置 align / header-align 时,Element Plus 会加 is-left、is-right,须高于默认居中
.el-table {