fix: uuid & nanoid should be disabled when editing (#3762)

This commit is contained in:
katherinehhh 2024-03-20 09:51:40 +08:00 committed by GitHub
parent 8e322ae151
commit 77cae4779a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View File

@ -30,6 +30,7 @@ export class NanoidFieldInterface extends CollectionFieldInterface {
required: true, required: true,
'x-decorator': 'FormItem', 'x-decorator': 'FormItem',
'x-component': 'Input', 'x-component': 'Input',
'x-disabled': '{{ !createOnly }}',
description: description:
"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}", "{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}",
}, },

View File

@ -32,6 +32,7 @@ export class UUIDFieldInterface extends CollectionFieldInterface {
required: true, required: true,
'x-decorator': 'FormItem', 'x-decorator': 'FormItem',
'x-component': 'Input', 'x-component': 'Input',
'x-disabled': '{{ !createOnly }}',
description: description:
"{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}", "{{t('Randomly generated and can be modified. Support letters, numbers and underscores, must start with an letter.')}}",
}, },