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', group: 'map',
order: 3, order: 3,
title: generateNTemplate('Circle'), title: generateNTemplate('Circle'),
availableTypes: ['circle'],
description: generateNTemplate('Circle'), description: generateNTemplate('Circle'),
sortable: true, sortable: true,
default: { default: {

View File

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

View File

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

View File

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

View File

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