From a7a3cb3ef63b1f4c282be30fe3bd46ff5d6b6d1e Mon Sep 17 00:00:00 2001 From: seaHi Date: Wed, 5 Aug 2026 14:19:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E7=AB=99=E7=82=B9?= =?UTF-8?q?=E5=A4=96=E8=A7=82=E8=87=AA=E5=AE=9A=E4=B9=89=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E4=B8=8E=E9=A6=96=E9=A1=B5=E4=B8=BB=E5=9B=BE=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/FeaturedImagePicker.svelte | 24 ++++++-- src/routes/+layout.server.ts | 4 +- src/routes/+layout.svelte | 5 +- src/routes/admin/settings/+page.server.ts | 27 ++++++++ src/routes/admin/settings/+page.svelte | 61 +++++++++++++++++++ 5 files changed, 112 insertions(+), 9 deletions(-) diff --git a/src/lib/components/admin/FeaturedImagePicker.svelte b/src/lib/components/admin/FeaturedImagePicker.svelte index f19d7cf..8eec101 100644 --- a/src/lib/components/admin/FeaturedImagePicker.svelte +++ b/src/lib/components/admin/FeaturedImagePicker.svelte @@ -2,7 +2,17 @@ import { addToast } from '$lib/stores/toast.svelte'; import Tabs from './Tabs.svelte'; - let { cover = $bindable('') } = $props<{ cover?: string | null }>(); + let { + cover = $bindable(''), + title = '特色图', + inputName = 'cover', + aspectRatio = '16/9' + } = $props<{ + cover?: string | null; + title?: string; + inputName?: string; + aspectRatio?: string; + }>(); let activeTab = $state('url'); let isUploading = $state(false); @@ -80,11 +90,13 @@ - +