我封装了一层formily,在外层怎么调用formily的生命周期? #2929
Answered
by
janryWang
heianqishizhisuiyuan
asked this question in
Q&A [2.x]
-
我自己用formily封装了个通用组件,我在这个通用组件内创建了createForm,并把这个实例抛到外层,在调用这个组件是,我应该怎么优雅的(正确的)调用表单的副作用钩子(onFormInit, onFormMount,onFormUnmount等),字段的副作用钩子(onFieldMount等)
|
Beta Was this translation helpful? Give feedback.
Answered by
janryWang
Mar 14, 2022
Replies: 1 comment 5 replies
-
form放到外层实例化,传给你的组件不就行了 |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
janryWang
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
form放到外层实例化,传给你的组件不就行了