This commit is contained in:
asp_ly 2025-01-17 20:55:29 +08:00
parent cf84034643
commit 9fa33ff3da

View File

@ -226,9 +226,14 @@ const DeploymentConfigModal: React.FC<DeploymentConfigModalProps> = ({
key: {
type: 'string',
'x-decorator': 'FormItem',
'x-validator': {
pattern: '^[a-zA-Z][a-zA-Z0-9_]*$',
message: '键名只能包含字母、数字和下划线,且必须以字母开头'
},
'x-component': 'Input',
'x-component-props': {
placeholder: '请输入键'
placeholder: '请输入键',
allowClear: true
}
}
}