Skip to content

Commit

Permalink
fix: fixed spelling 'ElememtPlusSzie'
Browse files Browse the repository at this point in the history
  • Loading branch information
iamdin committed Apr 16, 2022
1 parent 042f4e0 commit 5dbbc60
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/components/ConfigGlobal/src/ConfigGlobal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const { variables } = useDesign()
const appStore = useAppStore()
const props = defineProps({
size: propTypes.oneOf<ElememtPlusSzie[]>(['default', 'small', 'large']).def('default')
size: propTypes.oneOf<ElememtPlusSize[]>(['default', 'small', 'large']).def('default')
})
provide('configGlobal', props)
Expand Down
2 changes: 1 addition & 1 deletion src/components/SizeDropdown/src/SizeDropdown.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const appStore = useAppStore()
const sizeMap = computed(() => appStore.sizeMap)
const setCurrentSize = (size: ElememtPlusSzie) => {
const setCurrentSize = (size: ElememtPlusSize) => {
appStore.setCurrentSize(size)
}
</script>
Expand Down
4 changes: 2 additions & 2 deletions src/config/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions src/store/modules/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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)
},
Expand Down
2 changes: 1 addition & 1 deletion types/componentType/configGlobal.d.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
declare interface ConfigGlobalTypes {
size?: ElememtPlusSzie
size?: ElememtPlusSize
}
2 changes: 1 addition & 1 deletion types/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ declare type Nullable<T> = T | null

declare type ElRef<T extends HTMLElement = HTMLDivElement> = Nullable<T>

declare type ElememtPlusSzie = 'default' | 'small' | 'large'
declare type ElememtPlusSize = 'default' | 'small' | 'large'

declare type ElementPlusInfoType = 'success' | 'info' | 'warning' | 'danger'

Expand Down

0 comments on commit 5dbbc60

Please sign in to comment.