Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form的scrollToField能否添加一个offset参数以调整滚动位置? #3250

Closed
1 task done
simonNeo opened this issue Jul 26, 2024 · 2 comments
Closed
1 task done
Labels

Comments

@simonNeo
Copy link

simonNeo commented Jul 26, 2024

Basic Info

What are the similar cases of this feature

no

What problem does this feature solve?

当顶部被fixed元素遮挡时,滚动之后仍然看不到错误信息

@simonNeo
Copy link
Author

官方模板稍微改一点后就可复现,添加form rule,然后在底部添加一个一定高度的空白块使页面可滚动
image

@oljc
Copy link
Member

oljc commented Sep 11, 2024

@simonNeo 配置方式目前刻意隐藏了,如果需要可如以下方式配置:
formRef.value.innerScrollToField('xxxx',{block: 'center'})
可选配置项类型:
image
innerScrollToField 是内部函数,谨慎使用以防内部实现变动导致更新后无法使用。

@oljc oljc closed this as completed Sep 11, 2024
@oljc oljc added the ❓Q&A label Sep 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants