From 1d1246eb4abb3820c60f43a2102875904dde77b9 Mon Sep 17 00:00:00 2001 From: the1812 Date: Tue, 1 Apr 2025 08:47:28 +0800 Subject: [PATCH] Add theme logo option (#4996) --- .../components/style/custom-navbar/index.ts | 6 ++++- .../style/custom-navbar/logo/NavbarLogo.vue | 25 ++++++++++++++++--- 2 files changed, 27 insertions(+), 4 deletions(-) diff --git a/registry/lib/components/style/custom-navbar/index.ts b/registry/lib/components/style/custom-navbar/index.ts index 4b8019698..be1d78c04 100644 --- a/registry/lib/components/style/custom-navbar/index.ts +++ b/registry/lib/components/style/custom-navbar/index.ts @@ -58,7 +58,11 @@ const options = defineOptionsMetadata({ }, seasonLogo: { defaultValue: false, - displayName: '使用季节Logo', + displayName: '使用季节 Logo', + }, + themeLogo: { + defaultValue: true, + displayName: '使用主题色 Logo', }, touch: { defaultValue: false, diff --git a/registry/lib/components/style/custom-navbar/logo/NavbarLogo.vue b/registry/lib/components/style/custom-navbar/logo/NavbarLogo.vue index 93a3972e1..3124fb335 100644 --- a/registry/lib/components/style/custom-navbar/logo/NavbarLogo.vue +++ b/registry/lib/components/style/custom-navbar/logo/NavbarLogo.vue @@ -1,6 +1,11 @@