mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 01:21:58 +00:00
feat: 支持传入自定义的画布 Loading 实现
This commit is contained in:
parent
3bfdf34683
commit
8850829423
@ -1,10 +1,10 @@
|
||||
import { Component } from 'react';
|
||||
import { observer } from '@ali/lowcode-editor-core';
|
||||
import { observer, engineConfig } from '@ali/lowcode-editor-core';
|
||||
import { Designer } from '../designer';
|
||||
import { BuiltinSimulatorHostView } from '../builtin-simulator';
|
||||
import './project.less';
|
||||
|
||||
class Loading extends Component {
|
||||
class BuiltinLoading extends Component {
|
||||
render() {
|
||||
return (
|
||||
<div id="engine-loading-wrapper">
|
||||
@ -29,6 +29,7 @@ export class ProjectView extends Component<{ designer: Designer }> {
|
||||
const { project } = designer;
|
||||
const { simulatorProps } = project;
|
||||
const Simulator = designer.simulatorComponent || BuiltinSimulatorHostView;
|
||||
const Loading = engineConfig.get('loadingComponent', BuiltinLoading);
|
||||
|
||||
return (
|
||||
<div className="lc-project">
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user