EntityEditor

EntityEditor 组件是一个根据实体属性动态渲染字段的表单。使用 FormField ,根据实体的属性类型渲染正确的输入组件(比如,CheckboxDatepicker 等)。展示的可编辑字段(也就是可编辑的实体属性)可以通过 fields 属性配置。

<EntityEditor entityName={nestedEntityName}
              fields={this.fields}
              dataInstance={this.dataInstance}
              associationOptions={this.associationOptions}
              onSubmit={this.handleSubmit}
              onCancel={this.closeDrawer}
              submitButtonText='common.ok'
/>