diff --git a/components/FormBuilder/FormItemsRenderer.d.ts b/components/FormBuilder/FormItemsRenderer.d.ts index 470151f..320ad43 100644 --- a/components/FormBuilder/FormItemsRenderer.d.ts +++ b/components/FormBuilder/FormItemsRenderer.d.ts @@ -11,9 +11,9 @@ export interface CustomRenderProps { /** 表单当前值 */ formValues: FormValues; /** 字段值 */ - value: any; + value?: any; /** 值变化回调 */ - onChange: (value: any) => void; + onChange?: (value: any) => void; /** 其他属性 */ [key: string]: any; } diff --git a/components/ImportFile/index.js b/components/ImportFile/index.js index c20f774..adcf67a 100644 --- a/components/ImportFile/index.js +++ b/components/ImportFile/index.js @@ -75,7 +75,7 @@ const ImportFile = (props) => { > {children && typeof children === "function" ? children({ form }) : children}