如何AutoScroll到指定的field,是否有提供直接的方案? #3842
Unanswered
chongqiangchen
asked this question in
Q&A [2.x]
Replies: 2 comments 2 replies
-
是不是希望滚动到校验失败的地方?粗暴的方式就是通过querySelector选中第一个feedback error,然后使用dom.scrollIntoViewIfNeeded() |
Beta Was this translation helpful? Give feedback.
2 replies
-
useField拿到的field数据有个data, 可以在组件挂载时将组件的el存到这里面。需要的时候就可以找到对应字段的el元素。 |
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
-
我在使用formily/antd-v5版本,我大概看了下好像没看到什么方案,有什么解决方案吗
Beta Was this translation helpful? Give feedback.
All reactions