Skip to content

Commit

Permalink
fix: 修复外观样式清空不生效问题
Browse files Browse the repository at this point in the history
  • Loading branch information
qkiroc committed Nov 3, 2023
1 parent ca8710e commit d8b927b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/amis-core/src/utils/style-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

/**
Expand Down

0 comments on commit d8b927b

Please sign in to comment.