refactor: map field support connect as remote table field (#3114)
This commit is contained in:
parent
f3c6f066ec
commit
300d8f4eb3
@ -8,6 +8,7 @@ export const circle: IField = {
|
||||
group: 'map',
|
||||
order: 3,
|
||||
title: generateNTemplate('Circle'),
|
||||
availableTypes: ['circle'],
|
||||
description: generateNTemplate('Circle'),
|
||||
sortable: true,
|
||||
default: {
|
||||
|
@ -9,6 +9,7 @@ export const lineString: IField = {
|
||||
order: 2,
|
||||
title: generateNTemplate('Line'),
|
||||
description: generateNTemplate('Line'),
|
||||
availableTypes: ['lineString'],
|
||||
sortable: true,
|
||||
default: {
|
||||
type: 'lineString',
|
||||
|
@ -9,6 +9,7 @@ export const point: IField = {
|
||||
order: 1,
|
||||
title: generateNTemplate('Point'),
|
||||
description: generateNTemplate('Point'),
|
||||
availableTypes: ['point'],
|
||||
sortable: true,
|
||||
default: {
|
||||
type: 'point',
|
||||
|
@ -9,6 +9,7 @@ export const polygon: IField = {
|
||||
order: 4,
|
||||
title: generateNTemplate('Polygon'),
|
||||
description: generateNTemplate('Polygon'),
|
||||
availableTypes: ['polygon'],
|
||||
sortable: true,
|
||||
default: {
|
||||
type: 'polygon',
|
||||
|
@ -21,7 +21,7 @@ export const useRegisterInterface = () => {
|
||||
return;
|
||||
}
|
||||
}
|
||||
registerField(field.group, field.title, field);
|
||||
registerField(field.group, field.name as string, field);
|
||||
});
|
||||
}, [data]);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user