chore: TransformStage replace IPublicEnumTransformStage

This commit is contained in:
橙林 2023-04-19 18:38:28 +08:00 committed by 林熠
parent ad44528a65
commit 1881b205ff
9 changed files with 18 additions and 18 deletions

View File

@ -1,7 +1,7 @@
import { material, project } from '@alilc/lowcode-engine';
import { filterPackages } from '@alilc/lowcode-plugin-inject'
import { Message, Dialog } from '@alifd/next';
import { TransformStage } from '@alilc/lowcode-types';
import { IPublicEnumTransformStage } from '@alilc/lowcode-types';
import schema from './schema.json';
export const saveSchema = async (scenarioName: string = 'unknown') => {
@ -59,7 +59,7 @@ const setProjectSchemaToLocalStorage = (scenarioName: string) => {
}
window.localStorage.setItem(
getLSName(scenarioName),
JSON.stringify(project.exportSchema(TransformStage.Save))
JSON.stringify(project.exportSchema(IPublicEnumTransformStage.Save))
);
}

View File

@ -1,7 +1,7 @@
import { material, project } from '@alilc/lowcode-engine';
import { filterPackages } from '@alilc/lowcode-plugin-inject'
import { Message, Dialog } from '@alifd/next';
import { TransformStage } from '@alilc/lowcode-types';
import { IPublicEnumTransformStage } from '@alilc/lowcode-types';
import schema from './schema.json';
export const saveSchema = async (scenarioName: string = 'unknown') => {
@ -59,7 +59,7 @@ const setProjectSchemaToLocalStorage = (scenarioName: string) => {
}
window.localStorage.setItem(
getLSName(scenarioName),
JSON.stringify(project.exportSchema(TransformStage.Save))
JSON.stringify(project.exportSchema(IPublicEnumTransformStage.Save))
);
}

View File

@ -1,7 +1,7 @@
import { material, project } from '@alilc/lowcode-engine';
import { filterPackages } from '@alilc/lowcode-plugin-inject'
import { Message, Dialog } from '@alifd/next';
import { TransformStage } from '@alilc/lowcode-types';
import { IPublicEnumTransformStage } from '@alilc/lowcode-types';
import schema from './schema.json';
export const saveSchema = async (scenarioName: string = 'unknown') => {
@ -59,7 +59,7 @@ const setProjectSchemaToLocalStorage = (scenarioName: string) => {
}
window.localStorage.setItem(
getLSName(scenarioName),
JSON.stringify(project.exportSchema(TransformStage.Save))
JSON.stringify(project.exportSchema(IPublicEnumTransformStage.Save))
);
}

View File

@ -1,7 +1,7 @@
import { material, project } from '@alilc/lowcode-engine';
import { filterPackages } from '@alilc/lowcode-plugin-inject'
import { Message, Dialog } from '@alifd/next';
import { TransformStage } from '@alilc/lowcode-types';
import { IPublicEnumTransformStage } from '@alilc/lowcode-types';
import schema from './schema.json';
export const saveSchema = async (scenarioName: string = 'unknown') => {
@ -59,7 +59,7 @@ const setProjectSchemaToLocalStorage = (scenarioName: string) => {
}
window.localStorage.setItem(
getLSName(scenarioName),
JSON.stringify(project.exportSchema(TransformStage.Save))
JSON.stringify(project.exportSchema(IPublicEnumTransformStage.Save))
);
}

View File

@ -1,7 +1,7 @@
import { material, project } from '@alilc/lowcode-engine';
import { filterPackages } from '@alilc/lowcode-plugin-inject'
import { Message, Dialog } from '@alifd/next';
import { IPublicTypeProjectSchema, IPublicEnumTransformStage } from '@alilc/lowcode-types';
import { IPublicTypeProjectSchema, IPublicEnumIPublicEnumTransformStage } from '@alilc/lowcode-types';
import DefaultPageSchema from './defaultPageSchema.json';
import DefaultI18nSchema from './defaultI18nSchema.json';
@ -68,7 +68,7 @@ const setProjectSchemaToLocalStorage = (scenarioName: string) => {
}
window.localStorage.setItem(
getLSName(scenarioName),
JSON.stringify(project.exportSchema(IPublicEnumTransformStage.Save))
JSON.stringify(project.exportSchema(IPublicEnumIPublicEnumTransformStage.Save))
);
}

View File

@ -1,7 +1,7 @@
import { material, project } from '@alilc/lowcode-engine';
import { filterPackages } from '@alilc/lowcode-plugin-inject'
import { Message, Dialog } from '@alifd/next';
import { TransformStage } from '@alilc/lowcode-types';
import { IPublicEnumTransformStage } from '@alilc/lowcode-types';
import schema from './schema.json';
export const saveSchema = async (scenarioName: string = 'unknown') => {
@ -59,7 +59,7 @@ const setProjectSchemaToLocalStorage = (scenarioName: string) => {
}
window.localStorage.setItem(
getLSName(scenarioName),
JSON.stringify(project.exportSchema(TransformStage.Save))
JSON.stringify(project.exportSchema(IPublicEnumTransformStage.Save))
);
}

View File

@ -1,7 +1,7 @@
import { material, project } from '@alilc/lowcode-engine';
import { filterPackages } from '@alilc/lowcode-plugin-inject'
import { Message, Dialog } from '@alifd/next';
import { TransformStage } from '@alilc/lowcode-types';
import { IPublicEnumTransformStage } from '@alilc/lowcode-types';
import schema from './schema.json';
export const saveSchema = async (scenarioName: string = 'unknown') => {
@ -59,7 +59,7 @@ const setProjectSchemaToLocalStorage = (scenarioName: string) => {
}
window.localStorage.setItem(
getLSName(scenarioName),
JSON.stringify(project.exportSchema(TransformStage.Save))
JSON.stringify(project.exportSchema(IPublicEnumTransformStage.Save))
);
}

View File

@ -1,7 +1,7 @@
import { material, project } from '@alilc/lowcode-engine';
import { filterPackages } from '@alilc/lowcode-plugin-inject'
import { Message, Dialog } from '@alifd/next';
import { TransformStage } from '@alilc/lowcode-types';
import { IPublicEnumTransformStage } from '@alilc/lowcode-types';
import schema from './schema.json';
export const saveSchema = async (scenarioName: string = 'unknown') => {
@ -59,7 +59,7 @@ const setProjectSchemaToLocalStorage = (scenarioName: string) => {
}
window.localStorage.setItem(
getLSName(scenarioName),
JSON.stringify(project.exportSchema(TransformStage.Save))
JSON.stringify(project.exportSchema(IPublicEnumTransformStage.Save))
);
}

View File

@ -1,7 +1,7 @@
import { material, project } from '@alilc/lowcode-engine';
import { filterPackages } from '@alilc/lowcode-plugin-inject'
import { Message, Dialog } from '@alifd/next';
import { TransformStage } from '@alilc/lowcode-types';
import { IPublicEnumTransformStage } from '@alilc/lowcode-types';
import schema from './schema.json';
export const saveSchema = async (scenarioName: string = 'unknown') => {
@ -59,7 +59,7 @@ const setProjectSchemaToLocalStorage = (scenarioName: string) => {
}
window.localStorage.setItem(
getLSName(scenarioName),
JSON.stringify(project.exportSchema(TransformStage.Save))
JSON.stringify(project.exportSchema(IPublicEnumTransformStage.Save))
);
}