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