-
Notifications
You must be signed in to change notification settings - Fork 142
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
如何同时使用 RouterView / KeepAlive / Transition ? #174
Comments
使用
|
thanks. 已经转vite了,没有再用 jsx-next 。 resolveDynamicComponent也试过了,只要Transaction与KeepAlive一起用就一样的问题。可能我的写法上有点问题。。。 |
遇到同样的问题,没有解决方案吗 |
Next version |
我在tsx里面直接用Transition这个全局组件, 为啥会报错说这个 If this is a native custom element 这种 非要手动导入才行 |
目前的写法是
异常:
单独使用
RouteView
+KeepAlive
与RouteView
+Transition
都没有任何问题,就是KeepAlive
+Transition
一起就会出问题。另外也尝试过使用 slots / defineAsyncComponent 等方式
均只能
KeepAlive
与Transition
不在一起使用时正常。在 vite 中测试了一下是可以一起使用的。 似乎 children 在 vite 是个array,在这边是个 object ? 不太清楚。。。
edit:
在KeepAlive外层加入
<div></div>
就不会报错,但Transition失效,估计要调整一下。The text was updated successfully, but these errors were encountered: