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

fix: (route-view) remove transition mode #9

Closed

Conversation

HiNikkiZeng
Copy link

remove attribute mode="out-in" on transition ,because when any one of component includes element table wont be render any one of other component once click other routes
移除 transition 上的mode 属性,因为当任意组件带有 element table 组件时,再点任意其他路由会不渲染,另外建议移除pnpm-lock.yaml 文件,一旦没有装 pnpm 则无法启动项目,移除即可启动

@pany-ang
Copy link
Member

pany-ang commented Apr 22, 2022

transition 的问题我早就注意到了,移除 mode 属性会导致动画效果很丑,并且控制台会出现警告,所以它不能解决根本问题。问题原因在于 transition 组件只接收一个根元素,将你的页面代码用 div 包裹一下即可(包括注释也要包裹进去)

@pany-ang
Copy link
Member

你甚至可以直接将 transition 替换为 div,后果就是路由跳转没有动画效果,但是不用你去修改页面代码了

@pany-ang
Copy link
Member

这个问题,我还没有去特意找过解决方案。等我去看看社区其他作者有没有最佳的方案

@pany-ang
Copy link
Member

@pany-ang
Copy link
Member

不好意思,目前为止,我还没找到合适的解决方法。所以这个问题可能要先搁置了。至于你提到的 pnpm 的问题,还是建议你也同步使用 pnpm,它真的很好用。

@pany-ang pany-ang closed this Jun 15, 2022
@HiNikkiZeng
Copy link
Author

HiNikkiZeng commented Oct 11, 2022 via email

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

Successfully merging this pull request may close these issues.

None yet

3 participants