diff --git a/packages/@core/preferences/__tests__/__snapshots__/config.test.ts.snap b/packages/@core/preferences/__tests__/__snapshots__/config.test.ts.snap index b6bf7b16..70868234 100644 --- a/packages/@core/preferences/__tests__/__snapshots__/config.test.ts.snap +++ b/packages/@core/preferences/__tests__/__snapshots__/config.test.ts.snap @@ -37,6 +37,7 @@ exports[`defaultPreferences immutability test > should not modify the config obj "enable": true, "icp": "", "icpLink": "", + "settingShow": true, }, "footer": { "enable": false, diff --git a/packages/@core/preferences/src/config.ts b/packages/@core/preferences/src/config.ts index 6da8eda1..2d685042 100644 --- a/packages/@core/preferences/src/config.ts +++ b/packages/@core/preferences/src/config.ts @@ -37,6 +37,7 @@ const defaultPreferences: Preferences = { enable: true, icp: '', icpLink: '', + settingShow: true, }, footer: { enable: false, diff --git a/packages/@core/preferences/src/types.ts b/packages/@core/preferences/src/types.ts index 45bde56f..2b536b85 100644 --- a/packages/@core/preferences/src/types.ts +++ b/packages/@core/preferences/src/types.ts @@ -88,6 +88,8 @@ interface CopyrightPreferences { icp: string; /** 备案号链接 */ icpLink: string; + /** 设置面板是否显示*/ + settingShow?: boolean; } interface FooterPreferences { diff --git a/packages/effects/layouts/src/widgets/preferences/blocks/layout/copyright.vue b/packages/effects/layouts/src/widgets/preferences/blocks/layout/copyright.vue index 484eece1..8db2822e 100644 --- a/packages/effects/layouts/src/widgets/preferences/blocks/layout/copyright.vue +++ b/packages/effects/layouts/src/widgets/preferences/blocks/layout/copyright.vue @@ -7,7 +7,7 @@ import InputItem from '../input-item.vue'; import SwitchItem from '../switch-item.vue'; defineOptions({ - name: 'PreferenceBreadcrumbConfig', + name: 'PreferenceCopyrightConfig', }); const props = defineProps<{ disabled: boolean }>(); diff --git a/packages/effects/layouts/src/widgets/preferences/blocks/layout/footer.vue b/packages/effects/layouts/src/widgets/preferences/blocks/layout/footer.vue index be161743..17964db8 100644 --- a/packages/effects/layouts/src/widgets/preferences/blocks/layout/footer.vue +++ b/packages/effects/layouts/src/widgets/preferences/blocks/layout/footer.vue @@ -4,7 +4,7 @@ import { $t } from '@vben/locales'; import SwitchItem from '../switch-item.vue'; defineOptions({ - name: 'PreferenceBreadcrumbConfig', + name: 'PreferenceFooterConfig', }); const footerEnable = defineModel('footerEnable'); diff --git a/packages/effects/layouts/src/widgets/preferences/blocks/layout/header.vue b/packages/effects/layouts/src/widgets/preferences/blocks/layout/header.vue index 07fdaf29..ccfac0d4 100644 --- a/packages/effects/layouts/src/widgets/preferences/blocks/layout/header.vue +++ b/packages/effects/layouts/src/widgets/preferences/blocks/layout/header.vue @@ -7,7 +7,7 @@ import SelectItem from '../select-item.vue'; import SwitchItem from '../switch-item.vue'; defineOptions({ - name: 'PreferenceBreadcrumbConfig', + name: 'PreferenceHeaderConfig', }); defineProps<{ disabled: boolean }>(); diff --git a/packages/effects/layouts/src/widgets/preferences/blocks/layout/sidebar.vue b/packages/effects/layouts/src/widgets/preferences/blocks/layout/sidebar.vue index 36925f85..5aeee7c4 100644 --- a/packages/effects/layouts/src/widgets/preferences/blocks/layout/sidebar.vue +++ b/packages/effects/layouts/src/widgets/preferences/blocks/layout/sidebar.vue @@ -5,7 +5,7 @@ import NumberFieldItem from '../number-field-item.vue'; import SwitchItem from '../switch-item.vue'; defineOptions({ - name: 'PreferenceBreadcrumbConfig', + name: 'PreferenceSidebarConfig', }); defineProps<{ disabled: boolean }>(); diff --git a/packages/effects/layouts/src/widgets/preferences/preferences-drawer.vue b/packages/effects/layouts/src/widgets/preferences/preferences-drawer.vue index ab713a7b..1cece3c1 100644 --- a/packages/effects/layouts/src/widgets/preferences/preferences-drawer.vue +++ b/packages/effects/layouts/src/widgets/preferences/preferences-drawer.vue @@ -116,6 +116,7 @@ const navigationAccordion = defineModel('navigationAccordion'); const footerEnable = defineModel('footerEnable'); const footerFixed = defineModel('footerFixed'); +const copyrightSettingShow = defineModel('copyrightSettingShow'); const copyrightEnable = defineModel('copyrightEnable'); const copyrightCompanyName = defineModel('copyrightCompanyName'); const copyrightCompanySiteLink = defineModel( @@ -369,7 +370,10 @@ async function handleReset() { v-model:footer-fixed="footerFixed" /> - +