Skip to content

Commit

Permalink
feat: 🎸 设计态支持数据源引擎配置
Browse files Browse the repository at this point in the history
  • Loading branch information
xingmolu authored and LeoYuan committed May 13, 2022
1 parent b96f166 commit 04631f8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/editor-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 5 additions & 0 deletions packages/editor-core/src/config.ts
Original file line number Diff line number Diff line change
@@ -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' });
Expand Down Expand Up @@ -205,6 +208,8 @@ export interface EngineOptions {
// 是否开启在 render 阶段开启 filter reducer,默认值:false
enableFilterReducerInRenderStage?: boolean;
};

requestHandlersMap: RequestHandlersMap;
}

const getStrictModeValue = (engineOptions: EngineOptions, defaultValue: boolean): boolean => {
Expand Down

0 comments on commit 04631f8

Please sign in to comment.