Skip to content

Commit

Permalink
fix: 修复自定义样式root::after不生效问题
Browse files Browse the repository at this point in the history
  • Loading branch information
qkiroc authored and CheshireJCat committed Jan 21, 2025
1 parent bf3a494 commit 1473882
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/amis-core/src/utils/style-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ export function insertEditCustomStyle(params: {
};`
);
const nowKey = key.replace('root', '');
content += `\n.${className} ${nowKey} {\n ${res.join('\n ')}\n}`;
content += `\n.${className}${nowKey} {\n ${res.join('\n ')}\n}`;
} else {
const res = map(
styles[key],
Expand Down

0 comments on commit 1473882

Please sign in to comment.