From 65fc29f777d602981b3e094b0c270f505e6b9148 Mon Sep 17 00:00:00 2001 From: Ironsp <1522278303@qq.com> Date: Thu, 17 Sep 2026 16:33:54 +0800 Subject: [PATCH] =?UTF-8?q?feat=20=E6=95=B0=E6=8D=AE=E6=B5=81=E6=A8=A1?= =?UTF-8?q?=E6=8B=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/auto-imports.d.ts | 4 ++ src/components/FullscreenNav.vue | 16 ++--- src/components/heatmap/canvas.vue | 2 + src/components/home/status.vue | 22 ++----- src/components/work/dashboard.vue | 33 ++++++++--- src/components/work/rtkCanvas.vue | 2 + src/components/work/rtkHeader.vue | 10 +--- src/composables/useRtkLive.ts | 99 +++++++++++++++++++++++++++++++ 8 files changed, 144 insertions(+), 44 deletions(-) create mode 100644 src/composables/useRtkLive.ts diff --git a/src/auto-imports.d.ts b/src/auto-imports.d.ts index 5369f69..1959f69 100644 --- a/src/auto-imports.d.ts +++ b/src/auto-imports.d.ts @@ -104,6 +104,7 @@ declare global { const pausableWatch: typeof import('@vueuse/core')['pausableWatch'] const provide: typeof import('vue')['provide'] const provideLocal: typeof import('@vueuse/core')['provideLocal'] + const publishRtkPoint: typeof import('./composables/useRtkLive')['publishRtkPoint'] const reactify: typeof import('@vueuse/core')['reactify'] const reactifyObject: typeof import('@vueuse/core')['reactifyObject'] const reactive: typeof import('vue')['reactive'] @@ -266,6 +267,7 @@ declare global { const useRafFn: typeof import('@vueuse/core')['useRafFn'] const useRefHistory: typeof import('@vueuse/core')['useRefHistory'] const useResizeObserver: typeof import('@vueuse/core')['useResizeObserver'] + const useRtkLive: typeof import('./composables/useRtkLive')['useRtkLive'] const useSSRWidth: typeof import('@vueuse/core')['useSSRWidth'] const useScreenOrientation: typeof import('@vueuse/core')['useScreenOrientation'] const useScreenSafeArea: typeof import('@vueuse/core')['useScreenSafeArea'] @@ -453,6 +455,7 @@ declare module 'vue' { readonly pausableWatch: UnwrapRef readonly provide: UnwrapRef readonly provideLocal: UnwrapRef + readonly publishRtkPoint: UnwrapRef readonly reactify: UnwrapRef readonly reactifyObject: UnwrapRef readonly reactive: UnwrapRef @@ -615,6 +618,7 @@ declare module 'vue' { readonly useRafFn: UnwrapRef readonly useRefHistory: UnwrapRef readonly useResizeObserver: UnwrapRef + readonly useRtkLive: UnwrapRef readonly useSSRWidth: UnwrapRef readonly useScreenOrientation: UnwrapRef readonly useScreenSafeArea: UnwrapRef diff --git a/src/components/FullscreenNav.vue b/src/components/FullscreenNav.vue index 4154f73..fd76917 100644 --- a/src/components/FullscreenNav.vue +++ b/src/components/FullscreenNav.vue @@ -1,22 +1,18 @@