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

文档过于简陋 #31

Open
XIAOGUIGUI opened this issue Nov 6, 2017 · 1 comment
Open

文档过于简陋 #31

XIAOGUIGUI opened this issue Nov 6, 2017 · 1 comment
Labels

Comments

@XIAOGUIGUI
Copy link

如果想禁止滑动,要怎么处理啊?

@zhangbobell
Copy link
Collaborator

见 README 说明,禁止滑动分为:禁止前向滑动(只允许后向滑动)、禁止后向滑动(只允许前向滑动)和禁止双向滑动。

这些定义在 Transition.direction 数据结构里面,direction 为允许滑动的方向。-1:允许前向滑动,1:允许后向滑动,0:禁止双向滑动。

另外,禁止滑动还可以在某一页禁止滑动或者全部页面禁止滑动。前者可以将 transition 放在 Page 定义里面,后者可以将 transition 放在全局配置里面。

这些定义在 Page全局配置 部分有说明。

后续将整理一些 DEMO 供大家参考。

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