fix(plugin-worklfow): fix duplicated description in fields values (#368)

This commit is contained in:
Junyi 2022-05-10 13:26:55 +08:00 committed by GitHub
parent a01b385d65
commit 565249c05c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,6 @@
import React from "react";
import { observer, useForm } from "@formily/react";
import { FormItem } from "@formily/antd";
import { Button, Cascader, Dropdown, Input, InputNumber, Menu, Select } from "antd";
import { Button, Cascader, Dropdown, Input, InputNumber, Menu, Select, Form } from "antd";
import { css } from "@emotion/css";
import { PlusOutlined, CloseCircleOutlined } from '@ant-design/icons';
@ -419,8 +418,8 @@ export const CollectionFieldset = observer(({ value, onChange }: any) => {
: { type: 'constant', value: value[field.name] };
return (
<FormItem key={field.name} label={compile(field.uiSchema?.title ?? field.name)} labelAlign="left" className={css`
.ant-formily-item-control-content-component{
<Form.Item key={field.name} label={compile(field.uiSchema?.title ?? field.name)} labelAlign="left" className={css`
.ant-form-item-control-input-content{
display: flex;
}
`}>
@ -450,7 +449,7 @@ export const CollectionFieldset = observer(({ value, onChange }: any) => {
}}
/>
</VariableTypesContext.Provider>
</FormItem>
</Form.Item>
);
})}
{Object.keys(value).length < fields.length