Browse Source

chore: update

i18n
xiaoxian521 3 years ago
parent
commit
abc43dad6e
  1. 26
      package.json
  2. 303
      pnpm-lock.yaml
  3. 10
      src/layout/theme/element-plus.ts

26
package.json

@ -27,14 +27,14 @@
"dependencies": {
"@ctrl/tinycolor": "^3.4.0",
"@pureadmin/components": "^1.0.2",
"@vueuse/core": "^8.0.1",
"@vueuse/motion": "^2.0.0-beta.9",
"@vueuse/shared": "^8.0.1",
"@vueuse/core": "^8.2.0",
"@vueuse/motion": "^2.0.0-beta.12",
"@vueuse/shared": "^8.2.0",
"animate.css": "^4.1.1",
"axios": "^0.26.1",
"css-color-function": "^1.3.3",
"dayjs": "^1.11.0",
"element-plus": "^2.1.4",
"element-plus": "^2.1.5",
"element-resize-detector": "^1.2.3",
"js-cookie": "^3.0.1",
"lodash": "^4.17.21",
@ -50,18 +50,18 @@
"responsive-storage": "^1.0.11",
"rgb-hex": "^4.0.0",
"vue": "^3.2.31",
"vue-i18n": "^9.2.0-beta.32",
"vue-i18n": "^9.2.0-beta.33",
"vue-router": "^4.0.14",
"vue-types": "^4.1.1"
},
"devDependencies": {
"@commitlint/cli": "13.1.0",
"@commitlint/config-conventional": "13.1.0",
"@iconify-icons/ep": "^1.1.3",
"@iconify-icons/fa": "^1.1.1",
"@iconify-icons/fa-solid": "^1.1.2",
"@iconify-icons/ri": "^1.1.1",
"@iconify/vue": "^3.1.4",
"@iconify-icons/ep": "^1.2.4",
"@iconify-icons/fa": "^1.2.2",
"@iconify-icons/fa-solid": "^1.2.2",
"@iconify-icons/ri": "^1.2.1",
"@iconify/vue": "^3.2.0",
"@intlify/vite-plugin-vue-i18n": "^3.3.1",
"@pureadmin/theme": "^0.0.1",
"@types/element-resize-detector": "1.1.3",
@ -103,12 +103,12 @@
"stylelint-config-recommended": "^6.0.0",
"stylelint-config-standard": "^24.0.0",
"stylelint-order": "^5.0.0",
"typescript": "^4.6.2",
"typescript": "^4.6.3",
"unplugin-element-plus": "^0.3.2",
"vite": "^2.9.0-beta.4",
"vite": "^2.9.0-beta.8",
"vite-plugin-live-reload": "^2.1.0",
"vite-plugin-mock": "^2.9.6",
"vite-plugin-remove-console": "^0.0.6",
"vite-plugin-remove-console": "^0.0.7",
"vite-plugin-style-import": "1.4.1",
"vite-plugin-windicss": "^1.8.3",
"vite-svg-loader": "2.2.0",

303
pnpm-lock.yaml

@ -4,11 +4,11 @@ specifiers:
"@commitlint/cli": 13.1.0
"@commitlint/config-conventional": 13.1.0
"@ctrl/tinycolor": ^3.4.0
"@iconify-icons/ep": ^1.1.3
"@iconify-icons/fa": ^1.1.1
"@iconify-icons/fa-solid": ^1.1.2
"@iconify-icons/ri": ^1.1.1
"@iconify/vue": ^3.1.4
"@iconify-icons/ep": ^1.2.4
"@iconify-icons/fa": ^1.2.2
"@iconify-icons/fa-solid": ^1.2.2
"@iconify-icons/ri": ^1.2.1
"@iconify/vue": ^3.2.0
"@intlify/vite-plugin-vue-i18n": ^3.3.1
"@pureadmin/components": ^1.0.2
"@pureadmin/theme": ^0.0.1
@ -27,16 +27,16 @@ specifiers:
"@vitejs/plugin-vue-jsx": ^1.3.8
"@vue/eslint-config-prettier": ^7.0.0
"@vue/eslint-config-typescript": ^10.0.0
"@vueuse/core": ^8.0.1
"@vueuse/motion": ^2.0.0-beta.9
"@vueuse/shared": ^8.0.1
"@vueuse/core": ^8.2.0
"@vueuse/motion": ^2.0.0-beta.12
"@vueuse/shared": ^8.2.0
animate.css: ^4.1.1
autoprefixer: ^10.4.2
axios: ^0.26.1
cross-env: 7.0.3
css-color-function: ^1.3.3
dayjs: ^1.11.0
element-plus: ^2.1.4
element-plus: ^2.1.5
element-resize-detector: ^1.2.3
eslint: ^8.8.0
eslint-plugin-prettier: ^4.0.0
@ -73,18 +73,18 @@ specifiers:
stylelint-config-recommended: ^6.0.0
stylelint-config-standard: ^24.0.0
stylelint-order: ^5.0.0
typescript: ^4.6.2
typescript: ^4.6.3
unplugin-element-plus: ^0.3.2
vite: ^2.9.0-beta.4
vite: ^2.9.0-beta.8
vite-plugin-live-reload: ^2.1.0
vite-plugin-mock: ^2.9.6
vite-plugin-remove-console: ^0.0.6
vite-plugin-remove-console: ^0.0.7
vite-plugin-style-import: 1.4.1
vite-plugin-windicss: ^1.8.3
vite-svg-loader: 2.2.0
vue: ^3.2.31
vue-eslint-parser: ^8.2.0
vue-i18n: ^9.2.0-beta.32
vue-i18n: ^9.2.0-beta.33
vue-router: ^4.0.14
vue-types: ^4.1.1
windicss: ^3.5.1
@ -92,14 +92,14 @@ specifiers:
dependencies:
"@ctrl/tinycolor": 3.4.0
"@pureadmin/components": 1.0[email protected]
"@vueuse/core": 8.1.1[email protected]
"@vueuse/core": 8.2.0[email protected]
"@vueuse/motion": 2.0.0-[email protected]
"@vueuse/shared": 8.1.1[email protected]
"@vueuse/shared": 8.2.0[email protected]
animate.css: 4.1.1
axios: 0.26.1
css-color-function: 1.3.3
dayjs: 1.11.0
element-plus: 2.1.4_1a412d14def5ff5ca1122000e4bee666
element-plus: 2.1.5_1a412d14def5ff5ca1122000e4bee666
element-resize-detector: 1.2.4
js-cookie: 3.0.1
lodash: 4.17.21
@ -109,13 +109,13 @@ dependencies:
mockjs: 1.1.0
nprogress: 0.2.0
path: 0.12.7
pinia: 2.0[email protected].2[email protected]
pinia: 2.0[email protected].3[email protected]
qs: 6.10.3
resize-observer-polyfill: 1.5.1
responsive-storage: 1.0[email protected]
rgb-hex: 4.0.0
vue: 3.2.31
vue-i18n: 9.2.0-beta.32[email protected]
vue-i18n: 9.2.0-beta.33[email protected]
vue-router: 4.0[email protected]
vue-types: 4.1[email protected]
@ -126,8 +126,8 @@ devDependencies:
"@iconify-icons/fa": 1.2.2
"@iconify-icons/fa-solid": 1.2.2
"@iconify-icons/ri": 1.2.1
"@iconify/vue": 3.1.4[email protected]
"@intlify/vite-plugin-vue-i18n": 3.3.1_fecf2311320b252734da88aa76ba6360
"@iconify/vue": 3.2.0[email protected]
"@intlify/vite-plugin-vue-i18n": 3.3.1_62e4e06bcd41bd33e0b827748b9bb63d
"@pureadmin/theme": 0.0.1
"@types/element-resize-detector": 1.1.3
"@types/js-cookie": 3.0.1
@ -137,13 +137,13 @@ devDependencies:
"@types/node": 14.14.14
"@types/nprogress": 0.2.0
"@types/qs": 6.9.7
"@typescript-eslint/eslint-plugin": 5.15.0_f2c49ce7d0e93ebcfdb4b7d25b131b28
"@typescript-eslint/parser": 5.15[email protected][email protected].2
"@vitejs/plugin-legacy": 1.7[email protected].4
"@vitejs/plugin-vue": 2.2[email protected].4[email protected]
"@typescript-eslint/eslint-plugin": 5.15.0_8deb5df5f68df203b82d505eb95b6b75
"@typescript-eslint/parser": 5.15[email protected][email protected].3
"@vitejs/plugin-legacy": 1.7[email protected].8
"@vitejs/plugin-vue": 2.2[email protected].8[email protected]
"@vitejs/plugin-vue-jsx": 1.3.8
"@vue/eslint-config-prettier": 7.0[email protected][email protected]
"@vue/eslint-config-typescript": 10.0.0_5e58415d4c9ab0c3da8935a9b8bb8c26
"@vue/eslint-config-typescript": 10.0.0_67e26bb50fed2173443e3fe1262a69b2
autoprefixer: 10.4[email protected]
cross-env: 7.0.3
eslint: 8.11.0
@ -168,14 +168,14 @@ devDependencies:
stylelint-config-recommended: 6.0[email protected]
stylelint-config-standard: 24.0[email protected]
stylelint-order: 5.0[email protected]
typescript: 4.6.2
unplugin-element-plus: 0.3[email protected][email protected].4
vite: 2.9.0-beta.4[email protected]
typescript: 4.6.3
unplugin-element-plus: 0.3[email protected][email protected].8
vite: 2.9.0-beta.8[email protected]
vite-plugin-live-reload: 2.1.0
vite-plugin-mock: 2.9.6_cc7e5ded527ea0e0180226d44637e3ca
vite-plugin-remove-console: 0.0.6
vite-plugin-style-import: 1.4[email protected].4
vite-plugin-windicss: 1.8[email protected].4
vite-plugin-mock: 2.9.6_78dd2855e4ba22368bbd2dff8c1eb1e8
vite-plugin-remove-console: 0.0.7
vite-plugin-style-import: 1.4[email protected].8
vite-plugin-windicss: 1.8[email protected].8
vite-svg-loader: 2.2.0
vue-eslint-parser: 8.3[email protected]
windicss: 3.5.1
@ -715,12 +715,12 @@ packages:
"@commitlint/execute-rule": 13.2.0
"@commitlint/resolve-extends": 13.2.0
"@commitlint/types": 13.2.0
"@endemolshinegroup/cosmiconfig-typescript-loader": 3.0.2_c84a270c92bf6e8d30a9786dab5936e4
"@endemolshinegroup/cosmiconfig-typescript-loader": 3.0.2_ec5c0ebd3030a0a5109338876648df1b
chalk: 4.1.2
cosmiconfig: 7.0.1
lodash: 4.17.21
resolve-from: 5.0.0
typescript: 4.6.2
typescript: 4.6.3
dev: true
/@commitlint/message/13.2.0:
@ -819,10 +819,10 @@ packages:
engines: { node: ">=10" }
dev: false
/@element-plus/icons-vue/1.1.3[email protected]:
/@element-plus/icons-vue/1.1.4[email protected]:
resolution:
{
integrity: sha512-eaL3acguwQMmQcGssYtzDYJLgXwXae7zpKuA6uXCtz1wrEMVtN+T3u5tY+p7FzZ+2d/R9tzT/rq0EHmjKs33XQ==
integrity: sha512-Iz/nHqdp1sFPmdzRwHkEQQA3lKvoObk8azgABZ81QUOpW9s/lUyQVUSh0tNtEPZXQlKwlSh7SPgoVxzrE0uuVQ==
}
peerDependencies:
vue: ^3.2.0
@ -830,7 +830,7 @@ packages:
vue: 3.2.31
dev: false
/@endemolshinegroup/cosmiconfig-typescript-loader/3.0.2_c84a270c92bf6e8d30a9786dab5936e4:
/@endemolshinegroup/cosmiconfig-typescript-loader/3.0.2_ec5c0ebd3030a0a5109338876648df1b:
resolution:
{
integrity: sha512-QRVtqJuS1mcT56oHpVegkKBlgtWjXw/gHNWO3eL9oyB5Sc7HBoc2OLG/nYpVfT/Jejvo3NUrD0Udk7XgoyDKkA==
@ -842,7 +842,7 @@ packages:
cosmiconfig: 7.0.1
lodash.get: 4.4.2
make-error: 1.3.6
ts-node: 9.1[email protected].2
ts-node: 9.1[email protected].3
tslib: 2.3.1
transitivePeerDependencies:
- typescript
@ -868,6 +868,22 @@ packages:
- supports-color
dev: true
/@floating-ui/core/0.6.1:
resolution:
{
integrity: sha512-Y30eVMcZva8o84c0HcXAtDO4BEzPJMvF6+B7x7urL2xbAqVsGJhojOyHLaoQHQYjb6OkqRq5kO+zeySycQwKqg==
}
dev: false
/@floating-ui/dom/0.4.2:
resolution:
{
integrity: sha512-2/4vOhMAujkMmGqGX1Gut84phe5MNfk1kGeM+RSTJCpeR0SWR2/RR+/f1r1msOvTQa28wn7HEhxGe71CjYY/vw==
}
dependencies:
"@floating-ui/core": 0.6.1
dev: false
/@humanwhocodes/config-array/0.9.5:
resolution:
{
@ -895,7 +911,7 @@ packages:
integrity: sha512-EmNFcajYB1ZfvviG6296NtfMlg0Q+w619qx/0H+tUaVxHIlChPlmOYMKRiOPKeNTvoFgEN+u5jbYxMWBqSWYDg==
}
dependencies:
"@iconify/types": 1.0.12
"@iconify/types": 1.1.0
dev: true
/@iconify-icons/fa-solid/1.2.2:
@ -904,7 +920,7 @@ packages:
integrity: sha512-XNU+pk89pMbozQk9YMpxA+K+rPsq07MXJa9TwZS1oyBlbaIdeH6r/KOOeNYzmDVk6yaaZyTh9wfSJhuc8zIVYw==
}
dependencies:
"@iconify/types": 1.0.12
"@iconify/types": 1.1.0
dev: true
/@iconify-icons/fa/1.2.2:
@ -913,7 +929,7 @@ packages:
integrity: sha512-8lecoWNI7X/GRw7B9NPVyGlPrqUxi1w1aZyzAm1s+eiPixmmivxdHtg53tGeSJpYgm/grfSti8EbYoiFTIckrw==
}
dependencies:
"@iconify/types": 1.0.12
"@iconify/types": 1.1.0
dev: true
/@iconify-icons/ri/1.2.1:
@ -922,20 +938,20 @@ packages:
integrity: sha512-8VlUg6xrRz2BWmwulF6aWnb138NzkLhBJZ36Pu/9qjpTwwLyFi+Wgg1+LeMvOBXySiD/H/bTQh7Lay73uiN61A==
}
dependencies:
"@iconify/types": 1.0.12
"@iconify/types": 1.1.0
dev: true
/@iconify/types/1.0.12:
/@iconify/types/1.1.0:
resolution:
{
integrity: sha512-6er6wSGF3hgc1JEZqiGpg21CTCjHBYOUwqLmb2Idzkjiw6ogalGP0ZMLVutCzah+0WB4yP+Zd2oVPN8jvJ+Ftg==
integrity: sha512-Jh0llaK2LRXQoYsorIH8maClebsnzTcve+7U3rQUSnC11X4jtPnFuyatqFLvMxZ8MLG8dB4zfHsbPfuvxluONw==
}
dev: true
/@iconify/vue/3.1.4[email protected]:
/@iconify/vue/3.2.0[email protected]:
resolution:
{
integrity: sha512-oJm0VPl1fhlsbBX9tBeAbtmZ5iHCxCkVQdCi81lxdA3cqc9yqBlCloqObX93/YWNM5N8j/j0Efk6iSwsihOoNA==
integrity: sha512-sBWkef1Pp3vjDfU92UjTnvN9BsJ5o4TVdIN8+Yx+TGEwLcujty7/vq1m9FhJ9D8/ZTAN2MttKojj80s6j4FqGg==
}
peerDependencies:
vue: 3.x
@ -943,10 +959,10 @@ packages:
vue: 3.2.31
dev: true
/@intlify/bundle-utils/2.2.[email protected]:
/@intlify/bundle-utils/2.2.[email protected]:
resolution:
{
integrity: sha512-qVuN7+c84UB6rlLHSued2J9R86LG1rHg6ZibCghGMyPXnW0nOuIfkUFf1F7tXIqfMXjIPeJzlbpmzjWTI2z9Kw==
integrity: sha512-8n8zhYEKypS+KP22KUAC6BnQifJDDWUGcn3OVPqsThqMMucU22MShGvOuiKqQ4AeT7XQ5O4pudlJmxv3L91JrQ==
}
engines: { node: ">= 12" }
peerDependencies:
@ -958,55 +974,55 @@ packages:
vue-i18n:
optional: true
dependencies:
"@intlify/message-compiler": 9.2.0-beta.32
"@intlify/shared": 9.2.0-beta.32
"@intlify/message-compiler": 9.2.0-beta.33
"@intlify/shared": 9.2.0-beta.33
jsonc-eslint-parser: 1.4.1
source-map: 0.6.1
vue-i18n: 9.2.0-beta.32[email protected]
vue-i18n: 9.2.0-beta.33[email protected]
yaml-eslint-parser: 0.3.2
dev: true
/@intlify/core-base/9.2.0-beta.32:
/@intlify/core-base/9.2.0-beta.33:
resolution:
{
integrity: sha512-t9IB9Z65cx0fcpd9/oD8MrsMvGy1FOColOe5oodjo9E//Qm7P8kvSHnKymWjsAcJs0wR2Y6J9X8FRFmO6LNLNQ==
integrity: sha512-8txC4+pIPg0foQkUfjUIT718JK6FV397rlg0Qn6w97W8T7eTjsU0nhgEI5R4vEr6T/diy1VmDZB/Kw+l6MgA5g==
}
engines: { node: ">= 12" }
dependencies:
"@intlify/devtools-if": 9.2.0-beta.32
"@intlify/message-compiler": 9.2.0-beta.32
"@intlify/shared": 9.2.0-beta.32
"@intlify/vue-devtools": 9.2.0-beta.32
"@intlify/devtools-if": 9.2.0-beta.33
"@intlify/message-compiler": 9.2.0-beta.33
"@intlify/shared": 9.2.0-beta.33
"@intlify/vue-devtools": 9.2.0-beta.33
dev: false
/@intlify/devtools-if/9.2.0-beta.32:
/@intlify/devtools-if/9.2.0-beta.33:
resolution:
{
integrity: sha512-MvcxHrP7urM17wcna2vyqt8D8Pc5lyD3ps2BcmAr60UYifNKBQU7LmHfjTG7BZO4t0LyUWrWFJmm7fRVlju40g==
integrity: sha512-k2J9hPHFoGh/AbsHwwc+Oavi5J2ntAM2uayU76nb4kWHouLKSB4wuR8vwxg2URdRizMFUDugXPxgvsP8d+sq5A==
}
engines: { node: ">= 12" }
dependencies:
"@intlify/shared": 9.2.0-beta.32
"@intlify/shared": 9.2.0-beta.33
dev: false
/@intlify/message-compiler/9.2.0-beta.32:
/@intlify/message-compiler/9.2.0-beta.33:
resolution:
{
integrity: sha512-7OOHIhOmOM4nqe3KfEuE65xLwawwBGg/pCFByzayf0jARoHkeaA7v/eKsUJVJMEakeF2pNstx06AvfecijgPzg==
integrity: sha512-+SICjFlnHSbRLZT+sNdBvOAQfcNX+fESyMmgPxC8HHWu4GLN2CoVQS4ACXb3QBZDKLVJBFhFGMnl+UXyJrno6g==
}
engines: { node: ">= 12" }
dependencies:
"@intlify/shared": 9.2.0-beta.32
"@intlify/shared": 9.2.0-beta.33
source-map: 0.6.1
/@intlify/shared/9.2.0-beta.32:
/@intlify/shared/9.2.0-beta.33:
resolution:
{
integrity: sha512-lVaHnKFNg16eWlfDLzDFLapurrf0WK7xLWEkz8DMYNIXJshRQOZCkH7sQaqtONPoOT0LqjyPo1+sV0Wq85/HRQ==
integrity: sha512-HldlkV66vMt1vQsuUz4zjQ202C5KW6aHeIQhx7RxBO11i3E8V84dp5MG9epr9GZXVsrCAR56Ekj0HaTqksIRJA==
}
engines: { node: ">= 12" }
/@intlify/vite-plugin-vue-i18n/3.3.1_fecf2311320b252734da88aa76ba6360:
/@intlify/vite-plugin-vue-i18n/3.3.1_62e4e06bcd41bd33e0b827748b9bb63d:
resolution:
{
integrity: sha512-b9HIUANzL4/LmrA5RqeiPabZl2/RiWNAJ90TVZ8kSi3APRZ4BbmwUAclKe8ip+1jCDhqaGO/qfAI7SbQ0Y76Uw==
@ -1022,27 +1038,27 @@ packages:
vue-i18n:
optional: true
dependencies:
"@intlify/bundle-utils": 2.2.[email protected]
"@intlify/shared": 9.2.0-beta.32
"@intlify/bundle-utils": 2.2.[email protected]
"@intlify/shared": 9.2.0-beta.33
"@rollup/pluginutils": 4.2.0
debug: 4.3.3
fast-glob: 3.2.11
source-map: 0.6.1
vite: 2.9.0-beta.4[email protected]
vue-i18n: 9.2.0-beta.32[email protected]
vite: 2.9.0-beta.8[email protected]
vue-i18n: 9.2.0-beta.33[email protected]
transitivePeerDependencies:
- supports-color
dev: true
/@intlify/vue-devtools/9.2.0-beta.32:
/@intlify/vue-devtools/9.2.0-beta.33:
resolution:
{
integrity: sha512-LZ+E8S+PBeKzV5zDrh/6kbPdEMu+oO6W7B9EmNhzBOKcF94oiJRTkFLymV6U2YefWu+JYEl2LGe7giXXt2jcwg==
integrity: sha512-L6SlCiCuYGStwrTqlVXPv74RoLlUN8had7Nhx3ynyWDppLHFHATi7B3Sz1ENuub1TRJIOmOfdl3L5IV0WXFhoQ==
}
engines: { node: ">= 12" }
dependencies:
"@intlify/core-base": 9.2.0-beta.32
"@intlify/shared": 9.2.0-beta.32
"@intlify/core-base": 9.2.0-beta.33
"@intlify/shared": 9.2.0-beta.33
dev: false
/@jridgewell/resolve-uri/3.0.5:
@ -1301,7 +1317,7 @@ packages:
"@types/node": 14.14.14
dev: true
/@typescript-eslint/eslint-plugin/5.15.0_f2c49ce7d0e93ebcfdb4b7d25b131b28:
/@typescript-eslint/eslint-plugin/5.15.0_8deb5df5f68df203b82d505eb95b6b75:
resolution:
{
integrity: sha512-u6Db5JfF0Esn3tiAKELvoU5TpXVSkOpZ78cEGn/wXtT2RVqs2vkt4ge6N8cRCyw7YVKhmmLDbwI2pg92mlv7cA==
@ -1315,23 +1331,23 @@ packages:
typescript:
optional: true
dependencies:
"@typescript-eslint/parser": 5.15[email protected][email protected].2
"@typescript-eslint/parser": 5.15[email protected][email protected].3
"@typescript-eslint/scope-manager": 5.15.0
"@typescript-eslint/type-utils": 5.15[email protected][email protected].2
"@typescript-eslint/utils": 5.15[email protected][email protected].2
"@typescript-eslint/type-utils": 5.15[email protected][email protected].3
"@typescript-eslint/utils": 5.15[email protected][email protected].3
debug: 4.3.3
eslint: 8.11.0
functional-red-black-tree: 1.0.1
ignore: 5.2.0
regexpp: 3.2.0
semver: 7.3.5
tsutils: 3.21[email protected].2
typescript: 4.6.2
tsutils: 3.21[email protected].3
typescript: 4.6.3
transitivePeerDependencies:
- supports-color
dev: true
/@typescript-eslint/parser/[email protected][email protected].2:
/@typescript-eslint/parser/[email protected][email protected].3:
resolution:
{
integrity: sha512-NGAYP/+RDM2sVfmKiKOCgJYPstAO40vPAgACoWPO/+yoYKSgAXIFaBKsV8P0Cc7fwKgvj27SjRNX4L7f4/jCKQ==
@ -1346,10 +1362,10 @@ packages:
dependencies:
"@typescript-eslint/scope-manager": 5.15.0
"@typescript-eslint/types": 5.15.0
"@typescript-eslint/typescript-estree": 5.15[email protected].2
"@typescript-eslint/typescript-estree": 5.15[email protected].3
debug: 4.3.3
eslint: 8.11.0
typescript: 4.6.2
typescript: 4.6.3
transitivePeerDependencies:
- supports-color
dev: true
@ -1365,7 +1381,7 @@ packages:
"@typescript-eslint/visitor-keys": 5.15.0
dev: true
/@typescript-eslint/type-utils/[email protected][email protected].2:
/@typescript-eslint/type-utils/[email protected][email protected].3:
resolution:
{
integrity: sha512-KGeDoEQ7gHieLydujGEFLyLofipe9PIzfvA/41urz4hv+xVxPEbmMQonKSynZ0Ks2xDhJQ4VYjB3DnRiywvKDA==
@ -1378,11 +1394,11 @@ packages:
typescript:
optional: true
dependencies:
"@typescript-eslint/utils": 5.15[email protected][email protected].2
"@typescript-eslint/utils": 5.15[email protected][email protected].3
debug: 4.3.3
eslint: 8.11.0
tsutils: 3.21[email protected].2
typescript: 4.6.2
tsutils: 3.21[email protected].3
typescript: 4.6.3
transitivePeerDependencies:
- supports-color
dev: true
@ -1395,7 +1411,7 @@ packages:
engines: { node: ^12.22.0 || ^14.17.0 || >=16.0.0 }
dev: true
/@typescript-eslint/typescript-estree/[email protected].2:
/@typescript-eslint/typescript-estree/[email protected].3:
resolution:
{
integrity: sha512-Hb0e3dGc35b75xLzixM3cSbG1sSbrTBQDfIScqdyvrfJZVEi4XWAT+UL/HMxEdrJNB8Yk28SKxPLtAhfCbBInA==
@ -1413,13 +1429,13 @@ packages:
globby: 11.1.0
is-glob: 4.0.3
semver: 7.3.5
tsutils: 3.21[email protected].2
typescript: 4.6.2
tsutils: 3.21[email protected].3
typescript: 4.6.3
transitivePeerDependencies:
- supports-color
dev: true
/@typescript-eslint/utils/[email protected][email protected].2:
/@typescript-eslint/utils/[email protected][email protected].3:
resolution:
{
integrity: sha512-081rWu2IPKOgTOhHUk/QfxuFog8m4wxW43sXNOMSCdh578tGJ1PAaWPsj42LOa7pguh173tNlMigsbrHvh/mtA==
@ -1431,7 +1447,7 @@ packages:
"@types/json-schema": 7.0.10
"@typescript-eslint/scope-manager": 5.15.0
"@typescript-eslint/types": 5.15.0
"@typescript-eslint/typescript-estree": 5.15[email protected].2
"@typescript-eslint/typescript-estree": 5.15[email protected].3
eslint: 8.11.0
eslint-scope: 5.1.1
eslint-utils: 3.0[email protected]
@ -1451,7 +1467,7 @@ packages:
eslint-visitor-keys: 3.3.0
dev: true
/@vitejs/plugin-legacy/[email protected].4:
/@vitejs/plugin-legacy/[email protected].8:
resolution:
{
integrity: sha512-RqgILXsGpfV7NHodVCdBVau8ss5+ynMXp6JGF/F7nhSy0bnwSQPlMS3KFqh7twfifXK8VuMriqfU4CxOiqmNnA==
@ -1465,7 +1481,7 @@ packages:
magic-string: 0.25.9
regenerator-runtime: 0.13.9
systemjs: 6.12.1
vite: 2.9.0-beta.4[email protected]
vite: 2.9.0-beta.8[email protected]
dev: true
/@vitejs/plugin-vue-jsx/1.3.8:
@ -1485,7 +1501,7 @@ packages:
- supports-color
dev: true
/@vitejs/plugin-vue/[email protected].4[email protected]:
/@vitejs/plugin-vue/[email protected].8[email protected]:
resolution:
{
integrity: sha512-ev9AOlp0ljCaDkFZF3JwC/pD2N4Hh+r5srl5JHM6BKg5+99jiiK0rE/XaRs3pVm1wzyKkjUy/StBSoXX5fFzcw==
@ -1495,7 +1511,7 @@ packages:
vite: ^2.5.10
vue: ^3.2.25
dependencies:
vite: 2.9.0-beta.4[email protected]
vite: 2.9.0-beta.8[email protected]
vue: 3.2.31
dev: true
@ -1594,7 +1610,7 @@ packages:
prettier: 2.6.0
dev: true
/@vue/eslint-config-typescript/10.0.0_5e58415d4c9ab0c3da8935a9b8bb8c26:
/@vue/eslint-config-typescript/10.0.0_67e26bb50fed2173443e3fe1262a69b2:
resolution:
{
integrity: sha512-F94cL8ug3FaYXlCfU5/wiGjk1qeadmoBpRGAOBq+qre3Smdupa59dd6ZJrsfRODpsMPyTG7330juMDsUvpZ3Rw==
@ -1604,8 +1620,8 @@ packages:
eslint: ^6.2.0 || ^7.0.0 || ^8.0.0
eslint-plugin-vue: ^8.0.1
dependencies:
"@typescript-eslint/eslint-plugin": 5.15.0_f2c49ce7d0e93ebcfdb4b7d25b131b28
"@typescript-eslint/parser": 5.15[email protected][email protected].2
"@typescript-eslint/eslint-plugin": 5.15.0_8deb5df5f68df203b82d505eb95b6b75
"@typescript-eslint/parser": 5.15[email protected][email protected].3
eslint: 8.11.0
eslint-plugin-vue: 8.5[email protected]
vue-eslint-parser: 8.3[email protected]
@ -1675,10 +1691,10 @@ packages:
integrity: sha512-ymN2pj6zEjiKJZbrf98UM2pfDd6F2H7ksKw7NDt/ZZ1fh5Ei39X5tABugtT03ZRlWd9imccoK0hE8hpjpU7irQ==
}
/@vueuse/core/8.1.1[email protected]:
/@vueuse/core/8.2.0[email protected]:
resolution:
{
integrity: sha512-NmpizOcQXW0OHV0qa6YwFtw5hQBe0RxMuxQoIIbCa6jRT16MTweFPecIM6VgA1e5vZJtAO7p//TgLSpzi3joZQ==
integrity: sha512-89ZfKtFHz5ynfpWyFVXtK0yePJ2MZqFaOxnGeZn7cIp8KFbPRlu6Wsxi3gBkJNpjq+q9qbEh6MjV7QBvqCQ5Og==
}
peerDependencies:
"@vue/composition-api": ^1.1.0
@ -1689,16 +1705,16 @@ packages:
vue:
optional: true
dependencies:
"@vueuse/metadata": 8.1.1
"@vueuse/shared": 8.1.1[email protected]
"@vueuse/metadata": 8.2.0
"@vueuse/shared": 8.2.0[email protected]
vue: 3.2.31
vue-demi: 0.12[email protected]
dev: false
/@vueuse/metadata/8.1.1:
/@vueuse/metadata/8.2.0:
resolution:
{
integrity: sha512-TSmA3UaSmBcV8pJ7fnHAL7NjSE1RQZlpJklg6YysFxwxDb0MZlo+Q8j9U1hLBZT1fnAjwZMaoxilanHN8ZwugQ==
integrity: sha512-cbaezEccNuxQC+OiudG9VjZNg9/RbAAHkyuhC6+8Gsgsc+MvDhfn1NrV6NNTaldLlZgJFgUiYOkrf3JGTTTGXQ==
}
dev: false
@ -1714,8 +1730,8 @@ packages:
"@vue/composition-api":
optional: true
dependencies:
"@vueuse/core": 8.1.1[email protected]
"@vueuse/shared": 8.1.1[email protected]
"@vueuse/core": 8.2.0[email protected]
"@vueuse/shared": 8.2.0[email protected]
framesync: 6.1.0
popmotion: 11.0.3
style-value-types: 5.1.0
@ -1723,10 +1739,10 @@ packages:
vue-demi: 0.12[email protected]
dev: false
/@vueuse/shared/8.1.1[email protected]:
/@vueuse/shared/8.2.0[email protected]:
resolution:
{
integrity: sha512-lWRcK8W9+q1t1XMxW9JIljXFQLIViInTOEF7wUHcISQNAYwHtHgr0z+U5SRM8tA4eJd/dVs/2BV1/z2DG7aKEg==
integrity: sha512-dTw7EJZgZCgG9DoVAiz4LtmKnIFXuE/idUFzvqRAJLjbPiVJc+qQH5kDUdKHI3W1U9t//1mdasQEKONArburiQ==
}
peerDependencies:
"@vue/composition-api": ^1.1.0
@ -2928,18 +2944,19 @@ packages:
}
dev: true
/element-plus/2.1.4_1a412d14def5ff5ca1122000e4bee666:
/element-plus/2.1.5_1a412d14def5ff5ca1122000e4bee666:
resolution:
{
integrity: sha512-pcwgDbKUrzyWbixYB/zIbLPLBQ/NPGPJnGXJ+jYozUSthPW4SuriaUGJKgbAE6PDBAtw3IodiT2E2GbiaZLxww==
integrity: sha512-QHssDDY2uIJVmfXHkPU7DOxDMqlb2UCsfpJaYRrAYpZC4YIrbtQCcw26A7uRZogDu+ampAaZzGQqioDLdKNkiA==
}
peerDependencies:
vue: ^3.2.0
dependencies:
"@ctrl/tinycolor": 3.4.0
"@element-plus/icons-vue": 1.1[email protected]
"@element-plus/icons-vue": 1.1[email protected]
"@floating-ui/dom": 0.4.2
"@popperjs/core": 2.11.4
"@vueuse/core": 8.1.1[email protected]
"@vueuse/core": 8.2.0[email protected]
async-validator: 4.0.7
dayjs: 1.11.0
escape-html: 1.0.3
@ -2947,7 +2964,7 @@ packages:
lodash-es: 4.17.21
lodash-unified: 1.0.2_da03a4540fbd16bbaafbb96724306afd
memoize-one: 6.0.0
normalize-wheel-es: 1.1.1
normalize-wheel-es: 1.1.2
vue: 3.2.31
transitivePeerDependencies:
- "@types/lodash-es"
@ -5005,10 +5022,10 @@ packages:
engines: { node: ">=10" }
dev: true
/normalize-wheel-es/1.1.1:
/normalize-wheel-es/1.1.2:
resolution:
{
integrity: sha512-157VNH4CngrcsvF8xOVOe22cwniIR3nxSltdctvQeHZj8JttEeOXffK28jucWfWBXs0QNetAumjc1GiInnwX4w==
integrity: sha512-scX83plWJXYH1J4+BhAuIHadROzxX0UBF3+HuZNY2Ks8BciE7tSTQ+5JhTsvzjaO0/EJdm4JBGrfObKxFf3Png==
}
dev: false
@ -5280,7 +5297,7 @@ packages:
engines: { node: ">=0.10.0" }
dev: true
/pinia/[email protected].2[email protected]:
/pinia/[email protected].3[email protected]:
resolution:
{
integrity: sha512-tUeuYGFrLU5irmGyRAIxp35q1OTcZ8sKpGT4XkPeVcG35W4R6cfXDbCGexzmVqH5lTQJJTXXbNGutIu9yS5yew==
@ -5296,7 +5313,7 @@ packages:
optional: true
dependencies:
"@vue/devtools-api": 6.1.3
typescript: 4.6.2
typescript: 4.6.3
vue: 3.2.31
vue-demi: 0.12[email protected]
dev: false
@ -6752,7 +6769,7 @@ packages:
engines: { node: ">=8" }
dev: true
/ts-node/[email protected].2:
/ts-node/[email protected].3:
resolution:
{
integrity: sha512-hPlt7ZACERQGf03M253ytLY3dHbGNGrAq9qIHWUY9XHYl1z7wYngSr3OQ5xmui8o2AaxsONxIzjafLUiWBo1Fg==
@ -6767,7 +6784,7 @@ packages:
diff: 4.0.2
make-error: 1.3.6
source-map-support: 0.5.21
typescript: 4.6.2
typescript: 4.6.3
yn: 3.1.1
dev: true
@ -6784,7 +6801,7 @@ packages:
integrity: sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==
}
/tsutils/[email protected].2:
/tsutils/[email protected].3:
resolution:
{
integrity: sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA==
@ -6794,7 +6811,7 @@ packages:
typescript: ">=2.8.0 || >= 3.2.0-dev || >= 3.3.0-dev || >= 3.4.0-dev || >= 3.5.0-dev || >= 3.6.0-dev || >= 3.6.0-beta || >= 3.7.0-dev || >= 3.7.0-beta"
dependencies:
tslib: 1.14.1
typescript: 4.6.2
typescript: 4.6.3
dev: true
/type-check/0.4.0:
@ -6847,10 +6864,10 @@ packages:
engines: { node: ">=8" }
dev: true
/typescript/4.6.2:
/typescript/4.6.3:
resolution:
{
integrity: sha512-HM/hFigTBHZhLXshn9sN37H085+hQGeJHJ/X7LpBWLID/fbc2acUMfU+lGD98X81sKP+pFa9f0DZmCwB9GnbAg==
integrity: sha512-yNIatDa5iaofVozS/uQJEl3JRWLKKGJKh6Yaiv0GLGSuhpFJe7P3SbHZ8/yjAHRQwKRoA6YZqlfjXWmVzoVSMw==
}
engines: { node: ">=4.2.0" }
hasBin: true
@ -6869,7 +6886,7 @@ packages:
engines: { node: ">= 0.8" }
dev: true
/unplugin-element-plus/[email protected][email protected].4:
/unplugin-element-plus/[email protected][email protected].8:
resolution:
{
integrity: sha512-/oPbLA1ByrZ3VvN3jrVtVZcGJ147+ccyrL1w9d8wNLTTMH+buxdtiMQQv9R7Muz22ocJvebXZzlRVlA/JeeVPA==
@ -6879,7 +6896,7 @@ packages:
"@rollup/pluginutils": 4.2.0
es-module-lexer: 0.10.4
magic-string: 0.26.1
unplugin: 0.3[email protected][email protected].4
unplugin: 0.3[email protected][email protected].8
transitivePeerDependencies:
- esbuild
- rollup
@ -6887,7 +6904,7 @@ packages:
- webpack
dev: true
/unplugin/[email protected][email protected].4:
/unplugin/[email protected][email protected].8:
resolution:
{
integrity: sha512-WjZWpUqqcYPQ/efR00Zm2m1+J1LitwoZ4uhHV4VdZ+IpW0Nh/qnDYtVf+nLhozXdGxslMPecOshVR7NiWFl4gA==
@ -6908,7 +6925,7 @@ packages:
optional: true
dependencies:
rollup: 2.70.1
vite: 2.9.0-beta.4[email protected]
vite: 2.9.0-beta.8[email protected]
webpack-virtual-modules: 0.4.3
dev: true
@ -6992,7 +7009,7 @@ packages:
chokidar: 3.5.3
dev: true
/vite-plugin-mock/2.9.6_cc7e5ded527ea0e0180226d44637e3ca:
/vite-plugin-mock/2.9.6_78dd2855e4ba22368bbd2dff8c1eb1e8:
resolution:
{
integrity: sha512-/Rm59oPppe/ncbkSrUuAxIQihlI2YcBmnbR4ST1RA2VzM1C0tEQc1KlbQvnUGhXECAGTaQN2JyasiwXP6EtKgg==
@ -7012,20 +7029,20 @@ packages:
fast-glob: 3.2.11
mockjs: 1.1.0
path-to-regexp: 6.2.0
vite: 2.9.0-beta.4[email protected]
vite: 2.9.0-beta.8[email protected]
transitivePeerDependencies:
- rollup
- supports-color
dev: true
/vite-plugin-remove-console/0.0.6:
/vite-plugin-remove-console/0.0.7:
resolution:
{
integrity: sha512-nwzYfkk320uO9sYBCql6rTE/07cjhffnHjayHXLdeDDQD6nGwmuqvBB1YWHlvIeboKr/caMdkpZpE7pM5kk2fw==
integrity: sha512-aGD/EK/EeEjKaRlgwx/6bT1lSGUGR/ITUUSnwVPkRbHF0TFsoprruv1SRx7+NQTAsGazRSaFepO0znCqtiHsFw==
}
dev: true
/vite-plugin-style-import/[email protected].4:
/vite-plugin-style-import/[email protected].8:
resolution:
{
integrity: sha512-lJCRvm7+So0hHdnSJiJPg9gD5mxtL6YY0jmhEph+k7ArpsyvqOh6han2kG5htbWWDZxHkUN9d1BuTFL//yCLLQ==
@ -7039,12 +7056,12 @@ packages:
es-module-lexer: 0.9.3
fs-extra: 10.0.1
magic-string: 0.25.9
vite: 2.9.0-beta.4[email protected]
vite: 2.9.0-beta.8[email protected]
transitivePeerDependencies:
- supports-color
dev: true
/vite-plugin-windicss/[email protected].4:
/vite-plugin-windicss/[email protected].8:
resolution:
{
integrity: sha512-RIw2GD6H6cKNE8wZXVOBs4L1uTicVS0FaAkeqXvy1oyuXLC4SXmvnzEuoK0+qFuWJjW0ECNwE8eU+ZZhzNQKUg==
@ -7055,7 +7072,7 @@ packages:
"@windicss/plugin-utils": 1.8.3
debug: 4.3.3
kolorist: 1.5.1
vite: 2.9.0-beta.4[email protected]
vite: 2.9.0-beta.8[email protected]
windicss: 3.5.1
transitivePeerDependencies:
- supports-color
@ -7071,10 +7088,10 @@ packages:
svgo: 2.8.0
dev: true
/vite/2.9.0-beta.4[email protected]:
/vite/2.9.0-beta.8[email protected]:
resolution:
{
integrity: sha512-ToelFqN8lBaiK34VHzTbixOImHoHBw/PCveV5Xynd4ie1twcE0G6t9MFgunuN1hoajWMraGL5bV+pZ3hENR7GA==
integrity: sha512-8pTPiHpL7oVtNJKf7zi63XoFD7U6XfQ/e3SJWizPPzuxr8LLd09Dz28mt0ZKUltXH/jQ+1eiNY5Bgnbxff991g==
}
engines: { node: ">=12.2.0" }
hasBin: true
@ -7138,18 +7155,18 @@ packages:
- supports-color
dev: true
/vue-i18n/9.2.0-beta.32[email protected]:
/vue-i18n/9.2.0-beta.33[email protected]:
resolution:
{
integrity: sha512-heUy1Aa/4DT2+ukoZkXMtDeU0o4pB5K6XxCypsmpoQ1QURAx1zyHqHB4mdjnLj3DDjllT921cV9cuKEWflQYGQ==
integrity: sha512-9pdffijCCGvOTVVgxvTVMeQYiwzuZXftjRbK2WLVJA14TYFgTmhOyVr/8a6Li0SO+4ketPzyeHo24Km+AajjPQ==
}
engines: { node: ">= 12" }
peerDependencies:
vue: ^3.0.0
dependencies:
"@intlify/core-base": 9.2.0-beta.32
"@intlify/shared": 9.2.0-beta.32
"@intlify/vue-devtools": 9.2.0-beta.32
"@intlify/core-base": 9.2.0-beta.33
"@intlify/shared": 9.2.0-beta.33
"@intlify/vue-devtools": 9.2.0-beta.33
"@vue/devtools-api": 6.1.3
vue: 3.2.31
dev: false

10
src/layout/theme/element-plus.ts

@ -26,7 +26,9 @@ export const writeNewStyle = (newStyle: string): void => {
};
// 根据主题色,生成最新的样式表
export const createNewStyle = (primaryStyle: string): string => {
export const createNewStyle = (
primaryStyle: Record<string, any>
): Record<string, any> => {
// 根据主色生成色值表
const colors = createColors(primaryStyle);
// 在当前ep的默认样式表中标记需要替换的色值
@ -41,7 +43,9 @@ export const createNewStyle = (primaryStyle: string): string => {
return cssText;
};
export const createColors = (primary: string) => {
export const createColors = (
primary: Record<string, any>
): Record<string, any> => {
if (!primary) return;
const colors = {
primary
@ -53,7 +57,7 @@ export const createColors = (primary: string) => {
return colors;
};
const getStyleTemplate = (data: string): string => {
const getStyleTemplate = (data: Record<string, any>): Record<string, any> => {
const colorMap = {
"#3a8ee6": "shade-1",
"#409eff": "primary",

Loading…
Cancel
Save