修复 修改elementPlus 组件size无效BUG

This commit is contained in:
P) 2021-12-23 05:11:31 +00:00 committed by Gitee
parent 616de6e06b
commit 8ae48b5c7c
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -63,9 +63,8 @@ export const lazyImg = (el: any, arr: any) => {
*
* @returns `window.localStorage` `globalComponentSize`
*/
export function globalComponentSize() {
return Local.get('themeConfig')?.globalComponentSize;
}
export const globalComponentSize: string = Local.get('themeConfig')?.globalComponentSize || store.state.themeConfig.themeConfig?.globalComponentSize;
/**
*
@ -123,9 +122,7 @@ const other = {
lazyImg: (el: any, arr: any) => {
lazyImg(el, arr);
},
globalComponentSize: () => {
globalComponentSize();
},
globalComponentSize,
deepClone: (obj: any) => {
deepClone(obj);
},