mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 03:48:13 +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 => {
|
// ['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());
|
||||||
}
|
}
|
||||||
|
|
||||||
// 获取主题数据和样式选择器数据
|
// 获取主题数据和样式选择器数据
|
||||||
|
Loading…
Reference in New Issue
Block a user