From d5e5655b8863ca357066b520e587f4319e8edbe1 Mon Sep 17 00:00:00 2001 From: wangxiaogang <1433729587@qq.com> Date: Tue, 2 Jun 2026 16:04:17 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BA=A4=E4=BA=92=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E4=B8=8E=E4=BB=A3=E7=A0=81=E8=B4=A8=E9=87=8F=E6=94=B9=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - SvgIcon 改为 PNG 图标方案,组件重命名为 Icon - 修复 TransactionItem tap 事件名冲突,改为 item-tap - 修复 Stats 页面切换 tab 时 overview 不更新 - 修复 CategoryIcon bgColor 必填问题 - 修复 ChartWrapper import 顺序 - 修复 budget onDelete 空字符串问题 - 清理 profile 页面未使用 CSS - 统一所有页面 header 为 sticky 定位 - 修复导航栏返回按钮不统一 - 添加导出功能 loading 状态 - 优化 scroll-into-view 延迟 --- .../components/CategoryIcon/CategoryIcon.vue | 6 +- .../components/ChartWrapper/ChartWrapper.vue | 4 +- client/src/components/Icon/Icon.vue | 90 +++++++ client/src/components/Numpad/Numpad.vue | 6 +- .../components/SaveSuccess/SaveSuccess.vue | 4 +- client/src/components/SvgIcon/SvgIcon.vue | 70 ------ .../TransactionItem/TransactionItem.vue | 19 +- client/src/pages/add/index.vue | 43 ++-- client/src/pages/bills/index.vue | 19 +- client/src/pages/budget/index.vue | 38 ++- client/src/pages/category-manage/index.vue | 34 ++- client/src/pages/index/index.vue | 52 ++-- client/src/pages/profile/index.vue | 54 ++-- client/src/pages/stats/index.vue | 25 +- .../src/static/icons/alert-circle-light.png | Bin 0 -> 836 bytes client/src/static/icons/arrow-left-dark.png | Bin 0 -> 367 bytes client/src/static/icons/arrow-left-gray.png | Bin 0 -> 380 bytes client/src/static/icons/arrow-right-gray.png | Bin 0 -> 375 bytes client/src/static/icons/arrow-right-pale.png | Bin 0 -> 377 bytes client/src/static/icons/bell-gray.png | Bin 0 -> 713 bytes client/src/static/icons/calendar-gray.png | Bin 0 -> 378 bytes client/src/static/icons/check-white.png | Bin 0 -> 372 bytes .../src/static/icons/chevron-right-light.png | Bin 0 -> 345 bytes client/src/static/icons/edit-gray.png | Bin 0 -> 719 bytes client/src/static/icons/edit-light.png | Bin 0 -> 705 bytes client/src/static/icons/trash-orange.png | Bin 0 -> 369 bytes client/src/static/icons/trash-red.png | Bin 0 -> 354 bytes client/src/static/icons/trash-white.png | Bin 0 -> 322 bytes client/src/static/icons/trend-down-red.png | Bin 0 -> 504 bytes client/src/static/icons/trend-up-green.png | Bin 0 -> 506 bytes client/src/static/icons/user-gray.png | Bin 0 -> 557 bytes client/src/static/icons/user-white.png | Bin 0 -> 480 bytes client/src/utils/request.ts | 67 ++--- scripts/gen-icons.js | 238 ------------------ 34 files changed, 318 insertions(+), 451 deletions(-) create mode 100644 client/src/components/Icon/Icon.vue delete mode 100644 client/src/components/SvgIcon/SvgIcon.vue create mode 100644 client/src/static/icons/alert-circle-light.png create mode 100644 client/src/static/icons/arrow-left-dark.png create mode 100644 client/src/static/icons/arrow-left-gray.png create mode 100644 client/src/static/icons/arrow-right-gray.png create mode 100644 client/src/static/icons/arrow-right-pale.png create mode 100644 client/src/static/icons/bell-gray.png create mode 100644 client/src/static/icons/calendar-gray.png create mode 100644 client/src/static/icons/check-white.png create mode 100644 client/src/static/icons/chevron-right-light.png create mode 100644 client/src/static/icons/edit-gray.png create mode 100644 client/src/static/icons/edit-light.png create mode 100644 client/src/static/icons/trash-orange.png create mode 100644 client/src/static/icons/trash-red.png create mode 100644 client/src/static/icons/trash-white.png create mode 100644 client/src/static/icons/trend-down-red.png create mode 100644 client/src/static/icons/trend-up-green.png create mode 100644 client/src/static/icons/user-gray.png create mode 100644 client/src/static/icons/user-white.png delete mode 100644 scripts/gen-icons.js diff --git a/client/src/components/CategoryIcon/CategoryIcon.vue b/client/src/components/CategoryIcon/CategoryIcon.vue index adf8de1..439b224 100644 --- a/client/src/components/CategoryIcon/CategoryIcon.vue +++ b/client/src/components/CategoryIcon/CategoryIcon.vue @@ -7,13 +7,13 @@ + + diff --git a/client/src/components/Numpad/Numpad.vue b/client/src/components/Numpad/Numpad.vue index 7651167..f0b4515 100644 --- a/client/src/components/Numpad/Numpad.vue +++ b/client/src/components/Numpad/Numpad.vue @@ -4,16 +4,16 @@ {{ key }} - + - + - - diff --git a/client/src/components/TransactionItem/TransactionItem.vue b/client/src/components/TransactionItem/TransactionItem.vue index dfe60ea..b5b8a44 100644 --- a/client/src/components/TransactionItem/TransactionItem.vue +++ b/client/src/components/TransactionItem/TransactionItem.vue @@ -3,11 +3,10 @@ {{ item.category_name?.[0] || '?' }} @@ -19,7 +18,7 @@ {{ item.type === 'expense' ? '-' : '+' }}{{ formatAmount(item.amount) }} - + @@ -27,7 +26,7 @@