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

[New Feature] Cannot refresh slide component without reset its current index. #269

Closed
tinymins opened this issue Aug 2, 2018 · 1 comment

Comments

@tinymins
Copy link

tinymins commented Aug 2, 2018

What problem does this feature solve?

无限加载需求:Slider组件在刷新时一定会重置当前下标 https://github.com/didi/cube-ui/blob/dev/src/components/slide/slide.vue#L146

Infinite scroll load: Slider component will always reset its currentPageIndex when call refresh method, how can I call refresh with specific page index?

What does the proposed API look like?

Eg: $slide.refresh(newPageIndex)

@dolymood
Copy link
Contributor

dolymood commented Aug 3, 2018

1.10.10 已支持 refreshResetCurrent

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

No branches or pull requests

2 participants