From 04631f813782dbf6d175f51c40ccc75ca4c099d2 Mon Sep 17 00:00:00 2001 From: xingmolu <591745264@qq.com> Date: Fri, 13 May 2022 14:34:14 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=F0=9F=8E=B8=20=E8=AE=BE=E8=AE=A1?= =?UTF-8?q?=E6=80=81=E6=94=AF=E6=8C=81=E6=95=B0=E6=8D=AE=E6=BA=90=E5=BC=95?= =?UTF-8?q?=E6=93=8E=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/editor-core/package.json | 3 ++- packages/editor-core/src/config.ts | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/packages/editor-core/package.json b/packages/editor-core/package.json index aa4485963..69cbe3a78 100644 --- a/packages/editor-core/package.json +++ b/packages/editor-core/package.json @@ -38,7 +38,8 @@ "@types/store": "^2.0.2", "build-plugin-component": "^0.2.11", "build-plugin-fusion": "^0.1.0", - "build-plugin-moment-locales": "^0.1.0" + "build-plugin-moment-locales": "^0.1.0", + "@alilc/lowcode-datasource-types": "^1.0.1" }, "publishConfig": { "access": "public", diff --git a/packages/editor-core/src/config.ts b/packages/editor-core/src/config.ts index d5da2308d..f18e21575 100644 --- a/packages/editor-core/src/config.ts +++ b/packages/editor-core/src/config.ts @@ -1,6 +1,9 @@ import { ComponentType } from 'react'; import { get as lodashGet } from 'lodash'; import { isPlainObject } from '@alilc/lowcode-utils'; + +import { RequestHandlersMap } from '@alilc/lowcode-datasource-types'; + import { getLogger } from './utils/logger'; const logger = getLogger({ level: 'log', bizName: 'config' }); @@ -205,6 +208,8 @@ export interface EngineOptions { // 是否开启在 render 阶段开启 filter reducer,默认值:false enableFilterReducerInRenderStage?: boolean; }; + + requestHandlersMap: RequestHandlersMap; } const getStrictModeValue = (engineOptions: EngineOptions, defaultValue: boolean): boolean => {