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 => {