v4.0版本正式發布。
基於 vue-cli@3
進行構建
調整了項目的目錄結構
使用了最新的 eslint-plugin-vue@5
,重新格式化了代碼
現在可以在不刷新頁面的情況下 remove routes
更新了husky@1.3.1
增加了 jest 單元測試
新增了 npm run preview
、 npm run test:uni
、 npm run new
指令
使用了新的 mock 方式,解決了之前 mock 若干問題
vuex
啟用了 模塊化 namespaced
新增了 settings.js
,讓 sidebarLogo、fixedHeader、TagsViews 等都可配置
新增了 sidebar logo
重構了側邊欄 sidebar 代碼邏輯,並且優化了樣式和展開收起動畫,同時讓二級菜單內容過多時支持滾動
使用了 async/await 替代了部分 promise 代碼
增加了 header-search 組件 #1591
增加了 fearure[TagsView]: add affix porperty #1577
移除了 tree-table 組件。 element-ui
v2.7.0 開始支持tree-table
,所以不再獨立維護。
增加了權限配置 demo
增加了導出多級表頭 excel 的 demo
feature[Directive]: add auto-height table directive
keep-alive
,但當三級路由嵌套的情況下,支持的並不好。之後探索一個更好的解決方案。e2e-test
的例子。The v4.0 version was officially released.
Build based on vue-cli@3
Adjusted the directory structure
Reformatted the code with the latest eslint-plugin-vue@5
You can now remove routes without refreshing the page.
Updated husky@1.3.1
Added jest unit test
Added npm run preview
, npm run test:uni
, npm run new
directive
Using the new mock method, solved some problems with the previous mock
vuex
use namespaced
Added settings.js
to make sidebarLogo, fixedHeader, TagsViews, etc. configurable
Add sidebar logo
Refactored the sidebar code logic and optimized the style and unfolding the animation
Use Async/await
Add header-search #1591
Add fearure[TagsView]: add affix porperty #1577
Remove tree-table. element-ui
v2.7.0 started to support tree-table
, so it is no longer maintained independently.
Added permission configuration demohttps://github.com/PanJiaChen/vue-element-admin/commit/c963f56686b9731a517a17c4d562bc3da0fa3771
Added demo to export multi-level header excel
feature[Directive]: add auto-height table directive #1702 (by @yuntao1997 )
keep-alive
, but when the three-level routing is nested, the support is not good. Then explore a better solution.e2e-test
as appropriate.webpack5
still solves a lot of pain points before, the upgrade will be upgraded after the official version is released.