mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 01:21:58 +00:00
fix: 修改style-setter报错,loadAsyncLib 判断
This commit is contained in:
parent
a24787870a
commit
7fe793a1c0
@ -272,8 +272,12 @@ export class BuiltinSimulatorHost implements ISimulatorHost<BuiltinSimulatorProp
|
||||
// wait 运行时上下文
|
||||
await this.injectionConsumer.waitFirstConsume();
|
||||
|
||||
// 加载异步Library
|
||||
await renderer.loadAsyncLibrary(this.asyncLibraryMap);
|
||||
|
||||
if (Object.keys(this.asyncLibraryMap).length > 0) {
|
||||
// 加载异步Library
|
||||
await renderer.loadAsyncLibrary(this.asyncLibraryMap);
|
||||
}
|
||||
|
||||
|
||||
// step 5 ready & render
|
||||
renderer.run();
|
||||
|
||||
@ -50,6 +50,7 @@
|
||||
"qs": "^6.9.1",
|
||||
"react": "^16",
|
||||
"react-dom": "^16.7.0",
|
||||
"@ali/lc-style-setter":"0.0.2",
|
||||
"react-monaco-editor": "0.40.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import './style.less';
|
||||
import React, { Component } from 'react';
|
||||
import PropTypes from 'prop-types';
|
||||
import LowStyleSetter from './lc-style-setter';
|
||||
import LowStyleSetter from '@ali/lc-style-setter';
|
||||
import { globalLocale } from '@ali/lowcode-editor-core';
|
||||
|
||||
export default class StyleSetter extends Component {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user