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