feat: add custom value support for s3 region (#15968)

### What problem does this PR solve?
Allow S3-compatible data source region fields to accept custom values
while preserving search-and-select behavior.

### Type of change
- [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
buua436
2026-06-15 11:40:28 +08:00
committed by GitHub
parent eb6ea284a8
commit 400dfd50d8
3 changed files with 35 additions and 1 deletions

View File

@@ -69,6 +69,7 @@ export interface FormFieldConfig {
required?: boolean;
placeholder?: string;
options?: { label: string; value: string }[];
allowCustomValue?: boolean;
defaultValue?: any;
validation?: {
pattern?: RegExp;
@@ -456,6 +457,7 @@ export const RenderField = ({
triggerClassName="!shrink"
{...finalFieldProps}
options={field.options}
allowCustomValue={field.allowCustomValue}
disabled={field.disabled}
/>
);