feat(ui): finalize shared shells and loading states

This commit is contained in:
caoxiaozhu
2026-05-29 13:17:39 +08:00
parent 64cc76c970
commit e080105f9f
52 changed files with 1559 additions and 861 deletions

View File

@@ -69,68 +69,6 @@
pointer-events: none;
}
.login-entry-card {
width: min(360px, calc(100% - 48px));
display: grid;
grid-template-columns: 42px minmax(0, 1fr);
gap: 12px 14px;
align-items: center;
padding: 22px 24px 20px;
border: 1px solid rgba(148, 163, 184, 0.26);
border-radius: 4px;
background: #fff;
box-shadow: 0 20px 46px rgba(15, 23, 42, 0.14);
animation: loginEntryCardIn 360ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.login-entry-mark {
width: 42px;
height: 42px;
display: inline-grid;
place-items: center;
border: 1px solid rgba(var(--theme-primary-rgb, 58, 124, 165), 0.2);
border-radius: 4px;
background: var(--theme-primary-soft);
color: var(--theme-primary-active);
font-size: 22px;
}
.login-entry-copy {
min-width: 0;
display: grid;
gap: 4px;
}
.login-entry-copy strong {
color: var(--ink);
font-size: 16px;
line-height: 1.35;
font-weight: 750;
}
.login-entry-copy span {
color: var(--muted);
font-size: 13px;
line-height: 1.45;
}
.login-entry-progress {
grid-column: 1 / -1;
height: 3px;
overflow: hidden;
background: #edf2f7;
}
.login-entry-progress::after {
content: '';
display: block;
width: 100%;
height: 100%;
background: var(--theme-primary);
transform-origin: left center;
animation: loginEntryProgress 840ms cubic-bezier(0.2, 0, 0, 1) both;
}
.login-entry-veil-enter-active {
transition: opacity 180ms var(--ease);
}
@@ -231,7 +169,6 @@
.main.policies-main,
.main.audit-main,
.main.digital-employees-main,
.main.logs-main,
.main.employees-main,
.main.settings-main {
height: var(--desktop-stage-height, 100dvh);
@@ -250,7 +187,6 @@
.workarea.policies-workarea,
.workarea.audit-workarea,
.workarea.digital-employees-workarea,
.workarea.logs-workarea,
.workarea.employees-workarea,
.workarea.settings-workarea {
min-height: 0;
@@ -267,28 +203,6 @@
background: #fff;
}
@keyframes loginEntryCardIn {
from {
opacity: 0;
transform: scale3d(0.92, 0.92, 1);
}
to {
opacity: 1;
transform: scale3d(1, 1, 1);
}
}
@keyframes loginEntryProgress {
from {
transform: scaleX(0);
}
to {
transform: scaleX(1);
}
}
@keyframes loginEntrySidebarIn {
from {
opacity: 0;
@@ -401,8 +315,6 @@
transition-duration: 120ms, 120ms !important;
}
.login-entry-card,
.login-entry-progress::after,
.app.login-entry-active .app-sidebar,
.app.login-entry-active > .main {
animation: none !important;

View File

@@ -13,6 +13,12 @@
margin-top: 14px;
border-bottom: 1px solid #dbe4ee;
overflow-x: auto;
overflow-y: hidden;
scrollbar-width: none;
}
.enterprise-list-page .status-tabs::-webkit-scrollbar {
display: none;
}
.enterprise-list-page .status-tabs button {
@@ -65,6 +71,7 @@
}
.enterprise-list-page .filter-set {
flex: 1 1 auto;
display: flex;
align-items: center;
gap: 12px;
@@ -74,7 +81,14 @@
.enterprise-list-page .list-search {
position: relative;
width: min(280px, 100%);
flex: 0 1 280px;
width: 280px;
min-width: 220px;
display: block;
}
.enterprise-list-page .picker-filter {
flex: 0 0 auto;
}
.enterprise-list-page .list-search .mdi {
@@ -202,13 +216,32 @@
color: #64748b;
}
.enterprise-list-page .active-filter-strip {
display: flex;
gap: 8px;
flex-wrap: wrap;
margin-bottom: 12px;
}
.enterprise-list-page .active-filter-chip {
min-height: 28px;
display: inline-flex;
align-items: center;
padding: 0 10px;
border-radius: 4px;
background: var(--theme-primary-soft);
color: var(--theme-primary-active);
font-size: 12px;
font-weight: 800;
}
.enterprise-list-page .table-wrap {
min-height: 400px;
margin-top: 10px;
overflow: auto;
border: 1px solid #edf2f7;
border-radius: 4px;
background: linear-gradient(180deg, #fcfeff 0%, var(--theme-primary-light-9) 100%);
border-radius: 10px;
background: linear-gradient(180deg, #fcfefd 0%, #f4f8f6 100%);
display: flex;
flex-direction: column;
align-items: stretch;
@@ -263,7 +296,8 @@
font-weight: 750;
}
.enterprise-list-page table {
.enterprise-list-page table,
.enterprise-list-page .table-wrap > table {
width: 100%;
min-width: 1080px;
align-self: flex-start;
@@ -272,7 +306,9 @@
}
.enterprise-list-page th,
.enterprise-list-page td {
.enterprise-list-page td,
.enterprise-list-page .table-wrap th,
.enterprise-list-page .table-wrap td {
padding: 13px 12px;
border-bottom: 1px solid #edf2f7;
color: #24324a;
@@ -285,7 +321,8 @@
text-overflow: ellipsis;
}
.enterprise-list-page th {
.enterprise-list-page th,
.enterprise-list-page .table-wrap th {
position: sticky;
top: 0;
z-index: 1;
@@ -295,16 +332,20 @@
font-weight: 800;
}
.enterprise-list-page tbody tr {
.enterprise-list-page tbody tr,
.enterprise-list-page .table-wrap tbody tr {
cursor: pointer;
}
.enterprise-list-page tbody tr:hover,
.enterprise-list-page tbody tr.spotlight {
.enterprise-list-page tbody tr.spotlight,
.enterprise-list-page .table-wrap tbody tr:hover,
.enterprise-list-page .table-wrap tbody tr.spotlight {
background: linear-gradient(90deg, rgba(var(--theme-primary-rgb, 58, 124, 165), 0.08), rgba(var(--theme-primary-rgb, 58, 124, 165), 0.03));
}
.enterprise-list-page tbody tr:last-child td {
.enterprise-list-page tbody tr:last-child td,
.enterprise-list-page .table-wrap tbody tr:last-child td {
border-bottom: 0;
}
@@ -313,11 +354,119 @@
font-weight: 800;
}
.enterprise-list-page .doc-kind-tag,
.enterprise-list-page .type-tag,
.enterprise-list-page .status-tag {
display: inline-flex;
align-items: center;
justify-content: center;
white-space: nowrap;
}
.enterprise-list-page .doc-kind-tag {
min-height: 26px;
padding: 0 10px;
border-radius: 7px;
font-size: 12px;
font-weight: 800;
}
.enterprise-list-page .doc-kind-tag.reimbursement {
background: var(--theme-primary-light-9);
color: var(--theme-primary-active);
}
.enterprise-list-page .doc-kind-tag.application {
background: #eff6ff;
color: #2563eb;
}
.enterprise-list-page .type-tag {
min-height: 26px;
padding: 0 10px;
border-radius: 999px;
font-size: 12px;
font-weight: 800;
}
.enterprise-list-page .type-tag.travel,
.enterprise-list-page .type-tag.hotel,
.enterprise-list-page .type-tag.transport {
background: var(--theme-primary-light-9);
color: var(--theme-primary-active);
}
.enterprise-list-page .type-tag.entertainment,
.enterprise-list-page .type-tag.meal {
background: #fff7ed;
color: #ea580c;
}
.enterprise-list-page .type-tag.office {
background: #eff6ff;
color: #2563eb;
}
.enterprise-list-page .type-tag.meeting,
.enterprise-list-page .type-tag.training {
background: #eef2ff;
color: #4f46e5;
}
.enterprise-list-page .type-tag.other {
background: #f8fafc;
color: #475569;
}
.enterprise-list-page .status-tag {
min-height: 24px;
padding: 0 9px;
border: 1px solid transparent;
border-radius: 6px;
font-size: 12px;
font-weight: 750;
}
.enterprise-list-page .status-tag.info {
border-color: #bfdbfe;
background: #eff6ff;
color: #2563eb;
}
.enterprise-list-page .status-tag.success,
.enterprise-list-page .status-tag.archived {
border-color: var(--success-line);
background: var(--success-soft);
color: var(--success-active);
}
.enterprise-list-page .status-tag.warning,
.enterprise-list-page .status-tag.draft {
border-color: #fed7aa;
background: #fff7ed;
color: #f97316;
}
.enterprise-list-page .status-tag.danger {
border-color: #fecaca;
background: #fef2f2;
color: #dc2626;
}
.enterprise-list-page .status-tag.neutral,
.enterprise-list-page .status-tag.muted,
.enterprise-list-page .status-tag.disabled {
border-color: #cbd5e1;
background: #f8fafc;
color: #475569;
}
.enterprise-pagination {
flex: 0 0 auto;
}
.enterprise-list-page .list-foot {
.enterprise-list-page .list-foot,
.enterprise-list-page.enterprise-list-page .list-foot {
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center;
@@ -325,27 +474,30 @@
margin-top: 12px;
}
.enterprise-list-page .page-summary {
.enterprise-list-page .page-summary,
.enterprise-list-page.enterprise-list-page .page-summary {
color: #64748b;
font-size: 14px;
font-weight: 650;
}
.enterprise-list-page .pager {
.enterprise-list-page .pager,
.enterprise-list-page.enterprise-list-page .pager {
display: inline-flex;
justify-content: center;
gap: 6px;
padding: 4px;
border: 1px solid #e2e8f0;
border-radius: 4px;
border-radius: 12px;
background: #f8fafc;
}
.enterprise-list-page .pager button {
.enterprise-list-page .pager button,
.enterprise-list-page.enterprise-list-page .pager button {
width: 32px;
height: 32px;
border: 0;
border-radius: 4px;
border-radius: 9px;
background: transparent;
color: #334155;
font-size: 14px;
@@ -353,19 +505,22 @@
transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.enterprise-list-page .pager button:hover:not(.active) {
.enterprise-list-page .pager button:hover:not(.active),
.enterprise-list-page.enterprise-list-page .pager button:hover:not(.active) {
background: #fff;
color: var(--theme-primary-active);
box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
}
.enterprise-list-page .pager button.active {
background: var(--theme-primary);
.enterprise-list-page .pager button.active,
.enterprise-list-page.enterprise-list-page .pager button.active {
background: var(--theme-primary-active);
color: #fff;
box-shadow: 0 8px 16px var(--theme-primary-shadow);
}
.enterprise-list-page .pager button:disabled {
.enterprise-list-page .pager button:disabled,
.enterprise-list-page.enterprise-list-page .pager button:disabled {
cursor: not-allowed;
opacity: 0.45;
box-shadow: none;
@@ -394,6 +549,86 @@
overflow: auto;
}
.enterprise-detail-page .detail-actions {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 12px 0 0;
border-top: 1px solid #e5eaf0;
}
.enterprise-detail-page .detail-action-group {
display: flex;
justify-content: flex-end;
gap: 8px;
}
.enterprise-detail-page .back-action,
.enterprise-detail-page .minor-action,
.enterprise-detail-page .major-action {
height: 38px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
padding: 0 14px;
border-radius: 4px;
font-size: 13px;
font-weight: 760;
transition: transform 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.enterprise-detail-page .back-action,
.enterprise-detail-page .minor-action {
border: 1px solid #d7e0ea;
background: #fff;
color: #334155;
}
.enterprise-detail-page .minor-action.success-action {
border-color: var(--success-line);
background: var(--success-soft);
color: var(--success-hover);
}
.enterprise-detail-page .minor-action.enable-action {
border-color: rgba(100, 116, 139, 0.26);
color: #64748b;
}
.enterprise-detail-page .minor-action.enable-action.is-on {
border-color: rgba(var(--success-rgb), 0.26);
color: var(--success-hover);
}
.enterprise-detail-page .minor-action.danger-action {
border-color: rgba(220, 38, 38, 0.2);
color: #dc2626;
}
.enterprise-detail-page .major-action {
border: 1px solid var(--theme-primary);
background: var(--theme-primary);
color: #fff;
box-shadow: 0 4px 12px var(--theme-primary-shadow);
}
.enterprise-detail-page .back-action:hover,
.enterprise-detail-page .minor-action:hover,
.enterprise-detail-page .major-action:hover {
transform: translateY(-1px);
}
.enterprise-detail-page .back-action:disabled,
.enterprise-detail-page .minor-action:disabled,
.enterprise-detail-page .major-action:disabled {
opacity: 0.52;
cursor: not-allowed;
transform: none;
box-shadow: none;
}
.enterprise-detail-card .card-head {
align-items: flex-start;
}

View File

@@ -147,40 +147,25 @@ h1 { margin-top: 4px; color: var(--ink); font-size: 24px; line-height: 1.25; fon
*, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
}
.table-loading__spinner {
width: 38px;
height: 38px;
display: inline-grid;
place-items: center;
border: 3px solid #e2e8f0;
border-top-color: var(--primary);
border-radius: 50%;
animation: table-spinner-rotate .8s linear infinite !important;
.table-state:has(.table-loading.screen-floating),
.table-state:has(.table-loading-anchor),
.table-loading-row:has(.table-loading.screen-floating),
.table-loading-row:has(.table-loading-anchor) {
min-height: 0 !important;
padding: 0 !important;
background: transparent !important;
}
.table-loading.sky .table-loading__spinner {
border-top-color: var(--primary);
}
.table-loading.detail .table-loading__spinner {
width: 34px;
height: 34px;
}
.table-loading.banner .table-loading__spinner {
width: 18px;
height: 18px;
border-width: 2px;
}
.table-loading__spinner i {
display: none;
}
@keyframes table-spinner-rotate {
to {
transform: rotate(360deg);
}
tr:has(> .table-loading-row .table-loading.screen-floating),
tr:has(> .table-loading-row .table-loading-anchor),
tr:has(> .table-loading-row .table-loading.screen-floating) > td,
tr:has(> .table-loading-row .table-loading-anchor) > td,
.table-loading-row:has(.table-loading.screen-floating),
.table-loading-row:has(.table-loading-anchor) {
height: 0 !important;
border: 0 !important;
line-height: 0 !important;
background: transparent !important;
}
/* Global Scrollbar Styles */

View File

@@ -5,49 +5,81 @@
.digital-employees-list {
height: 100%;
min-height: 0;
display: flex;
flex-direction: column;
padding: 16px 18px;
overflow: hidden;
}
.digital-employees-list > .status-tabs {
flex: 0 0 auto;
display: flex;
gap: 28px;
margin-top: 14px;
padding-bottom: 0;
border-bottom: 1px solid #dbe4ee;
overflow-x: auto;
overflow-y: hidden;
scrollbar-width: none;
}
.digital-employees-list .table-wrap {
min-height: 0;
.digital-employees-list > .status-tabs::-webkit-scrollbar {
display: none;
}
.digital-employees-list > .status-tabs button {
position: relative;
min-height: 36px;
display: inline-flex;
align-items: center;
gap: 7px;
border: 0;
background: transparent;
color: #64748b;
font-size: 14px;
font-weight: 750;
white-space: nowrap;
}
.digital-employees-list > .status-tabs button.active {
color: var(--theme-primary-active);
}
.digital-employees-list > .status-tabs button.active::after {
content: "";
position: absolute;
left: 0;
right: 0;
bottom: -1px;
height: 3px;
border-radius: 999px 999px 0 0;
background: var(--theme-primary);
}
.digital-employees-table {
min-width: 1060px;
table-layout: fixed;
}
.digital-employees-table .col-skill { width: 27%; }
.digital-employees-table .col-schedule { width: 16%; }
.digital-employees-table .col-mode { width: 12%; }
/* Default first column left alignment */
.digital-employees-table th:first-child,
.digital-employees-table td:first-child {
text-align: left;
}
.digital-employees-table .col-skill { width: 22%; }
.digital-employees-table .col-skill-type { width: 11%; }
.digital-employees-table .col-status { width: 11%; }
.digital-employees-table .col-enabled { width: 11%; }
.digital-employees-table .col-updated { width: 12%; }
.digital-employees-table td {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.digital-employees-table tbody tr {
cursor: pointer;
}
.digital-employees-table .col-owner { width: 11%; }
.digital-employees-table .col-schedule { width: 16%; }
.digital-employees-table .col-mode { width: 10%; }
.digital-employees-table .col-status { width: 10%; }
.digital-employees-table .col-enabled { width: 10%; }
.digital-employees-table .col-updated { width: 10%; }
.digital-refresh-action i {
font-size: 16px;
}
.skill-type-pill {
border-color: #dbeafe;
background: #eff6ff;
color: #1d4ed8;
}
.digital-employee-detail {
height: 100%;
}

View File

@@ -54,6 +54,26 @@
color: var(--theme-primary);
}
.system-logs-list .refresh-interval-filter,
.system-logs-list .refresh-interval-trigger,
.system-logs-list .refresh-interval-menu {
min-width: 148px;
}
.system-logs-list .refresh-interval-trigger > .mdi:first-child {
color: var(--theme-primary);
}
.system-logs-list .icon-refresh-action {
width: 40px;
min-width: 40px;
padding: 0;
}
.system-logs-list .icon-refresh-action .mdi {
font-size: 18px;
}
.system-logs-list .document-filter-menu {
position: absolute;
top: calc(100% + 8px);

View File

@@ -423,14 +423,6 @@ th {
text-align: center;
}
.table-loading-row {
padding: 0;
}
.table-loading-row > .table-loading {
min-height: 220px;
}
.list-foot {
display: grid;
grid-template-columns: 1fr auto 1fr;

View File

@@ -206,6 +206,16 @@
padding: 20px 24px;
}
.settings-content-fill {
overflow: hidden;
align-content: stretch;
}
.settings-content-fill .settings-logs-view,
.settings-content-fill .settings-log-detail-view {
min-height: 0;
}
.model-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
@@ -680,6 +690,19 @@
margin-bottom: 20px;
}
.log-policy-card .card-head {
padding-top: 12px;
padding-bottom: 12px;
}
.log-policy-card > *:not(.card-head) {
margin-top: 18px;
}
.log-policy-card > *:not(.card-head):last-child {
margin-bottom: 20px;
}
/* 大语言模型配置卡片图标与标题排版 */
.card-title-with-icon {
display: flex;

View File

@@ -591,9 +591,9 @@
background: rgba(6, 78, 59, 0.34);
}
.setup-startup-spinner .pi {
font-size: 22px;
}
.setup-startup-spinner .mdi {
font-size: 22px;
}
.setup-startup-spinner strong {
color: #ffffff;
@@ -626,10 +626,10 @@
background: rgba(15, 23, 42, 0.24);
}
.setup-startup-step .pi {
margin-top: 2px;
.setup-startup-step .mdi {
margin-top: 2px;
color: color-mix(in srgb, var(--theme-primary-soft) 46%, transparent);
}
}
.setup-startup-step strong {
color: #f8fffb;
@@ -648,25 +648,25 @@
border-color: rgba(59, 130, 246, 0.34);
}
.setup-startup-step.is-running .pi {
color: #93c5fd;
}
.setup-startup-step.is-running .mdi {
color: #93c5fd;
}
.setup-startup-step.is-success {
border-color: rgba(var(--theme-primary-rgb), 0.32);
}
.setup-startup-step.is-success .pi {
.setup-startup-step.is-success .mdi {
color: var(--theme-primary-light-5);
}
}
.setup-startup-step.is-error {
border-color: rgba(248, 113, 113, 0.36);
}
.setup-startup-step.is-error .pi {
color: #f87171;
}
.setup-startup-step.is-error .mdi {
color: #f87171;
}
.setup-startup-console {
min-height: 0;