refactor: map field support connect as remote table field (#3114)

This commit is contained in:
katherinehhh 2023-11-30 10:22:30 +08:00 committed by GitHub
parent f3c6f066ec
commit 300d8f4eb3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 1 deletions

View File

@ -8,6 +8,7 @@ export const circle: IField = {
group: 'map',
order: 3,
title: generateNTemplate('Circle'),
availableTypes: ['circle'],
description: generateNTemplate('Circle'),
sortable: true,
default: {

View File

@ -9,6 +9,7 @@ export const lineString: IField = {
order: 2,
title: generateNTemplate('Line'),
description: generateNTemplate('Line'),
availableTypes: ['lineString'],
sortable: true,
default: {
type: 'lineString',

View File

@ -9,6 +9,7 @@ export const point: IField = {
order: 1,
title: generateNTemplate('Point'),
description: generateNTemplate('Point'),
availableTypes: ['point'],
sortable: true,
default: {
type: 'point',

View File

@ -9,6 +9,7 @@ export const polygon: IField = {
order: 4,
title: generateNTemplate('Polygon'),
description: generateNTemplate('Polygon'),
availableTypes: ['polygon'],
sortable: true,
default: {
type: 'polygon',

View File

@ -21,7 +21,7 @@ export const useRegisterInterface = () => {
return;
}
}
registerField(field.group, field.title, field);
registerField(field.group, field.name as string, field);
});
}, [data]);
};