From 79796aaafe6031c404fa1a61be5d249045bd54a5 Mon Sep 17 00:00:00 2001 From: zhenjintao Date: Thu, 23 Dec 2021 20:23:12 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20object=E5=A2=9E=E5=8A=A0required?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/formFields/object/index.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/components/formFields/object/index.tsx b/src/components/formFields/object/index.tsx index 39fb603..b0de063 100644 --- a/src/components/formFields/object/index.tsx +++ b/src/components/formFields/object/index.tsx @@ -3,7 +3,7 @@ import getALLComponents from '../' import React from 'react' import ConditionHelper from '../../../util/condition' import { cloneDeep } from 'lodash' -import { getValue, setValue } from '../../../util/value' +import { getValue, setValue, getBoolean } from '../../../util/value' import StatementHelper from '../../../util/statement' export interface ObjectFieldConfig extends FieldConfig { @@ -34,6 +34,7 @@ export interface IObjectFieldItemField { description?: string message?: string extra?: string + required: boolean layout: 'horizontal' | 'vertical' | 'inline' visitable: boolean fieldType: string @@ -449,6 +450,7 @@ export default class ObjectField extends Field