提交 f9cda2e8 编写于 作者: V vben

chore: release 2.5.2

上级 913c22c8
## 2.5.2(2021-06-27)
### ⚡ Performance Improvements
- **Icon** Remove the global registration of Icon components to prevent hot update issues under certain circumstances
### ✨ Features
- **Menu** Added `permissionMode=PermissionModeEnum.ROUTE_MAPPING` mode
- The project is changed to this mode by default, and the original menu file is deleted
- If you have written the menu before, you can change to `PermissionModeEnum.ROLE` mode
## 2.5.1(2021-06-26) ## 2.5.1(2021-06-26)
### ⚡ Performance Improvements ### ⚡ Performance Improvements
......
## Wip ## 2.5.2(2021-06-27)
### ⚡ Performance Improvements ### ⚡ Performance Improvements
...@@ -10,6 +10,10 @@ ...@@ -10,6 +10,10 @@
- 项目默认改为该模式,删除原有菜单文件 - 项目默认改为该模式,删除原有菜单文件
- 如果之前已经写好了菜单,可以更改为`PermissionModeEnum.ROLE`模式即可 - 如果之前已经写好了菜单,可以更改为`PermissionModeEnum.ROLE`模式即可
### 🐛 Bug Fixes
- **Drawer** 修复`visible`状态异常
## 2.5.1(2021-06-26) ## 2.5.1(2021-06-26)
### ⚡ Performance Improvements ### ⚡ Performance Improvements
......
{ {
"name": "vben-admin", "name": "vben-admin",
"version": "2.5.1", "version": "2.5.2",
"author": { "author": {
"name": "vben", "name": "vben",
"email": "anncwb@126.com", "email": "anncwb@126.com",
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
"@logicflow/core": "^0.5.0", "@logicflow/core": "^0.5.0",
"@logicflow/extension": "^0.5.0", "@logicflow/extension": "^0.5.0",
"@vueuse/core": "^5.0.3", "@vueuse/core": "^5.0.3",
"@zxcvbn-ts/core": "^0.3.0", "@zxcvbn-ts/core": "^1.0.0-beta.0",
"ant-design-vue": "2.2.0-beta.6", "ant-design-vue": "2.2.0-beta.6",
"axios": "^0.21.1", "axios": "^0.21.1",
"codemirror": "^5.62.0", "codemirror": "^5.62.0",
...@@ -60,13 +60,13 @@ ...@@ -60,13 +60,13 @@
"vue-i18n": "9.1.6", "vue-i18n": "9.1.6",
"vue-json-pretty": "^2.0.2", "vue-json-pretty": "^2.0.2",
"vue-router": "^4.0.10", "vue-router": "^4.0.10",
"vue-types": "^3.0.2", "vue-types": "^4.0.0",
"xlsx": "^0.17.0" "xlsx": "^0.17.0"
}, },
"devDependencies": { "devDependencies": {
"@commitlint/cli": "^12.1.4", "@commitlint/cli": "^12.1.4",
"@commitlint/config-conventional": "^12.1.4", "@commitlint/config-conventional": "^12.1.4",
"@iconify/json": "^1.1.360", "@iconify/json": "^1.1.361",
"@purge-icons/generated": "^0.7.0", "@purge-icons/generated": "^0.7.0",
"@types/codemirror": "^5.60.1", "@types/codemirror": "^5.60.1",
"@types/crypto-js": "^4.0.1", "@types/crypto-js": "^4.0.1",
...@@ -76,7 +76,7 @@ ...@@ -76,7 +76,7 @@
"@types/jest": "^26.0.23", "@types/jest": "^26.0.23",
"@types/lodash-es": "^4.17.4", "@types/lodash-es": "^4.17.4",
"@types/mockjs": "^1.0.3", "@types/mockjs": "^1.0.3",
"@types/node": "^15.12.4", "@types/node": "^15.12.5",
"@types/nprogress": "^0.2.0", "@types/nprogress": "^0.2.0",
"@types/qrcode": "^1.4.0", "@types/qrcode": "^1.4.0",
"@types/qs": "^6.9.6", "@types/qs": "^6.9.6",
...@@ -110,7 +110,7 @@ ...@@ -110,7 +110,7 @@
"lint-staged": "^11.0.0", "lint-staged": "^11.0.0",
"npm-run-all": "^4.1.5", "npm-run-all": "^4.1.5",
"postcss": "^8.3.5", "postcss": "^8.3.5",
"prettier": "^2.3.1", "prettier": "^2.3.2",
"pretty-quick": "^3.1.1", "pretty-quick": "^3.1.1",
"rimraf": "^3.0.2", "rimraf": "^3.0.2",
"rollup-plugin-visualizer": "5.5.0", "rollup-plugin-visualizer": "5.5.0",
......
...@@ -65,8 +65,6 @@ function dynamicImport( ...@@ -65,8 +65,6 @@ function dynamicImport(
// Turn background objects into routing objects // Turn background objects into routing objects
export function transformObjToRoute<T = AppRouteModule>(routeList: AppRouteModule[]): T[] { export function transformObjToRoute<T = AppRouteModule>(routeList: AppRouteModule[]): T[] {
console.log(routeList);
routeList.forEach((route) => { routeList.forEach((route) => {
const component = route.component as string; const component = route.component as string;
if (component) { if (component) {
......
<template> <template>
<div :class="prefixCls" class="relative w-full h-full px-4"> <div :class="prefixCls" class="relative w-full h-full px-4">
<AppLocalePicker <AppLocalePicker
class="absolute top-4 right-4 enter-x text-white xl:text-gray-600" class="absolute text-white top-4 right-4 enter-x xl:text-gray-600"
:showText="false" :showText="false"
v-if="!sessionTimeout && showLocale" v-if="!sessionTimeout && showLocale"
/> />
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
<div class="container relative h-full py-2 mx-auto sm:px-10"> <div class="container relative h-full py-2 mx-auto sm:px-10">
<div class="flex h-full"> <div class="flex h-full">
<div class="hidden xl:flex xl:flex-col xl:w-6/12 min-h-full mr-4 pl-4"> <div class="hidden min-h-full pl-4 mr-4 xl:flex xl:flex-col xl:w-6/12">
<AppLogo class="-enter-x" /> <AppLogo class="-enter-x" />
<div class="my-auto"> <div class="my-auto">
<img <img
...@@ -22,33 +22,32 @@ ...@@ -22,33 +22,32 @@
class="w-1/2 -mt-16 -enter-x" class="w-1/2 -mt-16 -enter-x"
/> />
<div class="mt-10 font-medium text-white -enter-x"> <div class="mt-10 font-medium text-white -enter-x">
<span class="mt-4 text-3xl inline-block"> {{ t('sys.login.signInTitle') }}</span> <span class="inline-block mt-4 text-3xl"> {{ t('sys.login.signInTitle') }}</span>
</div> </div>
<div class="mt-5 text-md text-white font-normal dark:text-gray-500 -enter-x"> <div class="mt-5 font-normal text-white text-md dark:text-gray-500 -enter-x">
{{ t('sys.login.signInDesc') }} {{ t('sys.login.signInDesc') }}
</div> </div>
</div> </div>
</div> </div>
<div class="h-full xl:h-auto flex py-5 xl:py-0 xl:my-0 w-full xl:w-6/12"> <div class="flex w-full h-full py-5 xl:h-auto xl:py-0 xl:my-0 xl:w-6/12">
<div <div
:class="`${prefixCls}-form`" :class="`${prefixCls}-form`"
class=" class="
my-auto relative
mx-auto w-full
xl:ml-20 xl:bg-transparent
px-5 px-5
py-8 py-8
sm:px-8 mx-auto
xl:p-4 my-auto
rounded-md rounded-md
shadow-md shadow-md
xl:shadow-none xl:ml-16 xl:bg-transparent
w-full sm:px-8
xl:p-4 xl:shadow-none
sm:w-3/4 sm:w-3/4
lg:w-2/4 lg:w-2/4
xl:w-auto xl:w-auto
enter-x enter-x
relative
" "
> >
<LoginForm /> <LoginForm />
...@@ -144,6 +143,7 @@ ...@@ -144,6 +143,7 @@
} }
.@{prefix-cls} { .@{prefix-cls} {
min-height: 100%;
overflow: hidden; overflow: hidden;
@media (max-width: @screen-xl) { @media (max-width: @screen-xl) {
background-color: #293146; background-color: #293146;
......
<template> <template>
<h2 class="font-bold text-2xl xl:text-3xl enter-x text-center xl:text-left mb-6"> <h2 class="mb-3 text-2xl font-bold text-center xl:text-3xl enter-x xl:text-left">
{{ getFormTitle }} {{ getFormTitle }}
</h2> </h2>
</template> </template>
......
const { sky: color_sky } = require('tailwindcss/colors'); const { sky: color_sky, ...colors } = require('tailwindcss/colors');
module.exports = { module.exports = {
mode: 'jit', mode: 'jit',
...@@ -15,8 +15,8 @@ module.exports = { ...@@ -15,8 +15,8 @@ module.exports = {
}, },
}, },
colors: { colors: {
//...colors, ...colors,
lightBlue: color_sky, sky: color_sky,
primary: { primary: {
DEFAULT: '#0960bd', DEFAULT: '#0960bd',
// dark: primaryColorDark, // dark: primaryColorDark,
......
...@@ -1189,10 +1189,10 @@ ...@@ -1189,10 +1189,10 @@
dependencies: dependencies:
cross-fetch "^3.0.6" cross-fetch "^3.0.6"
"@iconify/json@^1.1.360": "@iconify/json@^1.1.361":
version "1.1.360" version "1.1.361"
resolved "https://registry.npmjs.org/@iconify/json/-/json-1.1.360.tgz#e4ab624d914e7047d03adb7d17a3dac18302906f" resolved "https://registry.yarnpkg.com/@iconify/json/-/json-1.1.361.tgz#6222e7971467cc4a793c7e0bf2877b484827ae36"
integrity sha512-kgKZ1nhznoD9w/tRq9mVpKO1d2/ymlTLHhJ/AGspMnSWDkjLYFPSatl4RXf0o0e1H+YWLvJcMd/sTCHTl7TucA== integrity sha512-p7RMNFNI1YLFCJ0Ads6LOtJyLsheYM+XBSrhcTYxjuCmr2dv2j4DFp0Bh3HLwybtdPo3cA7Xo8Wqk8djvoVm/g==
"@intlify/core-base@9.1.6": "@intlify/core-base@9.1.6":
version "9.1.6" version "9.1.6"
...@@ -1985,10 +1985,10 @@ ...@@ -1985,10 +1985,10 @@
resolved "https://registry.npmjs.org/@types/node/-/node-14.17.3.tgz#6d327abaa4be34a74e421ed6409a0ae2f47f4c3d" resolved "https://registry.npmjs.org/@types/node/-/node-14.17.3.tgz#6d327abaa4be34a74e421ed6409a0ae2f47f4c3d"
integrity sha512-e6ZowgGJmTuXa3GyaPbTGxX17tnThl2aSSizrFthQ7m9uLGZBXiGhgE55cjRZTF5kjZvYn9EOPOMljdjwbflxw== integrity sha512-e6ZowgGJmTuXa3GyaPbTGxX17tnThl2aSSizrFthQ7m9uLGZBXiGhgE55cjRZTF5kjZvYn9EOPOMljdjwbflxw==
"@types/node@^15.12.4": "@types/node@^15.12.5":
version "15.12.4" version "15.12.5"
resolved "https://registry.yarnpkg.com/@types/node/-/node-15.12.4.tgz#e1cf817d70a1e118e81922c4ff6683ce9d422e26" resolved "https://registry.yarnpkg.com/@types/node/-/node-15.12.5.tgz#9a78318a45d75c9523d2396131bd3cca54b2d185"
integrity sha512-zrNj1+yqYF4WskCMOHwN+w9iuD12+dGm0rQ35HLl9/Ouuq52cEtd0CH9qMgrdNmi5ejC1/V7vKEXYubB+65DkA== integrity sha512-se3yX7UHv5Bscf8f1ERKvQOD6sTyycH3hdaoozvaLxgUiY5lIGEeH37AD0G0Qi9kPqihPn0HOfd2yaIEN9VwEg==
"@types/normalize-package-data@^2.4.0": "@types/normalize-package-data@^2.4.0":
version "2.4.0" version "2.4.0"
...@@ -2498,10 +2498,10 @@ ...@@ -2498,10 +2498,10 @@
dependencies: dependencies:
vue-demi "*" vue-demi "*"
"@zxcvbn-ts/core@^0.3.0": "@zxcvbn-ts/core@^1.0.0-beta.0":
version "0.3.0" version "1.0.0-beta.0"
resolved "https://registry.npmjs.org/@zxcvbn-ts/core/-/core-0.3.0.tgz#1a021afef29b97a5f8f72458de005fa149628e32" resolved "https://registry.yarnpkg.com/@zxcvbn-ts/core/-/core-1.0.0-beta.0.tgz#a616beacb83dbfe9174408ebabee746f3468b0ec"
integrity sha512-H1SOAoC7MbccN/CU9ENZHXwvwTwh6aRt88SOkGROAN9nT88o/qDPJ5B5bElRSbjKLfmmO1LqK2K4u2lUxjbQKQ== integrity sha512-E2rHy2jrCDzJ62xqY5KteOHR+y7uPqL6FLUPVCDZmeYrAZRgB+CpO0QIQKLVrxwssx0YhApmE23eHmouce+OUA==
JSONStream@^1.0.4: JSONStream@^1.0.4:
version "1.3.5" version "1.3.5"
...@@ -6947,6 +6947,11 @@ is-plain-object@3.0.1: ...@@ -6947,6 +6947,11 @@ is-plain-object@3.0.1:
resolved "https://registry.npmjs.org/is-plain-object/-/is-plain-object-3.0.1.tgz#662d92d24c0aa4302407b0d45d21f2251c85f85b" resolved "https://registry.npmjs.org/is-plain-object/-/is-plain-object-3.0.1.tgz#662d92d24c0aa4302407b0d45d21f2251c85f85b"
integrity sha512-Xnpx182SBMrr/aBik8y+GuR4U1L9FqMSojwDQwPMmxyC6bvEqly9UBCxhauBF5vNh2gwWJNX6oDV7O+OM4z34g== integrity sha512-Xnpx182SBMrr/aBik8y+GuR4U1L9FqMSojwDQwPMmxyC6bvEqly9UBCxhauBF5vNh2gwWJNX6oDV7O+OM4z34g==
is-plain-object@5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-5.0.0.tgz#4427f50ab3429e9025ea7d52e9043a9ef4159344"
integrity sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==
is-plain-object@^2.0.3, is-plain-object@^2.0.4: is-plain-object@^2.0.3, is-plain-object@^2.0.4:
version "2.0.4" version "2.0.4"
resolved "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" resolved "https://registry.npmjs.org/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677"
...@@ -9600,10 +9605,10 @@ prettier@^1.16.4, prettier@^1.18.2: ...@@ -9600,10 +9605,10 @@ prettier@^1.16.4, prettier@^1.18.2:
resolved "https://registry.npmjs.org/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb" resolved "https://registry.npmjs.org/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb"
integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew== integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==
prettier@^2.3.1: prettier@^2.3.2:
version "2.3.1" version "2.3.2"
resolved "https://registry.npmjs.org/prettier/-/prettier-2.3.1.tgz#76903c3f8c4449bc9ac597acefa24dc5ad4cbea6" resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.3.2.tgz#ef280a05ec253712e486233db5c6f23441e7342d"
integrity sha512-p+vNbgpLjif/+D+DwAZAbndtRrR0md0MwfmOVN9N+2RgyACMT+7tfaRnT+WDPkqnuVwleyuBIG2XBxKDme3hPA== integrity sha512-lnJzDfJ66zkMy58OL5/NY5zp70S7Nz6KqcKkXYzn2tMVrNxvbqaBpg7H3qHaLxCJ5lNMsGuM8+ohS7cZrthdLQ==
pretty-bytes@^5.3.0, pretty-bytes@^5.6.0: pretty-bytes@^5.3.0, pretty-bytes@^5.6.0:
version "5.6.0" version "5.6.0"
...@@ -12504,13 +12509,20 @@ vue-tsc@^0.2.0: ...@@ -12504,13 +12509,20 @@ vue-tsc@^0.2.0:
dependencies: dependencies:
vscode-vue-languageservice "^0.25.22" vscode-vue-languageservice "^0.25.22"
vue-types@^3.0.0, vue-types@^3.0.2: vue-types@^3.0.0:
version "3.0.2" version "3.0.2"
resolved "https://registry.npmjs.org/vue-types/-/vue-types-3.0.2.tgz#ec16e05d412c038262fc1efa4ceb9647e7fb601d" resolved "https://registry.npmjs.org/vue-types/-/vue-types-3.0.2.tgz#ec16e05d412c038262fc1efa4ceb9647e7fb601d"
integrity sha512-IwUC0Aq2zwaXqy74h4WCvFCUtoV0iSWr0snWnE9TnU18S66GAQyqQbRf2qfJtUuiFsBf6qp0MEwdonlwznlcrw== integrity sha512-IwUC0Aq2zwaXqy74h4WCvFCUtoV0iSWr0snWnE9TnU18S66GAQyqQbRf2qfJtUuiFsBf6qp0MEwdonlwznlcrw==
dependencies: dependencies:
is-plain-object "3.0.1" is-plain-object "3.0.1"
vue-types@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/vue-types/-/vue-types-4.0.0.tgz#da13ccca0f979d3cfd076ce3a2b7050a9627ed5a"
integrity sha512-CGJ6br+FhK2OFgPzagVQxf6icQ63OVrOFjw+ekmb4bnTgn/FuKkjdlOqybOdq5aot7BF01yPoTczGD+fEMpKRw==
dependencies:
is-plain-object "5.0.0"
vue@3.1.2: vue@3.1.2:
version "3.1.2" version "3.1.2"
resolved "https://registry.yarnpkg.com/vue/-/vue-3.1.2.tgz#647f8e3949a3d600771dca25d50225dc3e594c64" resolved "https://registry.yarnpkg.com/vue/-/vue-3.1.2.tgz#647f8e3949a3d600771dca25d50225dc3e594c64"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册