asForm 支持 stateless function component

This commit is contained in:
2betop 2020-06-03 18:12:04 +08:00
parent 565ddbcf81
commit 2d017d4b89

View File

@ -858,6 +858,7 @@ export function asFormItem(config: Omit<FormItemConfig, 'component'>) {
type={type}
classnames={cx}
ref={isSFC ? undefined : this.refFn}
forwardedRef={isSFC ? this.refFn : undefined}
formItem={model}
className={cx(
`Form-control`,