-
-
-
{{ category.classify || '未分类' }}
+
+
+
+
+
+
+
+
+
+
{{ category.classify || '未分类' }}
+
+
+ {{ category.percent }}%
+
+
+
+
+ ¥{{ formatMoney(category.amount) }}
+
{{ category.count }}笔
-
-
- ¥{{ formatMoney(category.amount) }}
-
-
- {{ category.percent }}%
-
-
-
@@ -1805,4 +1804,69 @@ onBeforeUnmount(() => {
:deep(.van-nav-bar) {
background: transparent !important;
}
+
+/* 并列显示卡片 */
+.side-by-side-cards {
+ display: flex;
+ gap: 12px;
+ margin: 0 12px 16px;
+}
+
+.side-by-side-cards .common-card {
+ margin: 0;
+ flex: 1;
+ min-width: 0; /* 允许内部元素缩小 */
+ padding: 12px;
+}
+
+.side-by-side-cards .card-header {
+ margin-bottom: 12px;
+}
+
+/* 紧凑模式列表项 */
+.category-item.compact {
+ flex-direction: column;
+ align-items: stretch;
+ gap: 6px;
+ padding: 10px 0;
+}
+
+.compact-row {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ gap: 8px;
+}
+
+.compact-row.top {
+ margin-bottom: 2px;
+}
+
+.category-info-compact {
+ display: flex;
+ align-items: center;
+ gap: 6px;
+ min-width: 0;
+ flex: 1;
+}
+
+.text-ellipsis {
+ overflow: hidden;
+ text-overflow: ellipsis;
+ white-space: nowrap;
+ font-size: 13px;
+}
+
+/* 调整紧凑模式下的字体大小 */
+.compact-row .category-percent {
+ font-size: 12px;
+}
+
+.compact-row .category-amount {
+ font-size: 14px;
+}
+
+.compact-row .category-count {
+ font-size: 11px;
+}