fix(plugin-worklfow): fix duplicated description in fields values (#368)
This commit is contained in:
parent
a01b385d65
commit
565249c05c
@ -1,7 +1,6 @@
|
|||||||
import React from "react";
|
import React from "react";
|
||||||
import { observer, useForm } from "@formily/react";
|
import { observer, useForm } from "@formily/react";
|
||||||
import { FormItem } from "@formily/antd";
|
import { Button, Cascader, Dropdown, Input, InputNumber, Menu, Select, Form } from "antd";
|
||||||
import { Button, Cascader, Dropdown, Input, InputNumber, Menu, Select } from "antd";
|
|
||||||
import { css } from "@emotion/css";
|
import { css } from "@emotion/css";
|
||||||
import { PlusOutlined, CloseCircleOutlined } from '@ant-design/icons';
|
import { PlusOutlined, CloseCircleOutlined } from '@ant-design/icons';
|
||||||
|
|
||||||
@ -419,8 +418,8 @@ export const CollectionFieldset = observer(({ value, onChange }: any) => {
|
|||||||
: { type: 'constant', value: value[field.name] };
|
: { type: 'constant', value: value[field.name] };
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<FormItem key={field.name} label={compile(field.uiSchema?.title ?? field.name)} labelAlign="left" className={css`
|
<Form.Item key={field.name} label={compile(field.uiSchema?.title ?? field.name)} labelAlign="left" className={css`
|
||||||
.ant-formily-item-control-content-component{
|
.ant-form-item-control-input-content{
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
`}>
|
`}>
|
||||||
@ -450,7 +449,7 @@ export const CollectionFieldset = observer(({ value, onChange }: any) => {
|
|||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
</VariableTypesContext.Provider>
|
</VariableTypesContext.Provider>
|
||||||
</FormItem>
|
</Form.Item>
|
||||||
);
|
);
|
||||||
})}
|
})}
|
||||||
{Object.keys(value).length < fields.length
|
{Object.keys(value).length < fields.length
|
||||||
|
Loading…
Reference in New Issue
Block a user