mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 20:18:03 +08:00
asForm 支持 stateless function component
This commit is contained in:
parent
30b23bc7e0
commit
789a035016
@ -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