提交
This commit is contained in:
1 parent
e59b2aa6cb
commit
eccefc6650
63 files changed
+13267
-11330
No files matched your search
@@ -600,13 +600,16 @@ body .el-table thead {
|
||||
color: inherit;
|
||||
}
|
||||
|
||||
// 表格默认占满整个宽度
|
||||
// 表格默认占满容器;允许在列宽总和更大时由内部横向滚动撑开,避免末列被裁切
|
||||
.el-table {
|
||||
width: 100% !important;
|
||||
max-width: 100%;
|
||||
|
||||
// 修复固定列时表格宽度问题
|
||||
// 占满容器,但不禁止内部 table 按列宽超出(横向滚动由 body-wrapper/scrollbar 承担)
|
||||
.el-table__inner-wrapper {
|
||||
width: 100% !important;
|
||||
width: 100%;
|
||||
min-width: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -614,6 +617,7 @@ body .el-table thead {
|
||||
.page-container {
|
||||
.el-table {
|
||||
width: 100% !important;
|
||||
max-width: 100%;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -814,6 +818,18 @@ body .el-table thead {
|
||||
border-right: 1px solid var(--mint-border) !important;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* 横向滚到最右侧时末列完整可见:
|
||||
* 给表头/表体 table 右侧留出空隙,增大可滚动宽度,避免末列被 overflow 或
|
||||
* 叠加滚动条裁切。不要给末列 .cell 加 padding,否则会挤占「创建时间」等定宽文案。
|
||||
*/
|
||||
&.el-table--scrollable-x {
|
||||
.el-table__header-wrapper table,
|
||||
.el-table__body-wrapper table {
|
||||
margin-right: 12px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.page-container .el-table th.el-table__cell,
|
||||
|
||||
Reference in new issue
Block a user