!17 修复 修改elementPlus 组件size无效BUG

Merge pull request !17 from P)/master
This commit is contained in:
lyt-Top 2021-12-23 11:50:33 +00:00 committed by Gitee
commit 98e75351b8

View File

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