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 @@
- +