{
event.stopPropagation();
if (event.target instanceof HTMLInputElement) return;
if (document.activeElement instanceof HTMLInputElement && event.currentTarget.contains(document.activeElement)) document.activeElement.blur();
}}
>
{showTitle ?
图像设置
: null}
{profile.quality.supported ?
{isGrokResolutionQuality(profile) ? "分辨率" : "质量"}
{activeQualityOptions.map((item) => (
onConfigChange("quality", item.value)}>
{item.label}
))}
: null}
{profile.transparentBackground.supported ?
透明背景
请求模型输出保留 Alpha 通道的 PNG
event.stopPropagation()}>
onConfigChange("transparentBackground", checked ? "true" : "false")}
/>
: null}
{resolutionChoices.length ?
分辨率
{resolutionChoices.map((choice) => (
selectResolution(choice)}>
{choice === "auto" ? "自动" : choice.toUpperCase()}
))}
: null}
{profile.size.allowCustom ?
尺寸
16倍数对齐
event.stopPropagation()}>
updateDimension("width", value)} />
↔
updateDimension("height", value)} />
: null}
{availableAspects.length ?
尺寸或比例
{availableAspects.map((item) => (
))}
: null}
{showCount && effectiveMaxCount > 1 ? (
生成张数
{Array.from({ length: Math.min(quickCount, effectiveMaxCount) }, (_, index) => index + 1).map((value) => (
onConfigChange("count", String(value))}>
{value}
))}
onConfigChange("count", String(value || 1))} />
) : null}