fix: audio player pause

This commit is contained in:
jialin
2024-12-03 20:21:20 +08:00
parent 20f809740c
commit 4c75a5b421
8 changed files with 223 additions and 20 deletions
@@ -419,14 +419,14 @@ const GroundImages: React.FC<MessageProps> = forwardRef((props, ref) => {
useEffect(() => {
if (size === 'custom') {
form.current?.form?.setFieldsValue({
width: 256,
height: 256
width: 512,
height: 512
});
setParams((pre: object) => {
return {
...pre,
width: 256,
height: 256
width: 512,
height: 512
};
});
}
+3 -5
View File
@@ -115,9 +115,7 @@ export const ImageParamsConfig: ParamsSchema[] = [
{ label: 'playground.params.custom', value: 'custom', locale: true },
{ label: '256x256', value: '256x256' },
{ label: '512x512', value: '512x512' },
{ label: '1024x1024', value: '1024x1024' },
{ label: '1792x1024', value: '1792x1024' },
{ label: '1024x1792', value: '1024x1792' }
{ label: '1024x1024', value: '1024x1024' }
],
label: {
text: 'playground.params.size',
@@ -367,7 +365,7 @@ export const ImageCustomSizeConfig: ParamsSchema[] = [
},
attrs: {
min: 256,
max: 1792,
max: 1024,
step: 64,
inputnumber: false
},
@@ -387,7 +385,7 @@ export const ImageCustomSizeConfig: ParamsSchema[] = [
},
attrs: {
min: 256,
max: 1792,
max: 1024,
step: 64,
inputnumber: false
},