fix:渲染数据添加标识符

Change-Id: I19bb7b8abf444037f1dc1e517117467705946d9d
This commit is contained in:
qianchuan 2022-06-21 17:40:42 +08:00
parent fbb92a3f4c
commit 31f98931e2

View File

@ -98,6 +98,11 @@ export interface FormulaControlProps extends FormControlProps {
* props
*/
formProps?: any;
/**
* 使Form数据
*/
useExternalFormData?: boolean;
}
interface FormulaControlState {
@ -352,6 +357,7 @@ export default class FormulaControl extends React.Component<
rendererSchema,
rendererWrapper,
manager,
useExternalFormData = false,
...rest
} = this.props;
@ -410,9 +416,11 @@ export default class FormulaControl extends React.Component<
{render(
this.filterCustomRendererProps(rendererSchema),
{
data: {
data: useExternalFormData
? {
...this.props.data
},
}
: {},
onChange: this.handleSimpleInputChange,
manager: manager
},