Add project ID field to dependency configuration
This commit is contained in:
parent
c265b2405b
commit
f2f5db5c17
@ -655,6 +655,7 @@ function ConfigModalForm({
|
|||||||
<InputNumber
|
<InputNumber
|
||||||
style={{ width: "100%" }}
|
style={{ width: "100%" }}
|
||||||
placeholder="数字 ID"
|
placeholder="数字 ID"
|
||||||
|
controls={false}
|
||||||
/>
|
/>
|
||||||
</ValidatedFormItem>
|
</ValidatedFormItem>
|
||||||
|
|
||||||
@ -718,6 +719,19 @@ function ConfigModalForm({
|
|||||||
style={{ display: "flex", marginBottom: 8 }}
|
style={{ display: "flex", marginBottom: 8 }}
|
||||||
align="baseline"
|
align="baseline"
|
||||||
>
|
>
|
||||||
|
<Form.Item
|
||||||
|
{...rest}
|
||||||
|
name={[name, "projectID"]}
|
||||||
|
rules={[{ required: true, message: "必填" }]}
|
||||||
|
style={{ marginBottom: 0 }}
|
||||||
|
normalize={(v) => v != null ? String(v) : undefined}
|
||||||
|
>
|
||||||
|
<InputNumber
|
||||||
|
placeholder="ID"
|
||||||
|
style={{ width: 100 }}
|
||||||
|
controls={false}
|
||||||
|
/>
|
||||||
|
</Form.Item>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
{...rest}
|
{...rest}
|
||||||
name={[name, "slug"]}
|
name={[name, "slug"]}
|
||||||
@ -726,7 +740,7 @@ function ConfigModalForm({
|
|||||||
>
|
>
|
||||||
<Input
|
<Input
|
||||||
placeholder="Slug"
|
placeholder="Slug"
|
||||||
style={{ width: 160 }}
|
style={{ width: 120 }}
|
||||||
/>
|
/>
|
||||||
</Form.Item>
|
</Form.Item>
|
||||||
<Form.Item
|
<Form.Item
|
||||||
@ -749,7 +763,7 @@ function ConfigModalForm({
|
|||||||
<Button
|
<Button
|
||||||
type="dashed"
|
type="dashed"
|
||||||
onClick={() =>
|
onClick={() =>
|
||||||
add({ slug: "", type: "requiredDependency" })
|
add({ projectID: "", slug: "", type: "requiredDependency" })
|
||||||
}
|
}
|
||||||
icon={<PlusOutlined />}
|
icon={<PlusOutlined />}
|
||||||
block
|
block
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user