forked from 77media/video-flow
统一创建:8s不扩展剧本
This commit is contained in:
parent
8260f01608
commit
0131a43035
@ -100,7 +100,14 @@ export const ConfigPanel = ({
|
||||
<Dropdown
|
||||
menu={{
|
||||
items: durationMenuItems,
|
||||
onClick: ({ key }) => onConfigChange('videoDuration', key as VideoDurationValue),
|
||||
onClick: ({ key }) => {
|
||||
onConfigChange('videoDuration', key as VideoDurationValue);
|
||||
if (key === '8s') {
|
||||
onConfigChange('expansion_mode', false);
|
||||
} else {
|
||||
onConfigChange('expansion_mode', true);
|
||||
}
|
||||
},
|
||||
className: 'bg-[#1a1a1a] border border-white/10'
|
||||
}}
|
||||
trigger={['click']}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user