mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
chore: 添加补丁修复存量配置中存在无用主题属性问题
This commit is contained in:
parent
eb6fb496e0
commit
365c87599c
@ -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 => {
|
||||
// if (obj.hasOwnProperty(key)) {
|
||||
// flag = true;
|
||||
@ -1116,7 +1111,7 @@ export function needFillPlaceholder(curProps: any) {
|
||||
export function setThemeConfig(config: any) {
|
||||
themeConfig = config;
|
||||
themeOptionsData = getGlobalData(themeConfig);
|
||||
themeUselessPropKeys = Object.keys(themeOptionsData);
|
||||
themeUselessPropKeys = Object.keys(getThemeConfig());
|
||||
}
|
||||
|
||||
// 获取主题数据和样式选择器数据
|
||||
|
Loading…
Reference in New Issue
Block a user