mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-12 17:08:14 +00:00
fix: 修复在标准版场景下, className 设置失效
This commit is contained in:
parent
7d87f8284f
commit
b94b06965e
@ -12,20 +12,23 @@ export function stylePropsReducer(props: any, node: any) {
|
||||
cssClass = `_css_pseudo_${node.id.replace(/\$/g, '_')}`;
|
||||
styleProp = props.__style__;
|
||||
appendStyleNode(props, styleProp, cssClass, cssId);
|
||||
props.className = cssClass;
|
||||
}
|
||||
if (props.pageStyle) {
|
||||
cssId = '_style_pseudo_engine-document';
|
||||
cssClass = 'engine-document';
|
||||
styleProp = props.pageStyle;
|
||||
appendStyleNode(props, styleProp, cssClass, cssId);
|
||||
props.className = cssClass;
|
||||
}
|
||||
if (props.containerStyle) {
|
||||
cssId = `_style_pseudo_${node.id}`;
|
||||
cssClass = `_css_pseudo_${node.id.replace(/\$/g, '_')}`;
|
||||
styleProp = props.containerStyle;
|
||||
appendStyleNode(props, styleProp, cssClass, cssId);
|
||||
props.className = cssClass;
|
||||
}
|
||||
props.className = cssClass;
|
||||
|
||||
return props;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user