mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-01-13 17:48:13 +00:00
fix: miniAppBuildType config(temp)
This commit is contained in:
parent
97242c3c48
commit
584b4c25ee
@ -226,6 +226,7 @@ class SchemaParser implements ISchemaParser {
|
||||
project: {
|
||||
css: schema.css,
|
||||
constants: schema.constants,
|
||||
config: schema.config || {},
|
||||
i18n: schema.i18n,
|
||||
containersDeps,
|
||||
utilsDeps,
|
||||
|
||||
@ -17,7 +17,7 @@ const pluginFactory: BuilderComponentPluginFactory<unknown> = () => {
|
||||
|
||||
const ir = next.ir as IParseResult;
|
||||
// TODO: miniAppBuildType 这个东西是不是不应该在 schema 里面,而是应该由 plugin 的构造参数传入
|
||||
const miniAppBuildType = ir.project?.config.miniAppBuildType;
|
||||
const miniAppBuildType = ir.project?.config?.miniAppBuildType;
|
||||
|
||||
const buildCfg = {
|
||||
inlineStyle: false,
|
||||
|
||||
@ -42,6 +42,7 @@ export interface IProjectInfo {
|
||||
name?: string;
|
||||
title?: string;
|
||||
};
|
||||
config?: Record<string, any>;
|
||||
}
|
||||
|
||||
export interface IPageMeta {
|
||||
|
||||
@ -98,6 +98,7 @@ export interface ProjectSchema {
|
||||
constants?: JSONObject;
|
||||
css?: string;
|
||||
dataSource?: DataSource;
|
||||
config?: Record<string, any>;
|
||||
}
|
||||
|
||||
export function isNodeSchema(data: any): data is NodeSchema {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user