提交
This commit is contained in:
1 parent
33c038b8d9
commit
54b27a3f0e
253 files changed
+30060
-14298
No files matched your search
@@ -125,7 +125,7 @@ body {
|
||||
// 盒子默认边框
|
||||
.page-content {
|
||||
border: 1px solid var(--mint-border) !important;
|
||||
border-radius: var(--mint-radius) !important;
|
||||
border-radius: 0 !important;
|
||||
box-shadow: var(--mint-shadow) !important;
|
||||
}
|
||||
|
||||
@@ -359,8 +359,8 @@ body {
|
||||
|
||||
.panel {
|
||||
background: var(--mint-surface);
|
||||
border: 1px solid var(--mint-border);
|
||||
border-radius: var(--mint-radius);
|
||||
border: none;
|
||||
border-radius: 0;
|
||||
box-shadow: var(--mint-shadow);
|
||||
/* 不要用 overflow:hidden:会导致 el-table 右侧固定列(fixed="right")无法正确粘贴/层级错乱 */
|
||||
overflow: visible;
|
||||
@@ -941,7 +941,11 @@ body {
|
||||
.filter-block {
|
||||
padding: 12px 16px 10px;
|
||||
background: var(--mint-surface);
|
||||
border-bottom: 1px solid var(--mint-border);
|
||||
border-bottom: none;
|
||||
|
||||
&.is-filter-collapsed {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
.filter-hint {
|
||||
@@ -1066,7 +1070,7 @@ body {
|
||||
.toolbar {
|
||||
padding: 0;
|
||||
background: var(--mint-table-head);
|
||||
border-bottom: 1px solid var(--mint-border);
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
.list-toolbar-row,
|
||||
@@ -1077,6 +1081,7 @@ body {
|
||||
align-items: center;
|
||||
flex-wrap: wrap;
|
||||
justify-content: flex-start;
|
||||
background: var(--mint-table-head);
|
||||
}
|
||||
|
||||
/* 列表工具栏按钮间距统一由 gap 控制,清除 Element 默认相邻按钮 margin */
|
||||
@@ -1093,15 +1098,93 @@ body {
|
||||
.toolbar-left {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0;
|
||||
min-height: 36px;
|
||||
padding: 0 10px 0 0;
|
||||
margin-right: 4px;
|
||||
border-right: 1px solid var(--mint-border);
|
||||
border-right: none;
|
||||
font-size: 12px;
|
||||
color: var(--mint-text-muted);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.btn-list-filter-toggle {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
width: 28px;
|
||||
height: 28px;
|
||||
margin-right: 8px;
|
||||
padding: 0;
|
||||
border: none;
|
||||
border-radius: 6px;
|
||||
background: transparent;
|
||||
color: var(--mint-text-muted);
|
||||
cursor: pointer;
|
||||
flex-shrink: 0;
|
||||
transition:
|
||||
background-color 0.2s ease,
|
||||
color 0.2s ease;
|
||||
|
||||
&::before {
|
||||
content: '';
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
background-color: currentColor;
|
||||
opacity: 0.95;
|
||||
mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3'/%3E%3C/svg%3E")
|
||||
center / contain no-repeat;
|
||||
-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3'/%3E%3C/svg%3E")
|
||||
center / contain no-repeat;
|
||||
}
|
||||
|
||||
&:hover {
|
||||
color: var(--mint-primary-dark);
|
||||
background: var(--mint-primary-bg);
|
||||
}
|
||||
|
||||
&[aria-expanded='true'] {
|
||||
color: var(--mint-primary-dark);
|
||||
background: var(--mint-primary-bg);
|
||||
}
|
||||
|
||||
&:focus-visible {
|
||||
outline: 2px solid var(--mint-primary);
|
||||
outline-offset: 1px;
|
||||
}
|
||||
}
|
||||
|
||||
.quick-search-group {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
flex-shrink: 0;
|
||||
margin-right: 8px;
|
||||
gap: 6px;
|
||||
|
||||
.quick-search-input {
|
||||
width: 280px;
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.btn-list-filter-toggle {
|
||||
margin-right: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.quick-search-input:not(.quick-search-group .quick-search-input) {
|
||||
width: 280px;
|
||||
}
|
||||
|
||||
.quick-search-input .quick-search-icon {
|
||||
cursor: pointer;
|
||||
color: var(--mint-text-muted);
|
||||
transition: color 0.2s ease;
|
||||
|
||||
&:hover {
|
||||
color: var(--mint-primary-dark);
|
||||
}
|
||||
}
|
||||
|
||||
.sel-num {
|
||||
color: var(--mint-primary-dark);
|
||||
font-weight: 700;
|
||||
@@ -1113,7 +1196,7 @@ body {
|
||||
}
|
||||
|
||||
.list-wrap {
|
||||
border-radius: 0 0 var(--mint-radius) var(--mint-radius);
|
||||
border-radius: 0;
|
||||
overflow: visible;
|
||||
}
|
||||
|
||||
@@ -1131,9 +1214,9 @@ body {
|
||||
gap: 8px 12px;
|
||||
margin-top: 0;
|
||||
padding: 10px 16px 12px;
|
||||
border-top: 1px solid var(--mint-border);
|
||||
border-top: none;
|
||||
background: var(--mint-surface);
|
||||
border-radius: 0 0 var(--mint-radius) var(--mint-radius);
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
/* 分页条左侧说明文案(BX range / 分类 total-count 等)与右侧控件区分 */
|
||||
@@ -1147,14 +1230,14 @@ body {
|
||||
justify-content: flex-end;
|
||||
margin-top: 0;
|
||||
padding: 10px 16px 12px;
|
||||
border-top: 1px solid var(--mint-border);
|
||||
border-top: none;
|
||||
background: var(--mint-surface);
|
||||
}
|
||||
|
||||
.search-bar {
|
||||
background: var(--mint-surface);
|
||||
border: 1px solid var(--mint-border);
|
||||
border-radius: var(--mint-radius);
|
||||
border-radius: 0;
|
||||
box-shadow: var(--mint-shadow);
|
||||
}
|
||||
|
||||
@@ -1162,7 +1245,7 @@ body {
|
||||
margin-bottom: 14px;
|
||||
padding: 14px 16px;
|
||||
border: 1px solid var(--mint-border);
|
||||
border-radius: var(--mint-radius);
|
||||
border-radius: 0;
|
||||
background: var(--mint-primary-bg);
|
||||
}
|
||||
|
||||
@@ -1179,7 +1262,7 @@ body {
|
||||
}
|
||||
|
||||
.detail-section {
|
||||
border-radius: var(--mint-radius);
|
||||
border-radius: 0;
|
||||
overflow: hidden;
|
||||
margin-bottom: 14px;
|
||||
}
|
||||
@@ -1243,6 +1326,14 @@ body {
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
/* 弹窗表单:栅格块与后续表单项/栅格块之间保留行间距(与模块弹窗 form-grid row-gap 一致) */
|
||||
.el-dialog.dialog-form-layout .el-form {
|
||||
[class*='form-grid-'] + .el-form-item,
|
||||
[class*='form-grid-'] + [class*='form-grid-'] {
|
||||
margin-top: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
/* 表单栅格内 el-input-number 默认约 150px,须拉满与 el-input / el-select 同宽 */
|
||||
.el-dialog.dialog-form-layout .el-form-item .el-input-number,
|
||||
.page-container .el-form-item .el-input-number,
|
||||
@@ -1288,11 +1379,11 @@ body {
|
||||
}
|
||||
}
|
||||
|
||||
/* 标准 CRUD 弹窗:相对视口上下各保留至少 50px 可视留白,正文区纵向滚动(不占满视口高度) */
|
||||
/* 标准 CRUD 弹窗:相对视口上下各 20px 留白,正文区纵向滚动 */
|
||||
.el-dialog.dialog-form-layout {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
max-height: calc(100vh - 100px);
|
||||
max-height: var(--dialog-max-height, calc(100vh - 40px));
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@@ -1300,6 +1391,14 @@ body {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.el-dialog.dialog-form-layout .el-dialog__headerbtn {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
top: 4px;
|
||||
right: 4px;
|
||||
}
|
||||
|
||||
.el-dialog.dialog-form-layout .el-dialog__body {
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
@@ -1321,13 +1420,18 @@ body {
|
||||
backdrop-filter: none !important;
|
||||
|
||||
.el-overlay-dialog {
|
||||
margin-top: 16px;
|
||||
margin-top: 0;
|
||||
margin-bottom: auto;
|
||||
padding-top: var(--dialog-viewport-inset, 20px);
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
.el-dialog.dialog-form-layout,
|
||||
.el-dialog.order-module-dialog {
|
||||
max-width: calc(100vw - 48px);
|
||||
max-height: calc(
|
||||
100vh - var(--dialog-viewport-inset, 20px) * 2
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1365,6 +1469,12 @@ body {
|
||||
background: var(--mint-surface);
|
||||
}
|
||||
|
||||
.app-layout-portal #app-sidebar .layout-sidebar {
|
||||
height: 100%;
|
||||
border-right: 1px solid var(--mint-border) !important;
|
||||
background: var(--mint-surface);
|
||||
}
|
||||
|
||||
#app-sidebar .menu-left .header {
|
||||
height: 56px;
|
||||
line-height: 56px;
|
||||
@@ -1383,6 +1493,14 @@ body {
|
||||
|
||||
/* 弹窗 / 抽屉内键值展示:上下布局、深色正文(对齐 zkxw Token 链) */
|
||||
:is(.el-dialog, .system-view-dialog, .el-drawer) {
|
||||
.el-form-item__label {
|
||||
font-size: 13px !important;
|
||||
}
|
||||
|
||||
.view-kv-table th {
|
||||
font-size: 13px !important;
|
||||
}
|
||||
|
||||
:is(.view-kv, [class*='-view-kv']:not([class*='-grid']), .pl-plan-kv) {
|
||||
display: flex !important;
|
||||
flex-direction: column !important;
|
||||
@@ -1393,7 +1511,7 @@ body {
|
||||
|
||||
dt {
|
||||
margin: 0;
|
||||
font-size: 13px;
|
||||
font-size: 13px !important;
|
||||
font-weight: 400 !important;
|
||||
color: var(--mint-text-muted) !important;
|
||||
line-height: 1.4;
|
||||
@@ -1409,7 +1527,7 @@ body {
|
||||
}
|
||||
|
||||
.view-field-label {
|
||||
font-size: 13px;
|
||||
font-size: 13px !important;
|
||||
font-weight: 400 !important;
|
||||
color: var(--mint-text-muted) !important;
|
||||
line-height: 1.4;
|
||||
@@ -1427,8 +1545,39 @@ body {
|
||||
}
|
||||
}
|
||||
|
||||
/* CRM 新增/编辑弹窗:label 左、控件右,垂直居中,label 可换行 */
|
||||
.crm-dialog-form {
|
||||
.el-form-item {
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* 栅格内纵向间距由 gap 承担,避免与 margin 叠加 */
|
||||
[class*='form-grid-'] > .el-form-item {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
|
||||
/* 左右布局单行更矮,适当加大栅格行间距 */
|
||||
[class*='form-grid-'] {
|
||||
row-gap: 16px;
|
||||
}
|
||||
|
||||
.el-form-item__label {
|
||||
white-space: normal;
|
||||
word-break: break-word;
|
||||
line-height: 1.45;
|
||||
height: auto !important;
|
||||
padding-right: 12px;
|
||||
align-self: center;
|
||||
}
|
||||
|
||||
.el-form-item__content {
|
||||
min-width: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.el-dialog.dialog-form-layout {
|
||||
.el-form-item__label {
|
||||
font-size: 13px !important;
|
||||
color: var(--mint-text) !important;
|
||||
font-weight: 400 !important;
|
||||
}
|
||||
@@ -1451,10 +1600,14 @@ body {
|
||||
|
||||
/* 弹窗 / 查看态内嵌列表面板(CRM 详情 Tab、表单弹窗、选择器等) */
|
||||
:is(.el-dialog, .system-view-dialog) {
|
||||
.list-body.list-wrap {
|
||||
border-top: 1px solid var(--mint-border);
|
||||
}
|
||||
|
||||
.dialog-list-panel,
|
||||
.customer-tab-list-panel {
|
||||
> .list-toolbar:first-child {
|
||||
border-radius: var(--mint-radius) var(--mint-radius) 0 0;
|
||||
border-radius: 0;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
@@ -1488,19 +1641,14 @@ body {
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
.list-body {
|
||||
border-top: 1px solid var(--mint-border);
|
||||
}
|
||||
|
||||
> .list-body.list-wrap {
|
||||
overflow: hidden;
|
||||
border-radius: 0 0 var(--mint-radius) var(--mint-radius);
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
> .list-body.list-wrap.dialog-list-body-only,
|
||||
> .list-body.list-wrap.customer-tab-list-body-only {
|
||||
border-top: none;
|
||||
border-radius: var(--mint-radius);
|
||||
border-radius: 0;
|
||||
}
|
||||
|
||||
.pagination.list-pager-bar {
|
||||
@@ -1544,6 +1692,12 @@ body {
|
||||
white-space: nowrap;
|
||||
}
|
||||
}
|
||||
|
||||
/* 区块标题 / 筛选行后紧跟、未包 list-body 的裸 list-table:表头顶部分隔线 */
|
||||
:is(.dialog-section-title, .dlg-view-section-title) + .list-table.el-table thead th.el-table__cell,
|
||||
:is(.dialog-section-title, .dlg-view-section-title) + .inline-row + .list-table.el-table thead th.el-table__cell {
|
||||
border-top: 1px solid var(--mint-border) !important;
|
||||
}
|
||||
}
|
||||
|
||||
/* 筛选区 label:13px 次要色(对齐 zkxw filter-form 实践;filter-hint 仍为 11px) */
|
||||
|
||||
@@ -58,6 +58,11 @@
|
||||
padding: 0 0 4px !important;
|
||||
}
|
||||
|
||||
// 弹窗/抽屉内表单 label(含 label-right):统一 13px,避免 EP 默认 14px
|
||||
:is(.el-dialog, .el-drawer) .el-form-item__label {
|
||||
font-size: 13px !important;
|
||||
}
|
||||
|
||||
// 日期选择器
|
||||
.el-date-range-picker {
|
||||
--el-datepicker-inrange-bg-color: var(--art-gray-200) !important;
|
||||
@@ -149,12 +154,17 @@ html.dark .el-card {
|
||||
border-radius: var(--mint-radius) !important;
|
||||
overflow: hidden;
|
||||
box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12) !important;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
max-height: var(--dialog-max-height, calc(100vh - 40px));
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.el-dialog__header {
|
||||
padding: 16px 22px 14px !important;
|
||||
border-bottom: 1px solid var(--mint-border);
|
||||
background: linear-gradient(135deg, var(--mint-primary-bg) 0%, var(--mint-surface) 60%);
|
||||
flex-shrink: 0;
|
||||
|
||||
.el-dialog__title {
|
||||
font-size: 16px;
|
||||
@@ -163,15 +173,24 @@ html.dark .el-card {
|
||||
}
|
||||
}
|
||||
|
||||
.el-dialog__headerbtn {
|
||||
top: 4px;
|
||||
right: 4px;
|
||||
}
|
||||
|
||||
.el-dialog__body {
|
||||
padding: 18px 22px !important;
|
||||
position: relative; // 为了兼容 el-pagination 样式,需要设置 relative,不然会影响 el-pagination 的样式,比如 el-pagination__jump--small 会被影响,导致 el-pagination__jump--small 按钮无法点击,详见 URL_ADDRESS.com/element-plus/element-plus/issues/5684#issuecomment-1176299275;
|
||||
flex: 1;
|
||||
min-height: 0;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.el-dialog__footer {
|
||||
padding: 12px 22px !important;
|
||||
border-top: 1px solid var(--mint-border);
|
||||
background: var(--mint-table-head);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
.el-dialog.el-dialog-border {
|
||||
@@ -372,8 +391,8 @@ html.dark .el-card {
|
||||
// 修改 el-message-box 样式
|
||||
.el-message-box__headerbtn .el-message-box__close,
|
||||
.el-dialog__headerbtn .el-dialog__close {
|
||||
top: 7px;
|
||||
right: 7px;
|
||||
top: 0;
|
||||
right: 0;
|
||||
width: 30px;
|
||||
height: 30px;
|
||||
border-radius: 5px;
|
||||
@@ -747,6 +766,56 @@ body .el-table thead {
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
// 主列表(含多选列):行可单击切换选中
|
||||
.page-container .list-table.el-table:has(.el-table-column--selection) tbody tr.el-table__row,
|
||||
.console-container .list-table.el-table:has(.el-table-column--selection) tbody tr.el-table__row {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
// 主列表:无顶/底外框;左右外缘 + 列间竖线 + 行间横线
|
||||
.page-container .list-table.el-table,
|
||||
.console-container .list-table.el-table,
|
||||
.el-dialog .list-table.el-table,
|
||||
.system-view-dialog .list-table.el-table {
|
||||
border: none !important;
|
||||
|
||||
&::before,
|
||||
&::after {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.el-table__inner-wrapper::before,
|
||||
.el-table__inner-wrapper::after {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
.el-table__border-left-patch,
|
||||
.el-table__border-right-patch,
|
||||
.el-table__border-bottom-patch {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
th.el-table__cell,
|
||||
td.el-table__cell {
|
||||
border-right: 1px solid var(--mint-border) !important;
|
||||
border-bottom: 1px solid var(--mint-border) !important;
|
||||
border-left: none !important;
|
||||
border-top: none !important;
|
||||
}
|
||||
|
||||
th.el-table__cell:first-child,
|
||||
td.el-table__cell:first-child {
|
||||
border-left: 1px solid var(--mint-border) !important;
|
||||
}
|
||||
|
||||
.el-table__fixed-right {
|
||||
th.el-table__cell:last-child,
|
||||
td.el-table__cell:last-child {
|
||||
border-right: 1px solid var(--mint-border) !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.page-container .el-table th.el-table__cell,
|
||||
.console-container .el-table th.el-table__cell {
|
||||
color: var(--mint-text-muted);
|
||||
@@ -1196,12 +1265,24 @@ textarea::placeholder {
|
||||
color: #147a3c !important;
|
||||
}
|
||||
|
||||
// 列表分割线统一:每个分区只保留一条线
|
||||
// 工具栏与列表之间:保留 .list-body 顶部线,去掉 .list-toolbar 底部线
|
||||
// 列表分割线统一:工具栏与列表之间保留 list-body 顶部分隔线
|
||||
.page-container .list-toolbar,
|
||||
.console-container .list-toolbar,
|
||||
.el-dialog .list-toolbar {
|
||||
border-bottom: none !important;
|
||||
background: var(--mint-table-head) !important;
|
||||
}
|
||||
|
||||
.page-container .list-toolbar-row,
|
||||
.console-container .list-toolbar-row,
|
||||
.el-dialog .list-toolbar-row {
|
||||
background: var(--mint-table-head);
|
||||
}
|
||||
|
||||
.page-container .list-body,
|
||||
.console-container .list-body,
|
||||
.el-dialog .list-body {
|
||||
border-top: 1px solid var(--mint-border);
|
||||
}
|
||||
|
||||
// 列表与分页之间:保留列表底部线,去掉分页顶部线;分页控件右对齐(§7.9)
|
||||
|
||||
@@ -48,4 +48,8 @@
|
||||
--danger-bg: #fef2f2;
|
||||
--info: #64748b;
|
||||
--info-bg: #f8fafc;
|
||||
|
||||
/* 弹窗相对视口上下留白(各 20px,总 40px) */
|
||||
--dialog-viewport-inset: 20px;
|
||||
--dialog-max-height: calc(100vh - var(--dialog-viewport-inset) * 2);
|
||||
}
|
||||
@@ -33,3 +33,12 @@
|
||||
|
||||
// 地磅(db)模块 Fresh Mint 公共样式
|
||||
@use '../../styles/db-module.scss';
|
||||
|
||||
// 运输(pl)模块样式
|
||||
@use '../../styles/pl-module.scss';
|
||||
|
||||
// 工作流(wf)模块样式
|
||||
@use '../../styles/wf-module.scss';
|
||||
|
||||
// 系统管理(sys)模块样式
|
||||
@use '../../styles/sys-module.scss';
|
||||
Reference in new issue
Block a user