mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-12 17:08:14 +00:00
fix: 优化获取 simulator 的逻辑, 解决偶现 style 没被注入的问题
This commit is contained in:
parent
27451bfe91
commit
f84ec7e72e
@ -1,4 +1,4 @@
|
||||
import { editor, designer } from '@ali/lowcode-engine';
|
||||
import { project } from '@ali/lowcode-engine';
|
||||
import { toCss } from '@ali/vu-css-style';
|
||||
|
||||
export function stylePropsReducer(props: any, node: any) {
|
||||
@ -28,7 +28,8 @@ export function stylePropsReducer(props: any, node: any) {
|
||||
}
|
||||
|
||||
function appendStyleNode(props: any, styleProp: any, cssClass: string, cssId: string) {
|
||||
const doc = designer.currentDocument?.simulator?.contentDocument;
|
||||
const doc = project.simulator?.contentDocument;
|
||||
|
||||
if (!doc) {
|
||||
return;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user