feat(web): 新增 DateTimePicker 组件,优化手动添加账单表单

- 使用 shadcn-ui 的 Calendar + Popover 替换原生 datetime-local
- 根据收支类型动态切换分类选项(支出/收入分类)
- 切换收支类型时自动清空已选分类
- 收入模式下隐藏支付方式和交易状态输入框
- 调整表单布局为 1:1 两列
This commit is contained in:
CHE LIANG ZHAO
2026-01-13 13:23:06 +08:00
parent 0e41bbdf59
commit 6580a434ee
4 changed files with 171 additions and 37 deletions

View File

@@ -483,6 +483,6 @@
<!-- 手动添加视图 -->
{#if activeTab === 'manual'}
<ManualBillInput {categories} onSuccess={handleManualBillSuccess} />
<ManualBillInput onSuccess={handleManualBillSuccess} />
{/if}
</div>