diff --git a/CHANGELOG.md b/CHANGELOG.md
index 2b693c5..b89569d 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -2,6 +2,13 @@
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
+### [1.2.12](https://github.com/kailong321200875/vue-element-plus-admin/compare/v1.2.11...v1.2.12) (2022-04-17)
+
+
+### Bug Fixes
+
+* fixed spelling 'ElememtPlusSzie' ([5dbbc60](https://github.com/kailong321200875/vue-element-plus-admin/commit/5dbbc608640d93fe68fec6f58fdb30a43e02aada))
+
### [1.2.11](https://github.com/kailong321200875/vue-element-plus-admin/compare/v1.2.10...v1.2.11) (2022-04-14)
diff --git a/README.md b/README.md
index f03f1f5..51c7d01 100644
--- a/README.md
+++ b/README.md
@@ -200,13 +200,21 @@ Support modern browsers, not IE
Snoword
+
+
+
+
+ Yangyu
+
+ |
WuYihui
- |
+
+
diff --git a/README.zh-CN.md b/README.zh-CN.md
index 938ddc1..9d921a8 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -200,13 +200,21 @@ pnpm run build:pro
Snoword
|
+
+
+
+
+ Yangyu
+
+ |
WuYihui
- |
+
+
diff --git a/package.json b/package.json
index eec207d..3f77e8b 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "vue-element-plus-admin",
- "version": "1.2.11",
+ "version": "1.2.12",
"description": "一套基于vue3、element-plus、typesScript、vite2的后台集成方案。",
"author": "Archer <502431556@qq.com>",
"private": false,
diff --git a/src/components/ConfigGlobal/src/ConfigGlobal.vue b/src/components/ConfigGlobal/src/ConfigGlobal.vue
index 189e6eb..985d5df 100644
--- a/src/components/ConfigGlobal/src/ConfigGlobal.vue
+++ b/src/components/ConfigGlobal/src/ConfigGlobal.vue
@@ -13,7 +13,7 @@ const { variables } = useDesign()
const appStore = useAppStore()
const props = defineProps({
- size: propTypes.oneOf(['default', 'small', 'large']).def('default')
+ size: propTypes.oneOf(['default', 'small', 'large']).def('default')
})
provide('configGlobal', props)
diff --git a/src/components/SizeDropdown/src/SizeDropdown.vue b/src/components/SizeDropdown/src/SizeDropdown.vue
index f7b1e88..773ad62 100644
--- a/src/components/SizeDropdown/src/SizeDropdown.vue
+++ b/src/components/SizeDropdown/src/SizeDropdown.vue
@@ -20,7 +20,7 @@ const appStore = useAppStore()
const sizeMap = computed(() => appStore.sizeMap)
-const setCurrentSize = (size: ElememtPlusSzie) => {
+const setCurrentSize = (size: ElememtPlusSize) => {
appStore.setCurrentSize(size)
}
diff --git a/src/config/app.ts b/src/config/app.ts
index 3b2c6f2..e4d2aad 100644
--- a/src/config/app.ts
+++ b/src/config/app.ts
@@ -39,8 +39,8 @@ export interface AppState {
title: string
userInfo: string
isDark: boolean
- currentSize: ElememtPlusSzie
- sizeMap: ElememtPlusSzie[]
+ currentSize: ElememtPlusSize
+ sizeMap: ElememtPlusSize[]
mobile: boolean
footer: boolean
theme: ThemeTypes
diff --git a/src/store/modules/app.ts b/src/store/modules/app.ts
index c6fac4e..8f00ed1 100644
--- a/src/store/modules/app.ts
+++ b/src/store/modules/app.ts
@@ -69,10 +69,10 @@ export const useAppStore = defineStore({
getIsDark(): boolean {
return this.isDark
},
- getCurrentSize(): ElememtPlusSzie {
+ getCurrentSize(): ElememtPlusSize {
return this.currentSize
},
- getSizeMap(): ElememtPlusSzie[] {
+ getSizeMap(): ElememtPlusSize[] {
return this.sizeMap
},
getMobile(): boolean {
@@ -150,7 +150,7 @@ export const useAppStore = defineStore({
}
wsCache.set('isDark', this.isDark)
},
- setCurrentSize(currentSize: ElememtPlusSzie) {
+ setCurrentSize(currentSize: ElememtPlusSize) {
this.currentSize = currentSize
wsCache.set('currentSize', this.currentSize)
},
diff --git a/types/componentType/configGlobal.d.ts b/types/componentType/configGlobal.d.ts
index ba13256..6a0bb1a 100644
--- a/types/componentType/configGlobal.d.ts
+++ b/types/componentType/configGlobal.d.ts
@@ -1,3 +1,3 @@
declare interface ConfigGlobalTypes {
- size?: ElememtPlusSzie
+ size?: ElememtPlusSize
}
diff --git a/types/global.d.ts b/types/global.d.ts
index dfcb44a..28bb924 100644
--- a/types/global.d.ts
+++ b/types/global.d.ts
@@ -6,7 +6,7 @@ declare type Nullable = T | null
declare type ElRef = Nullable
-declare type ElememtPlusSzie = 'default' | 'small' | 'large'
+declare type ElememtPlusSize = 'default' | 'small' | 'large'
declare type ElementPlusInfoType = 'success' | 'info' | 'warning' | 'danger'
|