diff --git a/CHANGELOG.md b/CHANGELOG.md index 1441586..6d3c890 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,50 @@ +# CHANGELOG + +## 1.5.5 (2021-08-14) + +### 🐛 Bug Fixes +- 修复路由只存在一个子路由,图标不显示问题 +- UI样式美化 + +- ### ✨ Features +- 支持 Vue 3.2.x +- 代码全部按 `script setup` 语法重写(完成80%) +- 新增 `回到顶部` 功能 +- 新增 `拖拽` 示例页面 +- 新增 `富文本` 组件 +- 新增 `路由切换动画` 可在项目设置切换 +- 依赖升级 + +# CHANGELOG + +## 1.5.4 (2021-08-10) + +### 🐛 Bug Fixes + +- `暗色模式下多页签背景问题 ` 合并 [#23](https://github.com/jekip/naive-ui-admin/pull/23) 感谢 [@Dishone](https://github.com/Dishone) +- `表格设置列,重复添加action列样式错乱问题` 合并 [#24](https://github.com/jekip/naive-ui-admin/pull/24) 感谢 [@CasbaL](https://github.com/CasbaL) + +- ### ✨ Features +- 新增 `路由支持(内联外部地址)`配置 +- 新增 `顶部菜单` logo展示 +-(破坏性更新) +- 优化 `动态路由配置` 取消`constantRouterComponents.ts`,中组件映射配置,更名为 `router-icons.ts` +- 优化 `admin_info接口结构`,roles 更名为:permissions,roles.roleName,更名为:label +- 优化 多级路由,当没有配置`redirect`时,默认为第一个子路由,配置则优先按配置 +- 依赖升级 + +# 1.5.3 (2021-08-09) +### 🐛 Bug Fixes +- 修复顶部菜单,选中联动 +- 修复混合菜单模式,切换其他模式菜单未重置 +- 实例基础列表,和表格组件实例,开启横向滚动特性 +- `naiveui` 升级成最新版 + +- ### ✨ Features +- table组件,默认开启 `ellipsis` 特性 + + + # 1.5.2 (2021-08-06) ### 🐛 Bug Fixes - 修复已知bug diff --git a/README.md b/README.md index fbe2041..92b267a 100644 --- a/README.md +++ b/README.md @@ -117,3 +117,7 @@ yarn build - QQ 群 `328347666` +## 赞助 +#### 如果你觉得这个项目帮助到了你,你可以帮作者买一杯果汁表示鼓励 🍹。 + + diff --git a/mock/user/menus.ts b/mock/user/menus.ts index 1f8f355..0ea1343 100644 --- a/mock/user/menus.ts +++ b/mock/user/menus.ts @@ -4,7 +4,7 @@ const menusList = [ { path: '/dashboard', name: 'Dashboard', - component: 'Layout', + component: 'LAYOUT', redirect: '/dashboard/console', meta: { icon: 'DashboardOutlined', @@ -14,7 +14,7 @@ const menusList = [ { path: 'console', name: 'dashboard_console', - component: 'DashboardConsole', + component: '/dashboard/console/console', meta: { title: '主控台', }, @@ -22,7 +22,7 @@ const menusList = [ { path: 'monitor', name: 'dashboard_monitor', - component: 'DashboardMonitor', + component: '/dashboard/monitor/monitor', meta: { title: '监控页', }, @@ -30,7 +30,7 @@ const menusList = [ { path: 'workplace', name: 'dashboard_workplace', - component: 'DashboardWorkplace', + component: '/dashboard/workplace/workplace', meta: { hidden: true, title: '工作台', diff --git a/mock/user/user.ts b/mock/user/user.ts index 90a1e1b..636110e 100644 --- a/mock/user/user.ts +++ b/mock/user/user.ts @@ -13,25 +13,25 @@ const adminInfo = { desc: 'manager', password: Random.string('upper', 4, 16), token, - roles: [ + permissions: [ { - roleName: '主控台', + label: '主控台', value: 'dashboard_console', }, { - roleName: '监控页', + label: '监控页', value: 'dashboard_monitor', }, { - roleName: '工作台', + label: '工作台', value: 'dashboard_workplace', }, { - roleName: '基础列表', + label: '基础列表', value: 'basic_list', }, { - roleName: '基础列表删除', + label: '基础列表删除', value: 'basic_list_delete', }, ], diff --git a/package.json b/package.json index 92ce0ad..2d2c9b6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "naive-ui-admin", - "version": "1.5.2", + "version": "1.5.5", "author": { "name": "Ahjung", "email": "735878602@qq.com", @@ -27,6 +27,7 @@ "dependencies": { "@vicons/antd": "^0.10.0", "@vicons/ionicons5": "^0.10.0", + "@vueup/vue-quill": "^1.0.0-beta.7", "@vueuse/core": "^5.0.3", "axios": "^0.21.1", "blueimp-md5": "^2.18.0", @@ -38,12 +39,12 @@ "makeit-captcha": "^1.2.5", "mitt": "^2.1.0", "mockjs": "^1.1.0", - "naive-ui": "^2.16.1", - "pinia": "^2.0.0-beta.3", + "naive-ui": "^2.16.2", + "pinia": "^2.0.0-rc.4", "qs": "^6.10.1", "vfonts": "^0.1.0", - "vue": "^3.1.2", - "vue-router": "^4.0.10", + "vue": "^3.2.2", + "vue-router": "^4.0.11", "vue-types": "^4.0.0", "vuedraggable": "^4.0.3", "vuex": "^4.0.2" @@ -53,17 +54,17 @@ "@commitlint/config-conventional": "^12.1.4", "@types/lodash": "^4.14.170", "@types/node": "^15.12.2", - "@typescript-eslint/eslint-plugin": "^4.26.1", - "@typescript-eslint/parser": "^4.26.1", + "@typescript-eslint/eslint-plugin": "^4.29.1", + "@typescript-eslint/parser": "^4.29.1", "@vitejs/plugin-vue": "^1.2.3", "@vitejs/plugin-vue-jsx": "^1.1.5", - "@vue/compiler-sfc": "3.1.1", + "@vue/compiler-sfc": "^3.2.2", "@vue/eslint-config-typescript": "^7.0.0", "autoprefixer": "^10.3.1", "commitizen": "^4.2.4", "core-js": "^3.14.0", "dotenv": "^10.0.0", - "eslint": "^7.28.0", + "eslint": "^7.32.0", "eslint-config-prettier": "^8.3.0", "eslint-define-config": "^1.0.9", "eslint-plugin-jest": "^24.4.0", @@ -87,7 +88,7 @@ "stylelint-scss": "^3.19.0", "tailwindcss": "^2.2.7", "typescript": "^4.3.5", - "vite": "2.3.6", + "vite": "2.4.4", "vite-plugin-compression": "^0.3.1", "vite-plugin-html": "^2.0.7", "vite-plugin-mock": "^2.9.3", diff --git a/src/App.vue b/src/App.vue index e58a1e4..34ec08e 100644 --- a/src/App.vue +++ b/src/App.vue @@ -16,8 +16,8 @@ - diff --git a/src/api/system/role.ts b/src/api/system/role.ts index 60590ff..40876fd 100644 --- a/src/api/system/role.ts +++ b/src/api/system/role.ts @@ -3,7 +3,7 @@ import http from '@/utils/http/axios'; /** * @description: 角色列表 */ -export function getRoleList() { +export function getRoleList(params) { return http.request({ url: '/role/list', method: 'GET', diff --git a/src/assets/images/logo.png b/src/assets/images/logo.png index b65a72f..de873ed 100644 Binary files a/src/assets/images/logo.png and b/src/assets/images/logo.png differ diff --git a/src/components/Form/src/BasicForm.vue b/src/components/Form/src/BasicForm.vue index ea40df0..3bfb600 100644 --- a/src/components/Form/src/BasicForm.vue +++ b/src/components/Form/src/BasicForm.vue @@ -102,11 +102,7 @@ type="primary" text icon-placement="right" - v-if=" - isInline && - getSchema.length > (getProps.gridProps?.cols || 0) && - getProps.showAdvancedButton - " + v-if="isInline && getProps.showAdvancedButton" @click="unfoldToggle" > @@ -212,6 +208,7 @@ return { ...gridProps, collapsed: isInline.value ? gridCollapsed.value : false, + responsive: 'screen', }; }); diff --git a/src/components/Modal/src/basicModal.vue b/src/components/Modal/src/basicModal.vue index 884db8e..f1bafb7 100644 --- a/src/components/Modal/src/basicModal.vue +++ b/src/components/Modal/src/basicModal.vue @@ -20,104 +20,88 @@ - diff --git a/src/views/comp/form/basic.vue b/src/views/comp/form/basic.vue index 3e6dda3..c45659a 100644 --- a/src/views/comp/form/basic.vue +++ b/src/views/comp/form/basic.vue @@ -3,13 +3,15 @@
-