v4.0.0-beta
重大改变
-
基于
vue-cli@3
进行构建 -
调整了项目的目录结构
- mock 文件移植根目录下
- layout 从 views 文件夹下移植 src 下
-
使用了最新的
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 组件 #1591
-
增加了 fearure[TagsView]: add affix porperty #1577
-
重构了 tree-table 组件 (by @Liugq5713)
-
增加了权限配置 demo c963f56 (by @gaoshijun1993 )
-
feature[Directive]: add auto-height table directive #1702 (by @yuntao1997 )
小修复和优化
- 修复了 DndList #1527
- 修复了 ThemePicker #1517
- 优化了 移动端的兼容性 #1567
- 优化了 screen-full 全屏组件 0fed69f
- fix[Sidebar]: fixed infinite loop bug #1333 (by @frank10000 )
- fix[Sticky]: fixed bug when set stickyTop (by @Mrli2016)
- fix[Waves-Directive]: fixed v-waves does not support update #1705 (by @jsjzh)
总结来说:就是 4.0 版本改了很多东西,是一次不兼容更新。