提交 7d8b8db2 编写于 作者: V Vben

fix(transition): fix transition not work close #334

上级 7156e47c
......@@ -7,6 +7,7 @@
### 🐛 Bug Fixes
- 确保 `table action` 的值被正确更新
- 修复页面切换的动画无法关闭
## 2.0.3 (2021-03-07)
......
......@@ -18,12 +18,16 @@ export function getTransitionName({
def: string;
cacheTabs: string[];
}) {
if (!enableTransition) {
return null;
}
const isInCache = cacheTabs.includes(route.name as string);
const transitionName = 'fade-slide';
let name: string | null = transitionName;
if (openCache) {
name = isInCache && route.meta.loaded && enableTransition ? transitionName : null;
name = isInCache && route.meta.loaded ? transitionName : null;
}
return name || route.meta.transitionName || def;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册