chore: schema的style属性错误赋值问题 (#6226)

This commit is contained in:
RUNZE LU 2023-02-27 14:37:17 +08:00 committed by GitHub
parent 3164f77762
commit 2647fff196
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -404,7 +404,8 @@ export class SchemaRenderer extends React.Component<SchemaRendererProps, any> {
// style 支持公式
if (schema.style) {
schema.style = buildStyle(schema.style, detectData);
// schema.style是readonly属性
schema = {...schema, style: buildStyle(schema.style, detectData)};
}
const isClassComponent = Component.prototype?.isReactComponent;