From b46541ad36bf0c2271be6e8552d7a071a2c02bdd Mon Sep 17 00:00:00 2001 From: lijiahangmax Date: Tue, 26 Sep 2023 01:11:57 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E7=94=A8=E6=88=B7=E5=81=8F?= =?UTF-8?q?=E5=A5=BD.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- orion-ops-ui/src/App.vue | 12 ++- .../src/components/global-setting/block.vue | 28 +++--- .../global-setting/form-wrapper.vue | 24 ++++- .../src/components/global-setting/index.vue | 92 +++++++++---------- orion-ops-ui/src/components/navbar/index.vue | 88 ++++++++---------- orion-ops-ui/src/config/settings.json | 14 --- orion-ops-ui/src/hooks/responsive.ts | 6 +- orion-ops-ui/src/layout/default-layout.vue | 71 +++++++------- orion-ops-ui/src/store/modules/app/index.ts | 53 ++++++----- orion-ops-ui/src/store/modules/app/types.ts | 52 ++++++++--- orion-ops-ui/src/store/modules/user/index.ts | 4 + orion-ops-ui/src/types/symbol.ts | 4 + 12 files changed, 243 insertions(+), 205 deletions(-) delete mode 100644 orion-ops-ui/src/config/settings.json create mode 100644 orion-ops-ui/src/types/symbol.ts diff --git a/orion-ops-ui/src/App.vue b/orion-ops-ui/src/App.vue index 5f8222a1..7de84eb7 100644 --- a/orion-ops-ui/src/App.vue +++ b/orion-ops-ui/src/App.vue @@ -1,15 +1,16 @@ diff --git a/orion-ops-ui/src/components/global-setting/block.vue b/orion-ops-ui/src/components/global-setting/block.vue index 63a38468..55b8553b 100644 --- a/orion-ops-ui/src/components/global-setting/block.vue +++ b/orion-ops-ui/src/components/global-setting/block.vue @@ -1,14 +1,15 @@ @@ -17,19 +18,18 @@ import { PropType } from 'vue'; import { useAppStore } from '@/store'; import FormWrapper from './form-wrapper.vue'; + import { RadioOption } from '@arco-design/web-vue/es/radio/interface'; interface OptionsProps { name: string; key: string; type?: string; defaultVal?: boolean | string | number; + options?: Array; } defineProps({ - title: { - type: String, - default: '', - }, + title: String, options: { type: Array as PropType, default() { @@ -56,13 +56,17 @@ menuCollapse: false, }); } + // 修改配置 appStore.updateSettings({ [key]: value }); + // TODO 同步偏好 + };