mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-01 05:30:40 +00:00
Merge branch 'fix/ducheng-1105-bugs' into 'release/1.0.0'
fix: 修改style-setter报错,loadAsyncLib 判断 See merge request !1036663
This commit is contained in:
commit
2cd7cbca8a
@ -272,8 +272,12 @@ export class BuiltinSimulatorHost implements ISimulatorHost<BuiltinSimulatorProp
|
|||||||
// wait 运行时上下文
|
// wait 运行时上下文
|
||||||
await this.injectionConsumer.waitFirstConsume();
|
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
|
// step 5 ready & render
|
||||||
renderer.run();
|
renderer.run();
|
||||||
|
|||||||
@ -50,6 +50,7 @@
|
|||||||
"qs": "^6.9.1",
|
"qs": "^6.9.1",
|
||||||
"react": "^16",
|
"react": "^16",
|
||||||
"react-dom": "^16.7.0",
|
"react-dom": "^16.7.0",
|
||||||
|
"@ali/lc-style-setter":"0.0.2",
|
||||||
"react-monaco-editor": "0.40.0"
|
"react-monaco-editor": "0.40.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
import './style.less';
|
import './style.less';
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import PropTypes from 'prop-types';
|
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';
|
import { globalLocale } from '@ali/lowcode-editor-core';
|
||||||
|
|
||||||
export default class StyleSetter extends Component {
|
export default class StyleSetter extends Component {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user