refactor: refactor dataSource manager

This commit is contained in:
katherinehhh 2024-01-25 22:21:22 +08:00
parent 17fd701e3e
commit 6c98ac2c98

View File

@ -116,36 +116,36 @@ export const databaseConnectionSchema: ISchema = {
useDataSource: '{{ cm.useDataSourceFromRAC }}', useDataSource: '{{ cm.useDataSourceFromRAC }}',
}, },
properties: { properties: {
name: { key: {
type: 'void', type: 'void',
'x-decorator': 'Table.Column.Decorator', 'x-decorator': 'Table.Column.Decorator',
'x-component': 'Table.Column', 'x-component': 'Table.Column',
properties: { properties: {
name: { key: {
type: 'string', type: 'string',
'x-component': 'CollectionField', 'x-component': 'CollectionField',
'x-read-pretty': true, 'x-read-pretty': true,
}, },
}, },
}, },
description: { displayName: {
type: 'void', type: 'void',
'x-decorator': 'Table.Column.Decorator', 'x-decorator': 'Table.Column.Decorator',
'x-component': 'Table.Column', 'x-component': 'Table.Column',
properties: { properties: {
description: { displayName: {
type: 'string', type: 'string',
'x-component': 'CollectionField', 'x-component': 'CollectionField',
'x-read-pretty': true, 'x-read-pretty': true,
}, },
}, },
}, },
dialect: { type: {
type: 'void', type: 'void',
'x-decorator': 'Table.Column.Decorator', 'x-decorator': 'Table.Column.Decorator',
'x-component': 'Table.Column', 'x-component': 'Table.Column',
properties: { properties: {
dialect: { type: {
type: 'string', type: 'string',
'x-component': 'CollectionField', 'x-component': 'CollectionField',
'x-read-pretty': true, 'x-read-pretty': true,