- 分类支出排行: 饼图支持点击类别切换显示/隐藏,百分比动态重新计算 - 每日支出趋势: 图例支持点击切换类别显示,隐藏类别不参与堆叠计算 - Dialog列表: 添加列排序功能(时间/商家/描述/金额) - Dialog列表: 添加分页功能,每页10条(分类)/8条(每日) - 饼图hover效果: 扇形放大、阴影增强、中心显示详情
27 lines
821 B
Svelte
27 lines
821 B
Svelte
<script lang="ts">
|
|
import * as Card from '$lib/components/ui/card';
|
|
import { Button } from '$lib/components/ui/button';
|
|
import BarChart3 from '@lucide/svelte/icons/bar-chart-3';
|
|
import Activity from '@lucide/svelte/icons/activity';
|
|
|
|
interface Props {
|
|
onLoadDemo: () => void;
|
|
}
|
|
|
|
let { onLoadDemo }: Props = $props();
|
|
</script>
|
|
|
|
<Card.Root>
|
|
<Card.Content class="flex flex-col items-center justify-center py-16">
|
|
<BarChart3 class="h-16 w-16 text-muted-foreground mb-4" />
|
|
<p class="text-lg font-medium">输入文件名开始分析</p>
|
|
<p class="text-sm text-muted-foreground mb-4">上传账单后可在此进行数据分析</p>
|
|
<Button variant="outline" onclick={onLoadDemo}>
|
|
<Activity class="mr-2 h-4 w-4" />
|
|
查看示例数据
|
|
</Button>
|
|
</Card.Content>
|
|
</Card.Root>
|
|
|
|
|