|
|
|
@@ -421,7 +421,18 @@ function CreateServiceVersion() { |
|
|
|
<> |
|
|
|
<Row gutter={8}> |
|
|
|
<Col span={10}> |
|
|
|
<Form.Item label="环境变量"></Form.Item> |
|
|
|
<Form.Item label="环境变量"> |
|
|
|
{fields.length === 0 ? ( |
|
|
|
<Button |
|
|
|
type="link" |
|
|
|
style={{ padding: '0' }} |
|
|
|
onClick={() => add()} |
|
|
|
disabled={disabled} |
|
|
|
> |
|
|
|
添加环境变量 |
|
|
|
</Button> |
|
|
|
) : null} |
|
|
|
</Form.Item> |
|
|
|
</Col> |
|
|
|
</Row> |
|
|
|
{fields.map(({ key, name, ...restField }) => ( |
|
|
|
@@ -457,7 +468,8 @@ function CreateServiceVersion() { |
|
|
|
disabled={disabled} |
|
|
|
onClick={() => { |
|
|
|
modalConfirm({ |
|
|
|
content: '是否确认删除?', |
|
|
|
title: '删除', |
|
|
|
content: '是否确认要删除该环境变量?', |
|
|
|
onOk: () => { |
|
|
|
remove(name); |
|
|
|
}, |
|
|
|
@@ -466,19 +478,20 @@ function CreateServiceVersion() { |
|
|
|
></Button> |
|
|
|
</Flex> |
|
|
|
))} |
|
|
|
<Button |
|
|
|
type="link" |
|
|
|
style={{ padding: '0', margin: '-24px 0 24px' }} |
|
|
|
onClick={() => add()} |
|
|
|
icon={<PlusOutlined />} |
|
|
|
disabled={disabled} |
|
|
|
> |
|
|
|
环境变量 |
|
|
|
</Button> |
|
|
|
{fields.length > 0 ? ( |
|
|
|
<Button |
|
|
|
type="link" |
|
|
|
style={{ padding: '0', margin: '-24px 0 24px' }} |
|
|
|
onClick={() => add()} |
|
|
|
icon={<PlusOutlined />} |
|
|
|
disabled={disabled} |
|
|
|
> |
|
|
|
环境变量 |
|
|
|
</Button> |
|
|
|
) : null} |
|
|
|
</> |
|
|
|
)} |
|
|
|
</Form.List> |
|
|
|
|
|
|
|
<Form.Item wrapperCol={{ offset: 0, span: 16 }}> |
|
|
|
<Button type="primary" htmlType="submit"> |
|
|
|
{buttonText} |
|
|
|
|