mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 01:21:58 +00:00
chore: fix conflicts
This commit is contained in:
commit
2a3ec817ca
@ -11,8 +11,7 @@
|
||||
"files": [
|
||||
"dist",
|
||||
"es",
|
||||
"lib",
|
||||
"src"
|
||||
"lib"
|
||||
],
|
||||
"keywords": [
|
||||
"low-code",
|
||||
|
||||
@ -3,16 +3,19 @@
|
||||
import { Component, createElement, forwardRef } from 'rax';
|
||||
import PropTypes from 'prop-types';
|
||||
import { AppHelper } from '@ali/lowcode-utils';
|
||||
import { utils } from '@ali/lowcode-renderer-core';
|
||||
import CompEngine from '../engine/compEngine';
|
||||
import BlockEngine from '../engine/blockEngine';
|
||||
import AppContext from '../context/appContext';
|
||||
import { utils, contextFactory } from '@ali/lowcode-renderer-core';
|
||||
import componentRendererFactory from '../renderer/component';
|
||||
import blockRendererFactory from '../renderer/block';
|
||||
|
||||
const { forEach, isFileSchema } = utils;
|
||||
|
||||
export default function compFactory(schema, components = {}, componentsMap = {}, config = {}) {
|
||||
// 自定义组件需要有自己独立的appHelper
|
||||
const appHelper = new AppHelper(config);
|
||||
const CompRenderer = componentRendererFactory();
|
||||
const BlockRenderer = blockRendererFactory();
|
||||
const AppContext = contextFactory();
|
||||
|
||||
class LNCompView extends Component {
|
||||
static dislayName = 'lce-comp-factory';
|
||||
|
||||
@ -60,7 +63,7 @@ export default function compFactory(schema, components = {}, componentsMap = {},
|
||||
<CompEngine
|
||||
{...props}
|
||||
__appHelper={appHelper}
|
||||
__components={{ ...components, Component: CompEngine, Block: BlockEngine }}
|
||||
__components={{ ...components, Component: CompRenderer, Block: BlockRenderer }}
|
||||
__componentsMap={componentsMap}
|
||||
/>
|
||||
);
|
||||
|
||||
@ -57,5 +57,5 @@
|
||||
"publishConfig": {
|
||||
"registry": "https://registry.npm.alibaba-inc.com"
|
||||
},
|
||||
"homepage": "https://unpkg.alibaba-inc.com/@ali/lowcode-rax-simulator-renderer@1.0.32/build/index.html"
|
||||
"homepage": "https://unpkg.alibaba-inc.com/@ali/lowcode-rax-simulator-renderer@1.0.33/build/index.html"
|
||||
}
|
||||
|
||||
@ -1,6 +1,7 @@
|
||||
import adapter from './adapter';
|
||||
import contextFactory from './context';
|
||||
|
||||
export { adapter };
|
||||
export { adapter, contextFactory };
|
||||
|
||||
export * from './renderer';
|
||||
export * as types from './types';
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user