|
|
|
@@ -123,8 +123,6 @@ function MirrorCreate() { |
|
|
|
return true; |
|
|
|
}; |
|
|
|
|
|
|
|
const descTitle = isAddVersion ? '版本描述' : '镜像描述'; |
|
|
|
|
|
|
|
return ( |
|
|
|
<div className={styles['mirror-create']}> |
|
|
|
<PageTitle title={!isAddVersion ? '创建镜像' : '新增镜像版本'}></PageTitle> |
|
|
|
@@ -161,6 +159,7 @@ function MirrorCreate() { |
|
|
|
message: '只支持小写字母、数字、点(.)、下划线(_)、中横线(-)、斜杠(/)', |
|
|
|
}, |
|
|
|
]} |
|
|
|
className={styles['mirror-create__content__name-row']} |
|
|
|
> |
|
|
|
<Input |
|
|
|
placeholder="请输入镜像名称" |
|
|
|
@@ -193,21 +192,45 @@ function MirrorCreate() { |
|
|
|
</Form.Item> |
|
|
|
</Col> |
|
|
|
</Row> |
|
|
|
{!isAddVersion && ( |
|
|
|
<Row gutter={10}> |
|
|
|
<Col span={20}> |
|
|
|
<Form.Item |
|
|
|
label="镜像描述" |
|
|
|
name="description" |
|
|
|
rules={[ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
message: '请输入镜像描述', |
|
|
|
}, |
|
|
|
]} |
|
|
|
> |
|
|
|
<Input.TextArea |
|
|
|
autoSize={{ minRows: 2, maxRows: 6 }} |
|
|
|
placeholder="请输入镜像描述" |
|
|
|
maxLength={128} |
|
|
|
showCount |
|
|
|
allowClear |
|
|
|
/> |
|
|
|
</Form.Item> |
|
|
|
</Col> |
|
|
|
</Row> |
|
|
|
)} |
|
|
|
<Row gutter={10}> |
|
|
|
<Col span={20}> |
|
|
|
<Form.Item |
|
|
|
label={descTitle} |
|
|
|
name="description" |
|
|
|
label="版本描述" |
|
|
|
name="version_description" |
|
|
|
rules={[ |
|
|
|
{ |
|
|
|
required: true, |
|
|
|
message: `请输入${descTitle}`, |
|
|
|
message: '请输入版本描述', |
|
|
|
}, |
|
|
|
]} |
|
|
|
> |
|
|
|
<Input.TextArea |
|
|
|
autoSize={{ minRows: 2, maxRows: 6 }} |
|
|
|
placeholder={`请输入${descTitle}`} |
|
|
|
placeholder="请输入版本描述" |
|
|
|
maxLength={128} |
|
|
|
showCount |
|
|
|
allowClear |
|
|
|
|