fix: 修复主题配置icon失败问题 (#9189)

Co-authored-by: hongyang03 <hongyang03@baidu.com>
This commit is contained in:
HongYang 2023-12-20 16:09:30 +08:00 committed by GitHub
parent c6b54c03d0
commit 6841ab43d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,7 +164,7 @@ export function formatStyle(
const fn = (key: string, value: string) => {
key = valueMap[key] || key;
styles.push(
`${kebabCase(key)}: ${
`${key.startsWith('--') ? key : kebabCase(key)}: ${
value + (weights?.important ? ' !important' : '')
};`
);