From bc06db113a4e4266522f0fc0a1e3f510d9ea4fa8 Mon Sep 17 00:00:00 2001 From: expdsn <18111002318@163.com> Date: Wed, 30 Oct 2024 19:07:10 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E8=AE=BE=E7=BD=AE=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/config.ts | 4 +- src/layout/grid/DockSetting.tsx | 61 ++++++++++ src/layout/grid/Reset.tsx | 25 ++++ src/layout/grid/SiderSetting.tsx | 92 ++++++++++++++ src/layout/header/GlobalTime.tsx | 14 +-- src/layout/sider/ModeSwitch.tsx | 69 +++++++---- src/layout/sider/index.tsx | 153 ++++++++++++++---------- src/settings/SettingsOverlayContent.tsx | 9 ++ src/settings/useSettingsStore.ts | 4 +- src/widgets/gameVideo/Large.tsx | 4 +- 10 files changed, 339 insertions(+), 96 deletions(-) create mode 100644 src/layout/grid/DockSetting.tsx create mode 100644 src/layout/grid/Reset.tsx create mode 100644 src/layout/grid/SiderSetting.tsx diff --git a/src/config.ts b/src/config.ts index 70064d9..71c89ee 100644 --- a/src/config.ts +++ b/src/config.ts @@ -2,8 +2,8 @@ export const aIUrl = 'https://metaso.cn/?s=uitab&referrer_s=uitab&q=' export const translateUrl = 'https://fanyi.baidu.com/mtpe-individual/multimodal?lang=zh2en&query=' // oss地址 export const ossBase = import.meta.env.PROD - ? 'http://newfatfox.oss-cn-beijing.aliyuncs.com' - : 'http://newfatfox.oss-cn-beijing.aliyuncs.com' + ? 'https://oss.goosetab.com' + : 'https://oss.goosetab.com' // 前端地址 export const frontAddress = import.meta.env.PROD diff --git a/src/layout/grid/DockSetting.tsx b/src/layout/grid/DockSetting.tsx new file mode 100644 index 0000000..1ea6229 --- /dev/null +++ b/src/layout/grid/DockSetting.tsx @@ -0,0 +1,61 @@ +import SettingItem from '@/settings/SettingItem' +import useSettingsStore from '@/settings/useSettingsStore' +import { Select, Switch } from 'ant-design-vue' +import clsx from 'clsx' +import { defineComponent } from 'vue' +import useLayoutStore from '../useLayoutStore' + +export default defineComponent({ + name: 'SiderSetting', + props: {}, + setup() { + const settings = useSettingsStore() + const layout = useLayoutStore() + + return () => ( +
选中要更换快捷键的目标,点击键盘即可更换快捷键
+ +将会把您的历史调整清空,恢复成最初的样式
+