chore: preview field use switch
This commit is contained in:
@@ -423,6 +423,7 @@ export const ImageAdvancedParamsConfig: ParamsSchema[] = [
|
||||
isLocalized: true
|
||||
},
|
||||
attrs: {
|
||||
scaleSize: true,
|
||||
trim: false,
|
||||
autoSize: { minRows: 2, maxRows: 2 }
|
||||
},
|
||||
@@ -433,20 +434,12 @@ export const ImageAdvancedParamsConfig: ParamsSchema[] = [
|
||||
]
|
||||
},
|
||||
{
|
||||
type: 'Select',
|
||||
type: 'Switch',
|
||||
name: 'preview',
|
||||
options: [
|
||||
{ label: 'Faster', value: 'preview_faster' },
|
||||
{ label: 'Normal', value: 'preview' },
|
||||
{ label: 'common.options.none', value: null, locale: true }
|
||||
],
|
||||
label: {
|
||||
text: 'Preview',
|
||||
isLocalized: false
|
||||
},
|
||||
attrs: {
|
||||
allowNull: true
|
||||
},
|
||||
rules: [
|
||||
{
|
||||
required: false
|
||||
|
||||
@@ -29,7 +29,8 @@ type SchemaType =
|
||||
| 'Slider'
|
||||
| 'TextArea'
|
||||
| 'Checkbox'
|
||||
| 'Textarea';
|
||||
| 'Textarea'
|
||||
| 'Switch';
|
||||
|
||||
export interface ParamsSchema {
|
||||
type: SchemaType;
|
||||
|
||||
Reference in New Issue
Block a user