mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-01 11:28:30 +08:00
asForm 支持 stateless function component
This commit is contained in:
parent
565ddbcf81
commit
2d017d4b89
@ -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`,
|
||||
|
Loading…
Reference in New Issue
Block a user