1
This commit is contained in:
parent
6a8aa4e55b
commit
0313c02198
@ -379,7 +379,21 @@ const DeploymentConfigModal: React.FC<DeploymentConfigModalProps> = ({open, onCa
|
|||||||
</div>
|
</div>
|
||||||
<ScrollArea className="h-[200px] rounded-md border">
|
<ScrollArea className="h-[200px] rounded-md border">
|
||||||
<div className="space-y-4 p-4">
|
<div className="space-y-4 p-4">
|
||||||
{fields.map((field, index) => (
|
{fields.length === 0 ? (
|
||||||
|
<div className="h-[160px] flex flex-col items-center justify-center text-center">
|
||||||
|
<div className="w-10 h-10 mb-3 text-muted-foreground/60">
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" strokeLinejoin="round">
|
||||||
|
<path d="M20 7h-7M14 17H6M8 7H4M4 17h-2M18 17h4M14 7h8"/>
|
||||||
|
<path d="M12 20V4"/>
|
||||||
|
</svg>
|
||||||
|
</div>
|
||||||
|
<div className="text-sm text-muted-foreground/80">暂无环境变量配置</div>
|
||||||
|
<div className="text-xs text-muted-foreground/60 mt-1">
|
||||||
|
点击"添加变量"开始配置
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
) : (
|
||||||
|
fields.map((field, index) => (
|
||||||
<div key={field.id} className="flex gap-4 items-start">
|
<div key={field.id} className="flex gap-4 items-start">
|
||||||
<FormField
|
<FormField
|
||||||
control={form.control}
|
control={form.control}
|
||||||
@ -415,7 +429,8 @@ const DeploymentConfigModal: React.FC<DeploymentConfigModalProps> = ({open, onCa
|
|||||||
<X className="h-4 w-4"/>
|
<X className="h-4 w-4"/>
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
))}
|
))
|
||||||
|
)}
|
||||||
</div>
|
</div>
|
||||||
</ScrollArea>
|
</ScrollArea>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user