mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
fix: 修复外观样式清空不生效问题 (#8610)
Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com>
This commit is contained in:
parent
ca8710ef79
commit
50c31f6a5c
@ -252,12 +252,8 @@ export function insertCustomStyle(
|
||||
}
|
||||
|
||||
let {value} = formatStyle(themeCss, classNames, id, defaultData);
|
||||
if (value) {
|
||||
value = customStyleClassPrefix
|
||||
? `${customStyleClassPrefix} ${value}`
|
||||
: value;
|
||||
insertStyle(value, id.replace('u:', ''), doc);
|
||||
}
|
||||
value = customStyleClassPrefix ? `${customStyleClassPrefix} ${value}` : value;
|
||||
insertStyle(value, id.replace('u:', ''), doc);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user