mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-18 21:38: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, '_')}`;
|
cssClass = `_css_pseudo_${node.id.replace(/\$/g, '_')}`;
|
||||||
styleProp = props.__style__;
|
styleProp = props.__style__;
|
||||||
appendStyleNode(props, styleProp, cssClass, cssId);
|
appendStyleNode(props, styleProp, cssClass, cssId);
|
||||||
|
props.className = cssClass;
|
||||||
}
|
}
|
||||||
if (props.pageStyle) {
|
if (props.pageStyle) {
|
||||||
cssId = '_style_pseudo_engine-document';
|
cssId = '_style_pseudo_engine-document';
|
||||||
cssClass = 'engine-document';
|
cssClass = 'engine-document';
|
||||||
styleProp = props.pageStyle;
|
styleProp = props.pageStyle;
|
||||||
appendStyleNode(props, styleProp, cssClass, cssId);
|
appendStyleNode(props, styleProp, cssClass, cssId);
|
||||||
|
props.className = cssClass;
|
||||||
}
|
}
|
||||||
if (props.containerStyle) {
|
if (props.containerStyle) {
|
||||||
cssId = `_style_pseudo_${node.id}`;
|
cssId = `_style_pseudo_${node.id}`;
|
||||||
cssClass = `_css_pseudo_${node.id.replace(/\$/g, '_')}`;
|
cssClass = `_css_pseudo_${node.id.replace(/\$/g, '_')}`;
|
||||||
styleProp = props.containerStyle;
|
styleProp = props.containerStyle;
|
||||||
appendStyleNode(props, styleProp, cssClass, cssId);
|
appendStyleNode(props, styleProp, cssClass, cssId);
|
||||||
}
|
|
||||||
props.className = cssClass;
|
props.className = cssClass;
|
||||||
|
}
|
||||||
|
|
||||||
return props;
|
return props;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user