This commit is contained in:
zlwu committed 2026-06-14 17:20:52 +08:00
1 parent a79aee2614
commit 427bcb1551
274 files changed
+59416 -38342

No files matched your search

+122 -4
View File
@@ -417,10 +417,128 @@ body {
}
}
.page-container .panel-tabs {
> .el-tabs__header {
margin: 0;
padding: 0 16px;
// 面板级胶囊分段 Tab(居中,对齐 docs/panel-tab-demos/02-pill-segmented)
.panel-pill-tabs {
// 自定义按钮结构(质检物料库等)
&:not(.el-tabs) {
display: flex;
justify-content: center;
margin: 12px 24px 4px;
}
&__track {
display: inline-flex;
gap: 4px;
padding: 4px;
background: #f1f5f9;
border: 1px solid var(--mint-border, #e2e8f0);
border-radius: 8px;
}
&__btn {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 108px;
padding: 8px 20px;
border: none;
border-radius: 6px;
background: transparent;
font-size: 13px;
font-weight: 500;
line-height: 1.4;
text-align: center;
color: var(--mint-text-muted, #64748b);
cursor: pointer;
white-space: nowrap;
transition:
background 0.15s,
color 0.15s,
box-shadow 0.15s;
&:hover:not(.is-active) {
color: var(--mint-text, #1e293b);
background: rgba(255, 255, 255, 0.6);
}
&.is-active {
background: #fff;
color: var(--primary-dark, #059669);
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
font-weight: 600;
}
}
// el-tabs 结构
&.el-tabs {
> .el-tabs__header {
display: flex;
justify-content: center;
margin: 12px 24px 4px;
padding: 0;
border: none;
}
.el-tabs__nav-wrap {
flex: 0 1 auto;
&::after {
display: none;
}
}
.el-tabs__nav-scroll {
display: flex;
justify-content: center;
}
.el-tabs__nav {
display: inline-flex;
gap: 4px;
float: none;
padding: 4px;
background: #f1f5f9;
border: 1px solid var(--mint-border, #e2e8f0);
border-radius: 8px;
}
.el-tabs__active-bar {
display: none;
}
.el-tabs__item {
display: inline-flex !important;
align-items: center !important;
justify-content: center !important;
box-sizing: border-box;
min-width: 108px;
height: auto !important;
margin: 0 !important;
padding: 8px 20px !important;
border: none !important;
border-radius: 6px;
font-size: 13px;
font-weight: 500;
line-height: 1.4;
text-align: center !important;
color: var(--mint-text-muted, #64748b);
transition:
background 0.15s,
color 0.15s,
box-shadow 0.15s;
&:hover:not(.is-active) {
color: var(--mint-text, #1e293b);
background: rgba(255, 255, 255, 0.6);
}
&.is-active {
background: #fff;
color: var(--primary-dark, #059669);
box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
font-weight: 600;
}
}
}
}