diff --git a/client/src/App.vue b/client/src/App.vue
index b512a29..60fb3b0 100644
--- a/client/src/App.vue
+++ b/client/src/App.vue
@@ -1,6 +1,6 @@
@@ -87,5 +133,6 @@ watch(() => props.chartData, () => {
.chart-canvas {
display: block;
+ width: 100%;
}
diff --git a/client/src/components/TransactionItem/TransactionItem.vue b/client/src/components/TransactionItem/TransactionItem.vue
index b5b8a44..ab56da3 100644
--- a/client/src/components/TransactionItem/TransactionItem.vue
+++ b/client/src/components/TransactionItem/TransactionItem.vue
@@ -8,9 +8,12 @@
@touchmove="!disableSwipe && onTouchMove($event)"
@touchend="!disableSwipe && onTouchEnd()"
>
-
- {{ item.category_name?.[0] || '?' }}
-
+
{{ item.note || item.category_name || '未分类' }}
{{ item.category_name || '未分类' }}{{ hideDate ? '' : ' · ' + formatDate(item.date) }}
@@ -27,6 +30,7 @@
import { ref } from 'vue'
import { formatAmount, formatDate } from '@/utils/format'
import Icon from '@/components/Icon/Icon.vue'
+import CategoryIcon from '@/components/CategoryIcon/CategoryIcon.vue'
withDefaults(defineProps<{
item: {
@@ -84,7 +88,7 @@ function onTouchEnd() {
.tx-item {
display: flex;
align-items: center;
- padding: 28rpx 0;
+ padding: 28rpx 24rpx;
gap: 24rpx;
border-radius: 20rpx;
transition: transform 0.2s ease;
@@ -117,21 +121,6 @@ function onTouchEnd() {
}
}
-.icon-wrap {
- width: 80rpx;
- height: 80rpx;
- border-radius: 24rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- flex-shrink: 0;
-}
-
-.icon-text {
- font-size: 36rpx;
- font-weight: 600;
-}
-
.info {
flex: 1;
min-width: 0;
diff --git a/client/src/pages/category-manage/index.vue b/client/src/pages/category-manage/index.vue
index 3072362..b975755 100644
--- a/client/src/pages/category-manage/index.vue
+++ b/client/src/pages/category-manage/index.vue
@@ -20,51 +20,129 @@
-
+
{{ cat.name }}
自定义
-
-
+
+
+
+
+
+
+
-
- 添加自定义分类
-
-
+
+
+ +
+
+
+
+
+
+ 添加自定义分类
+
+
+
+
+
+ 取消
+ 添加
+
-
-
+
+
+
+
+
+ 编辑分类
+
+
+
+
+
+ 取消
+ 确定
+
+
+
+
+
+
+
+ 迁移记录
+ 「{{ deletingCat?.name }}」下有 {{ migrateCount }} 条记录,请选择迁移到:
+
+
+
+ {{ cat.name }}
+
+
+
+ 取消
+ 确认迁移并删除
+
- 添加