Skip to content

Commit

Permalink
fix: 修复主题配置icon失败问题
Browse files Browse the repository at this point in the history
  • Loading branch information
hongyang03 committed Dec 19, 2023
1 parent efc9392 commit 30f8676
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
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 @@ -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' : '')
};`
);
Expand Down
4 changes: 2 additions & 2 deletions packages/amis/__tests__/renderers/calendar.test.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React = require('react');
import {render} from '@testing-library/react';
import {render, fireEvent, waitFor} from '@testing-library/react';
import '../../src';
import {render as amisRender} from '../../src';
import {makeEnv} from '../helper';
import {makeEnv, wait} from '../helper';

test('Renderer:calendar', () => {
const {container} = render(
Expand Down

0 comments on commit 30f8676

Please sign in to comment.