fix: tts show error message

This commit is contained in:
jialin
2024-11-29 17:03:46 +08:00
parent 4cfe41ca9e
commit d1a80e1a64
6 changed files with 64 additions and 20 deletions
+13 -13
View File
@@ -322,19 +322,6 @@ export const ImageAdvancedParamsConfig: ParamsSchema[] = [
}
]
},
{
type: 'Checkbox',
name: 'random_seed',
label: {
text: 'playground.image.params.randomseed',
isLocalized: true
},
rules: [
{
required: false
}
]
},
{
type: 'InputNumber',
name: 'seed',
@@ -354,5 +341,18 @@ export const ImageAdvancedParamsConfig: ParamsSchema[] = [
required: false
}
]
},
{
type: 'Checkbox',
name: 'random_seed',
label: {
text: 'playground.image.params.randomseed',
isLocalized: true
},
rules: [
{
required: false
}
]
}
];
+4 -1
View File
@@ -1,3 +1,5 @@
import React from 'react';
export interface ModelSelectionItem extends Global.BaseOption<string> {
uid: number;
instanceId: symbol;
@@ -43,8 +45,9 @@ export interface ParamsSchema {
when: (values: Record<string, any>) => boolean;
};
defaultValue?: string | number | boolean;
required?: boolean;
rules: { required: boolean; message?: string }[];
placeholder?: string;
placeholder?: React.ReactNode;
attrs?: Record<string, any>;
description?: {
text: string;