Skip to content

Commit 1ad4101

Browse files
committed
Add theme func detail to look v1.8.1 update log
1 parent 3c8a4ce commit 1ad4101

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1410
-452
lines changed

.eslintrc-auto-import.json

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
{
22
"globals": {
3+
"acceptHMRUpdate": true,
34
"axiosReq": true,
45
"computed": true,
56
"createApp": true,
6-
"createLogger": true,
7-
"createNamespacedHelpers": true,
8-
"createStore": true,
7+
"createPinia": true,
98
"customRef": true,
109
"defineAsyncComponent": true,
1110
"defineComponent": true,
11+
"defineStore": true,
1212
"effectScope": true,
1313
"EffectScope": true,
14+
"getActivePinia": true,
1415
"getCurrentInstance": true,
1516
"getCurrentScope": true,
1617
"h": true,
@@ -19,8 +20,9 @@
1920
"isRef": true,
2021
"mapActions": true,
2122
"mapGetters": true,
22-
"mapMutations": true,
2323
"mapState": true,
24+
"mapStores": true,
25+
"mapWritableState": true,
2426
"markRaw": true,
2527
"nextTick": true,
2628
"onActivated": true,
@@ -41,9 +43,12 @@
4143
"readonly": true,
4244
"ref": true,
4345
"resolveComponent": true,
46+
"setActivePinia": true,
47+
"setMapStoreSuffix": true,
4448
"shallowReactive": true,
4549
"shallowReadonly": true,
4650
"shallowRef": true,
51+
"storeToRefs": true,
4752
"toRaw": true,
4853
"toRef": true,
4954
"toRefs": true,
@@ -57,7 +62,6 @@
5762
"useRoute": true,
5863
"useRouter": true,
5964
"useSlots": true,
60-
"useStore": true,
6165
"useVueRouter": true,
6266
"watch": true,
6367
"watchEffect": true

auto-imports.d.ts

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,29 @@
11
// Generated by 'unplugin-auto-import'
22
// We suggest you to commit this file into source control
33
declare global {
4+
const acceptHMRUpdate: typeof import('pinia')['acceptHMRUpdate']
45
const axiosReq: typeof import('@/utils/axiosReq')['axiosReq']
56
const computed: typeof import('vue')['computed']
67
const createApp: typeof import('vue')['createApp']
7-
const createLogger: typeof import('vuex')['createLogger']
8-
const createNamespacedHelpers: typeof import('vuex')['createNamespacedHelpers']
9-
const createStore: typeof import('vuex')['createStore']
8+
const createPinia: typeof import('pinia')['createPinia']
109
const customRef: typeof import('vue')['customRef']
1110
const defineAsyncComponent: typeof import('vue')['defineAsyncComponent']
1211
const defineComponent: typeof import('vue')['defineComponent']
12+
const defineStore: typeof import('pinia')['defineStore']
1313
const effectScope: typeof import('vue')['effectScope']
1414
const EffectScope: typeof import('vue')['EffectScope']
15+
const getActivePinia: typeof import('pinia')['getActivePinia']
1516
const getCurrentInstance: typeof import('vue')['getCurrentInstance']
1617
const getCurrentScope: typeof import('vue')['getCurrentScope']
1718
const h: typeof import('vue')['h']
1819
const inject: typeof import('vue')['inject']
1920
const isReadonly: typeof import('vue')['isReadonly']
2021
const isRef: typeof import('vue')['isRef']
21-
const mapActions: typeof import('vuex')['mapActions']
22-
const mapGetters: typeof import('vuex')['mapGetters']
23-
const mapMutations: typeof import('vuex')['mapMutations']
24-
const mapState: typeof import('vuex')['mapState']
22+
const mapActions: typeof import('pinia')['mapActions']
23+
const mapGetters: typeof import('pinia')['mapGetters']
24+
const mapState: typeof import('pinia')['mapState']
25+
const mapStores: typeof import('pinia')['mapStores']
26+
const mapWritableState: typeof import('pinia')['mapWritableState']
2527
const markRaw: typeof import('vue')['markRaw']
2628
const nextTick: typeof import('vue')['nextTick']
2729
const onActivated: typeof import('vue')['onActivated']
@@ -42,9 +44,12 @@ declare global {
4244
const readonly: typeof import('vue')['readonly']
4345
const ref: typeof import('vue')['ref']
4446
const resolveComponent: typeof import('vue')['resolveComponent']
47+
const setActivePinia: typeof import('pinia')['setActivePinia']
48+
const setMapStoreSuffix: typeof import('pinia')['setMapStoreSuffix']
4549
const shallowReactive: typeof import('vue')['shallowReactive']
4650
const shallowReadonly: typeof import('vue')['shallowReadonly']
4751
const shallowRef: typeof import('vue')['shallowRef']
52+
const storeToRefs: typeof import('pinia')['storeToRefs']
4853
const toRaw: typeof import('vue')['toRaw']
4954
const toRef: typeof import('vue')['toRef']
5055
const toRefs: typeof import('vue')['toRefs']
@@ -58,7 +63,6 @@ declare global {
5863
const useRoute: typeof import('vue-router')['useRoute']
5964
const useRouter: typeof import('vue-router')['useRouter']
6065
const useSlots: typeof import('vue')['useSlots']
61-
const useStore: typeof import('vuex')['useStore']
6266
const useVueRouter: typeof import('@/hooks/global/useVueRouter')['useVueRouter']
6367
const watch: typeof import('vue')['watch']
6468
const watchEffect: typeof import('vue')['watchEffect']

components.d.ts

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,15 @@
11
// generated by unplugin-vue-components
22
// We suggest you to commit this file into source control
3-
// Read more: https://github.com/vuejs/vue-next/pull/3399
3+
// Read more: https://github.com/vuejs/core/pull/3399
4+
import '@vue/runtime-core'
45

5-
declare module 'vue' {
6+
declare module '@vue/runtime-core' {
67
export interface GlobalComponents {
7-
ElBreadcrumb: typeof import('element-plus/es')['ElBreadcrumb']
8-
ElBreadcrumbItem: typeof import('element-plus/es')['ElBreadcrumbItem']
9-
ElButton: typeof import('element-plus/es')['ElButton']
10-
ElDropdown: typeof import('element-plus/es')['ElDropdown']
11-
ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem']
12-
ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu']
13-
ElIcon: typeof import('element-plus/es')['ElIcon']
14-
ElMenu: typeof import('element-plus/es')['ElMenu']
15-
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
16-
ElScrollbar: typeof import('element-plus/es')['ElScrollbar']
17-
ElSubMenu: typeof import('element-plus/es')['ElSubMenu']
18-
ElSwitch: typeof import('element-plus/es')['ElSwitch']
8+
ElSvgIcon: typeof import('./src/components/ElSvgIcon.vue')['default']
9+
RouterLink: typeof import('vue-router')['RouterLink']
10+
RouterView: typeof import('vue-router')['RouterView']
11+
TestUnit: typeof import('./src/components/TestUnit.vue')['default']
1912
}
2013
}
2114

22-
export { }
15+
export {}

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="en" class="base-theme">
33
<head>
44
<meta charset="UTF-8" />
55
<link rel="icon" href="/favicon.ico" />

optimize-include.ts

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
// const fs = require('fs')
2+
// const files = fs.readdirSync(
3+
// 'D:\\github\\vue3-admin-ts\\node_modules\\.pnpm\\element-plus@2.2.9_vue@3.2.37\\node_modules\\element-plus\\es\\components\\'
4+
// )
5+
// console.log(111, JSON.stringify(files))
6+
// console.log(console.dir(files))
7+
// console.log(console.dir(files.slice(20)))
8+
9+
const elementPlusComponentNameArr = [
10+
'affix',
11+
'alert',
12+
'aside',
13+
'autocomplete',
14+
'avatar',
15+
'backtop',
16+
'badge',
17+
'base',
18+
'breadcrumb',
19+
'breadcrumb-item',
20+
'button',
21+
'button-group',
22+
'calendar',
23+
'card',
24+
'carousel',
25+
'carousel-item',
26+
'cascader',
27+
'cascader-panel',
28+
'check-tag',
29+
'checkbox',
30+
'checkbox-button',
31+
'checkbox-group',
32+
'col',
33+
'collapse',
34+
'collapse-item',
35+
'collapse-transition',
36+
'color-picker',
37+
'config-provider',
38+
'container',
39+
'date-picker',
40+
'descriptions',
41+
'descriptions-item',
42+
'dialog',
43+
'divider',
44+
'drawer',
45+
'dropdown',
46+
'dropdown-item',
47+
'dropdown-menu',
48+
'empty',
49+
'footer',
50+
'form',
51+
'form-item',
52+
'header',
53+
'icon',
54+
'image',
55+
'image-viewer',
56+
'infinite-scroll',
57+
'input',
58+
'input-number',
59+
'link',
60+
'loading',
61+
'main',
62+
'menu',
63+
'menu-item',
64+
'menu-item-group',
65+
'message',
66+
'message-box',
67+
'notification',
68+
'option',
69+
'option-group',
70+
'overlay',
71+
'page-header',
72+
'pagination',
73+
'popconfirm',
74+
'popover',
75+
'popper',
76+
'progress',
77+
'radio',
78+
'radio-button',
79+
'radio-group',
80+
'rate',
81+
'result',
82+
'row',
83+
'scrollbar',
84+
'select',
85+
'select-v2',
86+
'skeleton',
87+
'skeleton-item',
88+
'slider',
89+
'space',
90+
'step',
91+
'steps',
92+
'sub-menu',
93+
'switch',
94+
'tab-pane',
95+
'table',
96+
'table-column',
97+
'table-v2',
98+
'tabs',
99+
'tag',
100+
'teleport',
101+
'time-picker',
102+
'time-select',
103+
'timeline',
104+
'timeline-item',
105+
'tooltip',
106+
'transfer',
107+
'tree',
108+
'tree-select',
109+
'tree-v2',
110+
'upload',
111+
'virtual-list'
112+
]
113+
export const optimizeDepsArr = () => {
114+
const depsArr = [] as string[]
115+
elementPlusComponentNameArr.forEach((feItem) => {
116+
depsArr.push(`element-plus/es/components/${feItem}/style/index`)
117+
})
118+
119+
return depsArr
120+
}
121+
122+
export default []

package.json

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue3-admin-template",
3-
"version": "1.6.1",
3+
"version": "1.8.1",
44
"license": "ISC",
55
"author": "kuanghua(869653722@qq.com)",
66
"packageManager": "pnpm@6.32.3",
@@ -22,17 +22,17 @@
2222
"vue": "^3.2.26"
2323
},
2424
"dependencies": {
25-
"@element-plus/icons-vue": "2.0.4",
25+
"@element-plus/icons-vue": "^2.0.4",
2626
"js-error-collection": "^1.0.7",
2727
"axios": "0.21.3",
2828
"echarts": "5.3.2",
29-
"element-plus": "2.2.5",
29+
"element-plus": "^2.2.9",
3030
"mitt": "3.0.0",
3131
"moment-mini": "2.22.1",
3232
"nprogress": "0.2.0",
3333
"path": "0.12.7",
3434
"path-to-regexp": "6.2.0",
35-
"pinia": "2.0.14",
35+
"pinia": "^2.0.16",
3636
"tinymce": "4.9.11",
3737
"vue": "3.2.37",
3838
"vue-router": "4.0.14"
@@ -41,11 +41,9 @@
4141
"@babel/eslint-parser": "7.16.3",
4242
"@types/echarts": "4.9.7",
4343
"@types/mockjs": "1.0.6",
44-
"@types/node": "15.0.1",
4544
"@typescript-eslint/eslint-plugin": "5.5.0",
4645
"@typescript-eslint/parser": "5.5.0",
4746
"@vitejs/plugin-legacy": "1.6.4",
48-
"@vitejs/plugin-vue": "1.10.2",
4947
"@vitejs/plugin-vue-jsx": "1.3.1",
5048
"eslint": "7.32.0",
5149
"eslint-config-prettier": "8.3.0",
@@ -56,19 +54,12 @@
5654
"husky": "7.0.2",
5755
"mockjs": "1.1.0",
5856
"prettier": "2.2.1",
59-
"sass": "1.32.12",
60-
"scss": "0.2.4",
6157
"svg-sprite-loader": "6.0.11",
62-
"typescript": "4.5.4",
63-
"unplugin-auto-import": "^0.5.11",
64-
"unplugin-vue-components": "^0.17.14",
65-
"vite": "2.9.12",
6658
"vite-plugin-html": "^3.2.0",
6759
"vite-plugin-mock": "^2.9.6",
6860
"vite-plugin-style-import": "1.2.1",
6961
"vite-plugin-svg-icons": "1.0.5",
7062
"vite-plugin-vue-setup-extend-plus": "0.0.2",
71-
"vue-tsc": "0.28.1",
7263
"jest": "<27",
7364
"ts-jest": "<27",
7465
"tslib": "^2.4.0",
@@ -83,14 +74,23 @@
8374
"ts-node": "10.7.0",
8475
"majestic": "1.8.1",
8576
"@vue/cli-plugin-unit-jest": "4.5.17",
86-
"@vue/cli-service": "4.5.17"
77+
"@vue/cli-service": "4.5.17",
78+
"@types/node": "^17.0.35",
79+
"@vitejs/plugin-vue": "^2.3.3",
80+
"sass": "^1.52.1",
81+
"typescript": "^4.7.2",
82+
"unplugin-auto-import": "^0.5.11",
83+
"unplugin-vue-components": "^0.19.5",
84+
"vite": "^3.0.0",
85+
"@vueuse/core": "^8.7.5",
86+
"vue-tsc": "^0.34.16"
8787
},
8888
"browserslist": [
8989
"> 1%",
9090
"not ie 11",
9191
"not op_mini all"
9292
],
9393
"engines": {
94-
"node": ">= 14<18"
94+
"node": ">= 14"
9595
}
9696
}

src/App.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,18 @@
11
<template>
2-
<router-view />
2+
<el-config-provider :locale="locale" namespace="el" size="small">
3+
<router-view />
4+
</el-config-provider>
35
</template>
46
<script setup>
57
import { setToken } from '@/utils/auth'
68
import { useAppStore } from '@/store/app'
79
10+
import zhCn from 'element-plus/lib/locale/lang/zh-cn'
11+
let locale = $ref(zhCn) //中文
12+
13+
// import en from 'element-plus/lib/locale/lang/en'
14+
// let locale = $ref(en) //english
15+
816
const appStore = useAppStore()
917
const settings = computed(() => {
1018
return appStore.settings
File renamed without changes.
File renamed without changes.

src/icons/common/hamburger.svg

Lines changed: 2 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)