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

View File

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