From 3883f14a4895d8ddecd824b1f1574afddc9222da Mon Sep 17 00:00:00 2001 From: shunli Date: Fri, 6 Mar 2026 10:09:18 +0800 Subject: [PATCH] =?UTF-8?q?refactor(ui):=20[UI8]=20=E5=BD=BB=E5=BA=95?= =?UTF-8?q?=E7=A7=BB=E9=99=A4=E9=81=97=E7=95=99Card=E5=B9=B6=E8=A1=A5?= =?UTF-8?q?=E5=85=85=E4=B8=8B=E6=8B=89=E6=A1=86=E4=B8=AD=E6=96=87=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/components/common/CardSkeleton.tsx | 5 ++-- .../src/components/common/ErrorBoundary.tsx | 5 ++-- client/src/index.css | 2 +- client/src/pages/ApprovalRulesPage.tsx | 4 +-- client/src/pages/AuditLogsPage.tsx | 2 +- client/src/pages/BudgetsPage.tsx | 13 +++++----- client/src/pages/ChangePasswordPage.tsx | 5 ++-- client/src/pages/DashboardPage.tsx | 23 ++++++++--------- client/src/pages/DelegationsPage.tsx | 22 ++++++++-------- client/src/pages/DepartmentsPage.tsx | 4 +-- client/src/pages/FeatureFlagsPage.tsx | 2 +- client/src/pages/LoginPage.tsx | 5 ++-- client/src/pages/MobileApprovalsPage.tsx | 9 +++---- client/src/pages/MobileCapturePage.tsx | 9 +++---- client/src/pages/NotificationsPage.tsx | 2 +- client/src/pages/ReimbursementDetailPage.tsx | 25 +++++++++---------- client/src/pages/UserManagementPage.tsx | 5 ++-- client/src/pages/WorkflowTaskDetailPage.tsx | 21 ++++++++-------- client/src/pages/WorkflowTasksPage.tsx | 2 +- .../pages/invoice-pool/InvoiceBindCard.tsx | 2 +- .../pages/invoice-pool/InvoiceDetailPanel.tsx | 2 +- .../pages/invoice-pool/InvoiceListCard.tsx | 2 +- .../pages/invoice-pool/InvoiceUploadCard.tsx | 2 +- .../ReimbursementActions.tsx | 5 ++-- .../2026-03-06_10-09-00-ui-refresh-stage8.csv | 4 +++ 25 files changed, 87 insertions(+), 95 deletions(-) create mode 100644 issues/2026-03-06_10-09-00-ui-refresh-stage8.csv diff --git a/client/src/components/common/CardSkeleton.tsx b/client/src/components/common/CardSkeleton.tsx index 1e130c40..e7f4312f 100644 --- a/client/src/components/common/CardSkeleton.tsx +++ b/client/src/components/common/CardSkeleton.tsx @@ -1,13 +1,12 @@ import { Skeleton } from "../ui/skeleton"; -import { Card } from "../ui/card"; export function CardSkeleton({ lines = 6 }: { lines?: number }) { return ( - +
{Array.from({ length: lines }, (_, i) => ( ))} - +
); } diff --git a/client/src/components/common/ErrorBoundary.tsx b/client/src/components/common/ErrorBoundary.tsx index 80781724..e8319484 100644 --- a/client/src/components/common/ErrorBoundary.tsx +++ b/client/src/components/common/ErrorBoundary.tsx @@ -1,5 +1,4 @@ import { Component, type ErrorInfo, type ReactNode } from "react"; -import { Card } from "../ui/card"; type Props = { children: ReactNode; @@ -32,7 +31,7 @@ export class ErrorBoundary extends Component { } return ( - +

页面渲染出错

{this.state.error?.message ?? "发生了未知错误"} @@ -55,7 +54,7 @@ export class ErrorBoundary extends Component { 返回首页

-
+ ); } diff --git a/client/src/index.css b/client/src/index.css index 1803f094..d990eb14 100644 --- a/client/src/index.css +++ b/client/src/index.css @@ -42,7 +42,7 @@ /* Cards */ .card-std { - @apply bg-white p-6 rounded-xl shadow-sm ring-1 ring-zinc-900/5 transition-all; + @apply bg-white rounded-xl shadow-sm ring-1 ring-zinc-900/5 transition-all; } .card-title { diff --git a/client/src/pages/ApprovalRulesPage.tsx b/client/src/pages/ApprovalRulesPage.tsx index 662608e3..de91ebbd 100644 --- a/client/src/pages/ApprovalRulesPage.tsx +++ b/client/src/pages/ApprovalRulesPage.tsx @@ -155,7 +155,7 @@ export function ApprovalRulesPage() {

) : null} -
+

新建审批规则

@@ -280,7 +280,7 @@ export function ApprovalRulesPage() {
-
+

规则列表

{listQuery.isLoading ? : null} diff --git a/client/src/pages/AuditLogsPage.tsx b/client/src/pages/AuditLogsPage.tsx index 2ddaa72a..23ddf83a 100644 --- a/client/src/pages/AuditLogsPage.tsx +++ b/client/src/pages/AuditLogsPage.tsx @@ -135,7 +135,7 @@ export function AuditLogsPage() { } /> -
+