From 0f4b847d69e90e5bbb4fb0883fb5ea1dd1daf1e7 Mon Sep 17 00:00:00 2001 From: vben Date: Tue, 3 Nov 2020 21:20:01 +0800 Subject: [PATCH] perf(lazy-container): optimize lazyContainer code --- .browserslistrc | 3 - CHANGELOG.zh_CN.md | 4 +- .../Container/src/LazyContainer.vue | 79 +++++------------- .../src/collapse/CollapseContainer.vue | 12 +-- src/components/ContextMenu/src/index.tsx | 4 + src/components/Preview/src/index.tsx | 1 + src/router/menus/modules/demo/comp.ts | 50 +++++++----- src/router/routes/modules/demo/comp.ts | 21 ++++- src/views/demo/comp/lazy/Transition.vue | 80 +++++++++++++++++++ src/views/demo/comp/lazy/index.vue | 22 +++-- 10 files changed, 179 insertions(+), 97 deletions(-) delete mode 100644 .browserslistrc create mode 100644 src/views/demo/comp/lazy/Transition.vue diff --git a/.browserslistrc b/.browserslistrc deleted file mode 100644 index 8f960439..00000000 --- a/.browserslistrc +++ /dev/null @@ -1,3 +0,0 @@ -> 1% -last 2 versions -not ie <= 10 diff --git a/CHANGELOG.zh_CN.md b/CHANGELOG.zh_CN.md index 8f4d56e6..8ac9e833 100644 --- a/CHANGELOG.zh_CN.md +++ b/CHANGELOG.zh_CN.md @@ -2,7 +2,8 @@ ### ⚡ Performance Improvements -- 菜单性能继续优化 +- 菜单性能继续优化,更流畅 +- 优化懒加载组件及示例 ### 🎫 Chores @@ -13,6 +14,7 @@ ### 🐛 Bug Fixes - 修复升级之后 table 类型问题 +- 修复分割菜单且左侧菜单没有数据时候,继续展示上一次子菜单的问题 ## 2.0.0-rc.8 (2020-11-2) diff --git a/src/components/Container/src/LazyContainer.vue b/src/components/Container/src/LazyContainer.vue index 74cc3646..13ccf16b 100644 --- a/src/components/Container/src/LazyContainer.vue +++ b/src/components/Container/src/LazyContainer.vue @@ -1,9 +1,16 @@ @@ -24,7 +27,7 @@ }, }); -