chore: painting cache

This commit is contained in:
jialin
2024-12-27 14:56:06 +08:00
parent 542f048a67
commit bca56bfaad
17 changed files with 1411 additions and 1047 deletions
+9 -7
View File
@@ -216,15 +216,16 @@ export const ImageconstExtraConfig: ParamsSchema[] = [
label: 'playground.params.style.natural',
value: 'natural',
locale: true
}
},
{ label: 'common.options.none', value: null, locale: true }
],
attrs: {
allowClear: true
},
label: {
text: 'playground.params.style',
isLocalized: true
},
attrs: {
allowNull: true
},
rules: [
{
required: false
@@ -316,7 +317,7 @@ export const ImageAdvancedParamsConfig: ParamsSchema[] = [
},
{
type: 'Input',
name: 'negative_prompt', //ng_deepnegative_v1_75t,(badhandv4:1.2),EasyNegative,(worst quality:2),
name: 'negative_prompt', // e.g. ng_deepnegative_v1_75t,(badhandv4:1.2),EasyNegative,(worst quality:2),
label: {
text: 'playground.image.params.negativePrompt',
isLocalized: true
@@ -335,14 +336,15 @@ export const ImageAdvancedParamsConfig: ParamsSchema[] = [
name: 'preview',
options: [
{ label: 'Faster', value: 'preview_faster' },
{ label: 'Normal', value: 'preview' }
{ label: 'Normal', value: 'preview' },
{ label: 'common.options.none', value: null, locale: true }
],
label: {
text: 'Preview',
isLocalized: false
},
attrs: {
allowClear: true
allowNull: true
},
rules: [
{
+1 -1
View File
@@ -34,7 +34,7 @@ export interface ParamsSchema {
isLocalized?: boolean;
};
style?: React.CSSProperties;
options?: Global.BaseOption<string | number>[];
options?: Global.BaseOption<string | number | null>[];
value?: string | number | boolean | string[];
min?: number;
max?: number;