:tada: A magical vue admin https://panjiachen.github.io/vue-element-admin
基于 vue-cli@3
进行构建
调整了项目的目录结构
使用了最新的 eslint-plugin-vue@5
,重新格式化了代码
增加了 jest 单元测试
新增了 npm run preview
、 npm run test:uni
、 npm run new
指令
使用了新的 mock 方式
vuex 启用了 模块化 namespaced
新增了 settings,让 sidebarLogo、fixedHeader、TagsViews 等都可配置
新增了 sidebar logo
重构了侧边栏 sidebar 代码逻辑,并且优化了样式和展开收起动画,同时让二级菜单内容过多时支持滚动
使用了 async/await 替代了部分 promise 代码
增加了 header-search 组件 https://github.com/PanJiaChen/vue-element-admin/pull/1591
增加了 fearure[TagsView]: add affix porperty https://github.com/PanJiaChen/vue-element-admin/pull/1577
重构了 tree-table 组件 (by @Liugq5713)
增加了权限配置 demo https://github.com/PanJiaChen/vue-element-admin/commit/c963f56686b9731a517a17c4d562bc3da0fa3771 (by @gaoshijun1993 )
增加了导出多级表头 excel 的 demo https://github.com/PanJiaChen/vue-element-admin/commit/763b31d915be67aecc8f24283d4898ccded8b55b (by @llccing)
feature[Directive]: add auto-height table directive https://github.com/PanJiaChen/vue-element-admin/pull/1702 (by @yuntao1997 )
总结来说:就是 4.0 版本改了很多东西,是一次不兼容更新。
vue-router
来修复 url 地中含有中文字符的 bug #1362<el-form-item>
wrapper for validate #1428 (by @jingyulong)vue-router
to fixed url path for non ascii urls #1362<el-form-item>
wrapper for validate #1428 (by @jingyulong):tada: feature: 新增利用 table 表头排序的 demo (#1236)
:tada: feature: 新增可拖拽 select 组件 (#1249)
:bug: fixed[TagsView]: 修复 openMenu 在边界情况下的展示问题 (#1256)
下一次发布应该就是 v4.0 版本了,完全基于 [email protected] 进行构建,并添加了配置项功能,用户可自由选择是否需要 TagsView,默认语言等功能,并开始逐步补齐单元测试。
v3.9.x 版本应该还会并行维护一段时间,照顾那些暂时不能升级的用户
:tada: feature: add an example of sort data by table (#1236)
:tada: feature: add drag select component (#1249)
:bug: fixed[TagsView]: fix openMenu boundary display bug (#1256)
The next release should be v4.0 version, built entirely based on [email protected], and added configuration, users can freely choose whether they need TagsView, default language and other settings, and start to gradually complete unit test.
The v3.9.x version should also be maintained in parallel for a period of time, taking care of users who are temporarily unable to upgrade.
templateParameters
来简化 index.html 模板 #1156 (by @happystory )templateParameters
to refine index.html #1156 (by @happystory )svgo
script to optimize svg (doc) #1096permission.js
logic #1067 (by @inklake )tinymce
components 87b319dsvgo
指令来优化 svg (文档) #1096permission.js
逻辑 #1067 (by @inklake )eslint-plugin-vue
to lint codeeslint-plugin-vue
来更好的lint
代码Update to webpack4
and vue-loader@15
.
Upgraded dependent third-party libraries to the latest version.
If you still want to continue using webpack3, please use this branch webpack3
hidden:true
(#880)hidden:true
时候出现的bug (#880)The next version will upgrade webpack@4
and vue-loader@15
lint-staged
#818el-col
:span #841 by @ZYSzyslint-staged
进行提交格式化校验 #818el-col
:span #841 by @ZYSzys