fix(plugin-fm): fix path config for storages (#1445)

This commit is contained in:
Junyi 2023-02-09 22:40:26 +08:00 committed by GitHub
parent d79143e3ed
commit 2b7f138491
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 22 additions and 22 deletions

View File

@ -13,12 +13,6 @@ const schema = {
'x-component': 'Input', 'x-component': 'Input',
required: true, required: true,
}, },
path: {
title: '{{t("Path")}}',
type: 'string',
'x-decorator': 'FormItem',
'x-component': 'Input',
},
serve: { serve: {
type: 'string', type: 'string',
'x-decorator': 'FormItem', 'x-decorator': 'FormItem',
@ -58,12 +52,6 @@ const schema = {
'x-component': 'Input', 'x-component': 'Input',
required: true, required: true,
}, },
path: {
title: '{{t("Path")}}',
type: 'string',
'x-decorator': 'FormItem',
'x-component': 'Input',
},
}, },
}, },
'tx-cos': { 'tx-cos': {
@ -128,12 +116,6 @@ const schema = {
'x-component': 'Input', 'x-component': 'Input',
required: true, required: true,
}, },
path: {
title: '{{t("Path")}}',
type: 'string',
'x-decorator': 'FormItem',
'x-component': 'Input',
},
}, },
}, },
}; };

View File

@ -54,6 +54,16 @@ const collection = {
required: true, required: true,
} as ISchema, } as ISchema,
}, },
{
type: 'string',
name: 'path',
interface: 'input',
uiSchema: {
title: '{{t("Path")}}',
type: 'string',
'x-component': 'Input',
} as ISchema
},
{ {
type: 'boolean', type: 'boolean',
name: 'default', name: 'default',
@ -162,6 +172,10 @@ export const storageSchema: ISchema = {
type: 'object', type: 'object',
'x-component': 'StorageOptions', 'x-component': 'StorageOptions',
}, },
path: {
'x-component': 'CollectionField',
'x-decorator': 'FormItem',
},
default: { default: {
'x-component': 'CollectionField', 'x-component': 'CollectionField',
'x-decorator': 'FormItem', 'x-decorator': 'FormItem',
@ -207,7 +221,7 @@ export const storageSchema: ISchema = {
useDataSource: '{{ cm.useDataSourceFromRAC }}', useDataSource: '{{ cm.useDataSourceFromRAC }}',
}, },
properties: { properties: {
column1: { title: {
type: 'void', type: 'void',
'x-decorator': 'Table.Column.Decorator', 'x-decorator': 'Table.Column.Decorator',
'x-component': 'Table.Column', 'x-component': 'Table.Column',
@ -219,7 +233,7 @@ export const storageSchema: ISchema = {
}, },
}, },
}, },
column2: { name: {
type: 'void', type: 'void',
'x-decorator': 'Table.Column.Decorator', 'x-decorator': 'Table.Column.Decorator',
'x-component': 'Table.Column', 'x-component': 'Table.Column',
@ -231,7 +245,7 @@ export const storageSchema: ISchema = {
}, },
}, },
}, },
column3: { default: {
type: 'void', type: 'void',
'x-decorator': 'Table.Column.Decorator', 'x-decorator': 'Table.Column.Decorator',
'x-component': 'Table.Column', 'x-component': 'Table.Column',
@ -243,7 +257,7 @@ export const storageSchema: ISchema = {
}, },
}, },
}, },
column4: { actions: {
type: 'void', type: 'void',
title: '{{t("Actions")}}', title: '{{t("Actions")}}',
'x-component': 'Table.Column', 'x-component': 'Table.Column',
@ -294,6 +308,10 @@ export const storageSchema: ISchema = {
type: 'object', type: 'object',
'x-component': 'StorageOptions', 'x-component': 'StorageOptions',
}, },
path: {
'x-component': 'CollectionField',
'x-decorator': 'FormItem',
},
default: { default: {
title: '', title: '',
'x-component': 'CollectionField', 'x-component': 'CollectionField',