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

请问 vue-router 能否实现手机切换页面的fade效果 #1

Open
mhvs opened this issue May 4, 2018 · 1 comment
Open

请问 vue-router 能否实现手机切换页面的fade效果 #1

mhvs opened this issue May 4, 2018 · 1 comment

Comments

@mhvs
Copy link

mhvs commented May 4, 2018

我有一个需求是把手机做的尽量像原生app, 在路由这里遇到了问题, 进入一个路由时我需要进入的页面从下往上盖住当前页面, 返回时要把当前页面从上往下撤去. framework7 和onsenUI 的路由都是保留所有访问过的页面, 让新页面盖住旧页面来实现这种动画效果. 我想用 vue-router的路由, 但是我目前看到的vue-router的例子都是把 router-view 完整替换, 实现不了这种类似原生安卓的动画效果. 不知道你有没有好的办法.
http://www.framework7.cn/kitchen-sink/?theme=md framework7的动画效果.

@weipxiu
Copy link
Owner

weipxiu commented Feb 23, 2022

这个可以用多个组件渲染到一个路由(命名视图技术)思路解决

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

2 participants