两个组件不在一块,怎么在别的组件中拿到FormDialog的关闭事件 #3788
Replies: 2 comments 1 reply
-
你在当前组件里面用useField() 获取当前字段,然后可以获取到他的父字段,然后你怎么操作都行了. import { useField } from "@formily/vue" const field = useField() //父字段的内容 |
Beta Was this translation helpful? Give feedback.
1 reply
-
使用Context,放入formDialog实例。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
FormDialog 里套了个Table,双击Table的某一行,然后关闭FormDialog。 用的是schema模式,怎么在列表中拿到FormDialog的关闭事件。
Beta Was this translation helpful? Give feedback.
All reactions