From 300b2de37ef62f8c877b546d19f3253d18a982f8 Mon Sep 17 00:00:00 2001 From: chenshoulin Date: Sat, 24 Oct 2026 18:31:45 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E5=8D=A1=E7=89=87=E4=B8=8E=E5=88=86=E7=BB=84=E5=AF=B9=E5=BA=94?= =?UTF-8?q?=E5=85=B3=E7=B3=BB=EF=BC=8C=E4=BC=98=E5=8C=96=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=E4=B8=8E=E5=8F=AF=E8=AE=BF=E9=97=AE=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.spec.ts | 6 +- src/components/AppNav.vue | 14 +++-- src/components/BoardColumn.vue | 8 ++- src/components/TaskCard.spec.ts | 29 ++++++++- src/components/TaskCard.vue | 58 ++++++++++------- src/views/TodayView.spec.ts | 33 ++++++++-- src/views/TodayView.vue | 108 +++++++++++++------------------- 7 files changed, 158 insertions(+), 98 deletions(-) diff --git a/src/App.spec.ts b/src/App.spec.ts index 5e01a05..b598ea8 100644 --- a/src/App.spec.ts +++ b/src/App.spec.ts @@ -159,8 +159,10 @@ describe('App 路由', () => { await nextTick() const values = wrapper.findAll('dd').map((node) => node.text()) - // [今日待办, 逾期, 今天到期, 本周完成] - expect(values[3]).toBe('1') + // 统计带 = [逾期, 今天到期, 进行中, 待办]:刚完成的任务不进任何分组,四格都应是 0 + expect(values).toEqual(['0', '0', '0', '0']) + // 「本周完成」已移到页头副标题,不再占统计格 + expect(wrapper.find('[data-role="completed-this-week"]').text()).toBe('1') wrapper.unmount() }) }) diff --git a/src/components/AppNav.vue b/src/components/AppNav.vue index 62034de..9dcc04b 100644 --- a/src/components/AppNav.vue +++ b/src/components/AppNav.vue @@ -48,7 +48,7 @@ const LINKS = [ > +
+
diff --git a/src/components/BoardColumn.vue b/src/components/BoardColumn.vue index fbaedcd..c47859d 100644 --- a/src/components/BoardColumn.vue +++ b/src/components/BoardColumn.vue @@ -66,8 +66,14 @@ useDraggable(listRef, {