fix: adjust supported availableTypes for uuid, nano, and id (#5427)

This commit is contained in:
Katherine 2024-10-18 15:01:07 +08:00 committed by GitHub
parent aab4ba5874
commit fadda05424
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 3 deletions

View File

@ -31,7 +31,7 @@ export class IdFieldInterface extends CollectionFieldInterface {
'x-read-pretty': true, 'x-read-pretty': true,
}, },
}; };
availableTypes = ['bigInt', 'integer', 'string']; availableTypes = ['bigInt', 'integer'];
properties = { properties = {
'uiSchema.title': { 'uiSchema.title': {
type: 'string', type: 'string',

View File

@ -24,7 +24,7 @@ export class NanoidFieldInterface extends CollectionFieldInterface {
'x-component': 'NanoIDInput', 'x-component': 'NanoIDInput',
}, },
}; };
availableTypes = ['string', 'nanoid']; availableTypes = ['nanoid'];
properties = { properties = {
'uiSchema.title': { 'uiSchema.title': {
type: 'string', type: 'string',

View File

@ -26,7 +26,7 @@ export class UUIDFieldInterface extends CollectionFieldInterface {
'x-validator': 'uuid', 'x-validator': 'uuid',
}, },
}; };
availableTypes = ['string', 'uid', 'uuid']; availableTypes = ['uid', 'uuid'];
properties = { properties = {
'uiSchema.title': { 'uiSchema.title': {
type: 'string', type: 'string',