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

是否支持滚动定位到某元素位置? #4

Open
XuChunxiao opened this issue Aug 23, 2021 · 6 comments
Open

是否支持滚动定位到某元素位置? #4

XuChunxiao opened this issue Aug 23, 2021 · 6 comments

Comments

@XuChunxiao
Copy link

进入列表需要定位到某元素位置,是否有API支持index值滚动定位?

@tingyuxuan2302
Copy link
Owner

进入列表需要定位到某元素位置,是否有API支持index值滚动定位?

暂不支持,非常好的建议,最近有点忙,后期找时间会加入该需求🤝

@GrapevineLin
Copy link

同求,支持

@mdddj
Copy link

mdddj commented Oct 3, 2021

+1

@wiscgazf
Copy link

wiscgazf commented Dec 1, 2021

+1 哈哈~

我还试了通过scrollIntoView 属性 定位到指定的item,但是发现超过10 就会被分割成一个page,然而设置的item组件容器的id 在scroll-view组件中必须是根容器才能识别 外层包裹page后 没法跟踪 估计没法通过scrollInto的方式定位 得换一种方式定位当前page是第几个 加上前面的page页高度 在设置scrollTop的value了

@17

This comment was marked as outdated.

@syx112233
Copy link

同求

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants