From 32405f6a20669f8de5dab3bd362b5fdb04f5c24a Mon Sep 17 00:00:00 2001 From: plightfield <1207120484@qq.com> Date: Thu, 10 Oct 2024 16:04:00 +0800 Subject: [PATCH] change --- src/layout/dock/index.tsx | 8 ++- src/layout/grid/BlockSettings.tsx | 88 +++++++++++++++++++++++++ src/layout/grid/BlockWrapper.tsx | 16 +++-- src/layout/grid/LinkBlock.tsx | 6 +- src/layout/grid/index.tsx | 34 +++++----- src/settings/SettingsOverlay.tsx | 4 -- src/settings/SettingsOverlayContent.tsx | 3 + src/settings/useSettingsStore.ts | 2 + 8 files changed, 134 insertions(+), 27 deletions(-) create mode 100644 src/layout/grid/BlockSettings.tsx diff --git a/src/layout/dock/index.tsx b/src/layout/dock/index.tsx index 4f5a911..3352115 100644 --- a/src/layout/dock/index.tsx +++ b/src/layout/dock/index.tsx @@ -10,6 +10,12 @@ export default defineComponent(() => { ref('dock') ) const current = ref(-1) + // window.addEventListener('keydown', (e) => { + // const i = layout.state.dockLabels.indexOf(e.key) + // if (i >= 0) { + // layout.state.dock[i] = null + // } + // }) return () => (