mirror of
https://github.com/smartxworks/sunmao-ui.git
synced 2024-11-21 03:15:49 +08:00
fix: css style string is parsed to char array accidently
This commit is contained in:
parent
b4c6082b6a
commit
6f1f5eb3ec
@ -152,7 +152,7 @@ export const StyleTraitForm: React.FC<Props> = props => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const changeCssProperties = (newCss: PartialCSSProperties) => {
|
const changeCssProperties = (newCss: PartialCSSProperties) => {
|
||||||
const newCssProperties = Object.assign({}, style, newCss);
|
const newCssProperties = Object.assign({}, cssProperties, newCss);
|
||||||
const newStyles = produce(styles, draft => {
|
const newStyles = produce(styles, draft => {
|
||||||
draft[i].cssProperties = newCssProperties;
|
draft[i].cssProperties = newCssProperties;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user