diff --git a/CHANGELOG.md b/CHANGELOG.md index 9705e47..e736d6b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,17 @@ 🎉🎉🔥 `vue-next-admin` 基于 vue3.x 、Typescript、vite、Element plus 等,适配手机、平板、pc 的后台开源免费模板库(vue2.x 请切换 vue-prev-admin 分支) +## 2.0.2 + +`2022.03.04` + +- 🌟 更新 依赖更新最新版本 +- 🎯 优化 Alert 提示添加边框 +- 🎯 优化 功能 / 数字滚动 演示界面 +- 🐞 修复 全局主题按钮颜色 :active 问题 +- 🐞 修复 Dropdown 下拉菜单样式问题 +- 🐞 修复 SvgIcon 图标组件动态切换时报警告问题,[SvgIcon 改变 name 时可能导致图像不显示](https://gitee.com/lyt-top/vue-next-admin/issues/I4VGE0),感谢@axcc1234 + ## 2.0.1 `2022.02.25` diff --git a/package.json b/package.json index c1ac21a..f2237d1 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-next-admin", - "version": "2.0.1", + "version": "2.0.2", "description": "vue3 vite next admin template", "author": "lyt_20201208", "license": "MIT", @@ -10,14 +10,14 @@ "lint-fix": "eslint --fix --ext .js --ext .jsx --ext .vue src/" }, "dependencies": { - "@element-plus/icons-vue": "^0.2.7", + "@element-plus/icons-vue": "^1.0.0", "axios": "^0.26.0", - "countup.js": "^2.0.8", + "countup.js": "^2.1.0", "cropperjs": "^1.5.12", "echarts": "^5.3.0", - "echarts-gl": "^2.0.8", + "echarts-gl": "^2.0.9", "echarts-wordcloud": "^2.0.0", - "element-plus": "^2.0.3", + "element-plus": "^2.0.4", "jsplumb": "^2.15.6", "mitt": "^3.0.0", "nprogress": "^0.2.0", @@ -30,7 +30,7 @@ "vue-clipboard3": "^1.0.1", "vue-grid-layout": "^3.0.0-beta1", "vue-i18n": "^9.1.9", - "vue-router": "^4.0.12", + "vue-router": "^4.0.13", "vuex": "^4.0.2", "wangeditor": "^4.7.12" }, @@ -38,18 +38,18 @@ "@types/node": "^17.0.21", "@types/nprogress": "^0.2.0", "@types/sortablejs": "^1.10.7", - "@typescript-eslint/eslint-plugin": "^5.12.1", - "@typescript-eslint/parser": "^5.12.1", - "@vitejs/plugin-vue": "^2.2.2", + "@typescript-eslint/eslint-plugin": "^5.13.0", + "@typescript-eslint/parser": "^5.13.0", + "@vitejs/plugin-vue": "^2.2.4", "@vue/compiler-sfc": "^3.2.31", "dotenv": "^16.0.0", - "eslint": "^8.9.0", + "eslint": "^8.10.0", "eslint-plugin-vue": "^8.5.0", "prettier": "^2.5.1", "sass": "^1.49.9", "sass-loader": "^12.6.0", - "typescript": "^4.5.5", - "vite": "^2.8.4", + "typescript": "^4.6.2", + "vite": "^2.8.6", "vue-eslint-parser": "^8.3.0" }, "browserslist": [ diff --git a/src/components/svgIcon/index.vue b/src/components/svgIcon/index.vue index 9b1aec9..d80a2f2 100644 --- a/src/components/svgIcon/index.vue +++ b/src/components/svgIcon/index.vue @@ -31,9 +31,10 @@ export default { const linesString: any[] = ['https', 'http', '/src', '/assets', import.meta.env.VITE_PUBLIC_PATH]; const onLineStyle: string = `font-size: ${props.size}px;color: ${props.color}`; const localsStyle: string = `width: ${props.size}px;height: ${props.size}px`; + const eleSetStyle = { class: 'el-icon', style: onLineStyle }; // 逻辑判断 - if (props.name?.startsWith('ele-')) return () => h('i', { class: 'el-icon', style: onLineStyle }, [h(resolveComponent(props.name))]); + if (props.name?.startsWith('ele-')) return () => h('i', eleSetStyle, [props.name === 'ele-' ? '' : h(resolveComponent(props.name))]); else if (linesString.find((str) => props.name?.startsWith(str))) return () => h('img', { src: props.name, style: localsStyle }); else return () => h('i', { class: props.name, style: onLineStyle }); }, diff --git a/src/layout/navBars/breadcrumb/setings.vue b/src/layout/navBars/breadcrumb/setings.vue index 65e82fb..954421c 100644 --- a/src/layout/navBars/breadcrumb/setings.vue +++ b/src/layout/navBars/breadcrumb/setings.vue @@ -400,7 +400,7 @@