diff --git a/web/src/components/Toolbar.tsx b/web/src/components/Toolbar.tsx index 397aaf3..e9346d6 100644 --- a/web/src/components/Toolbar.tsx +++ b/web/src/components/Toolbar.tsx @@ -87,11 +87,10 @@ const ratioItems = [ { label: '3:4', value: '3:4' as AspectRatio }, ]; -const durationItems = [ - { label: '5s', value: '5' }, - { label: '10s', value: '10' }, - { label: '15s', value: '15' }, -]; +const durationItems = Array.from({ length: 12 }, (_, i) => { + const v = i + 4; + return { label: `${v}s`, value: String(v) }; +}); const modeLabels: Record = { universal: '全能参考', diff --git a/web/src/types/index.ts b/web/src/types/index.ts index 4a8878f..578bab9 100644 --- a/web/src/types/index.ts +++ b/web/src/types/index.ts @@ -1,7 +1,7 @@ export type CreationMode = 'universal' | 'keyframe'; export type ModelOption = 'seedance_2.0' | 'seedance_2.0_fast'; export type AspectRatio = '16:9' | '9:16' | '1:1' | '21:9' | '4:3' | '3:4'; -export type Duration = 5 | 10 | 15; +export type Duration = 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15; export type GenerationType = 'video' | 'image'; export interface UploadedFile {