chore: 添加补丁修复存量配置中存在无用主题属性问题

This commit is contained in:
2betop 2023-10-10 21:05:23 +08:00
parent eb6fb496e0
commit 365c87599c

View File

@ -105,11 +105,6 @@ export function JSONPipeIn(obj: any, generateId = false): any {
}); });
} }
if (obj.themeConfig) {
flag = true;
toUpdate['themeConfig'] = undefined;
}
// ['visible', 'visibleOn', 'hidden', 'hiddenOn', 'toggled'].forEach(key => { // ['visible', 'visibleOn', 'hidden', 'hiddenOn', 'toggled'].forEach(key => {
// if (obj.hasOwnProperty(key)) { // if (obj.hasOwnProperty(key)) {
// flag = true; // flag = true;
@ -1116,7 +1111,7 @@ export function needFillPlaceholder(curProps: any) {
export function setThemeConfig(config: any) { export function setThemeConfig(config: any) {
themeConfig = config; themeConfig = config;
themeOptionsData = getGlobalData(themeConfig); themeOptionsData = getGlobalData(themeConfig);
themeUselessPropKeys = Object.keys(themeOptionsData); themeUselessPropKeys = Object.keys(getThemeConfig());
} }
// 获取主题数据和样式选择器数据 // 获取主题数据和样式选择器数据