fix: tts show error message
This commit is contained in:
@@ -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
|
||||
}
|
||||
]
|
||||
}
|
||||
];
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user