chore: use engine 1.0.18-beta.0, fix some minor issues
This commit is contained in:
parent
56c19d2a0c
commit
8e36254672
|
@ -2,4 +2,4 @@
|
|||
|
||||
# These owners will be the default owners for everything in
|
||||
# the repo. Unless a later match takes precedence
|
||||
* @leoyuan @JackLian @alvarto @mark-ck
|
||||
* @liujuping @JackLian
|
|
@ -11,7 +11,7 @@
|
|||
<link href="https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/variables.css" rel="stylesheet" />
|
||||
<link href="https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/dist/next.var.min.css" rel="stylesheet" />
|
||||
<!-- 低代码引擎的页面框架样式 -->
|
||||
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.17/dist/css/engine-core.css" />
|
||||
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.18-beta.0/dist/css/engine-core.css" />
|
||||
<!-- 低代码引擎官方扩展的样式 -->
|
||||
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alilc/lowcode-engine-ext@1.0.5/dist/css/engine-ext.css" />
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
|||
<!-- Fusion Next 的主包,低代码编辑器的依赖 -->
|
||||
<script src="https://g.alicdn.com/code/lib/alifd__next/1.23.24/next.min.js"></script>
|
||||
<!-- 低代码引擎的主包 -->
|
||||
<script crossorigin="anonymous" src="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.17/dist/js/engine-core.js"></script>
|
||||
<script crossorigin="anonymous" src="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.18-beta.0/dist/js/engine-core.js"></script>
|
||||
<!-- 低代码引擎官方扩展的主包 -->
|
||||
<script crossorigin="anonymous" src="https://alifd.alicdn.com/npm/@alilc/lowcode-engine-ext@1.0.5/dist/js/engine-ext.js"></script>
|
||||
<script>
|
||||
|
|
|
@ -11,8 +11,7 @@ const PreviewSamplePlugin = (ctx: ILowCodePluginContext) => {
|
|||
const { skeleton, config } = ctx;
|
||||
const doPreview = () => {
|
||||
const scenarioName = config.get('scenarioName');
|
||||
console.log('go preview with scenarioName:',scenarioName );
|
||||
saveSchema(scenarioName);;
|
||||
saveSchema(scenarioName);
|
||||
setTimeout(() => {
|
||||
const search = location.search ? `${location.search}&scenarioName=${scenarioName}` : `?scenarioName=${scenarioName}`;
|
||||
window.open(`./preview.html${search}`);
|
||||
|
|
|
@ -90,6 +90,5 @@ export const getPageSchema = async (scenarioName: string = 'unknown') => {
|
|||
return pageSchema;
|
||||
}
|
||||
|
||||
console.log(`failed to get schema for scenarioName ${scenarioName} from localstorage, use default schema`, schema);
|
||||
return schema;
|
||||
};
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<link href="https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/variables.css" rel="stylesheet" />
|
||||
<link href="https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/dist/next.var.min.css" rel="stylesheet" />
|
||||
<!-- 低代码引擎的页面框架样式 -->
|
||||
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.17/dist/css/engine-core.css" />
|
||||
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.18-beta.0/dist/css/engine-core.css" />
|
||||
<!-- 低代码引擎官方扩展的样式 -->
|
||||
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alilc/lowcode-engine-ext@1.0.5/dist/css/engine-ext.css" />
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
|||
<!-- Fusion Next 的主包,低代码编辑器的依赖 -->
|
||||
<script src="https://g.alicdn.com/code/lib/alifd__next/1.23.24/next.min.js"></script>
|
||||
<!-- 低代码引擎的主包 -->
|
||||
<script crossorigin="anonymous" src="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.17/dist/js/engine-core.js"></script>
|
||||
<script crossorigin="anonymous" src="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.18-beta.0/dist/js/engine-core.js"></script>
|
||||
<!-- 低代码引擎官方扩展的主包 -->
|
||||
<script crossorigin="anonymous" src="https://alifd.alicdn.com/npm/@alilc/lowcode-engine-ext@1.0.5/dist/js/engine-ext.js"></script>
|
||||
<script>
|
||||
|
|
|
@ -23,7 +23,7 @@ import './global.scss';
|
|||
async function registerPlugins() {
|
||||
await plugins.register(EditorInitPlugin, {
|
||||
scenarioName: 'basic-antd',
|
||||
displayName: '基础antd组件',
|
||||
displayName: '基础 AntD 组件',
|
||||
info: {
|
||||
urls: [
|
||||
{
|
||||
|
|
|
@ -11,8 +11,7 @@ const PreviewSamplePlugin = (ctx: ILowCodePluginContext) => {
|
|||
const { skeleton, config } = ctx;
|
||||
const doPreview = () => {
|
||||
const scenarioName = config.get('scenarioName');
|
||||
console.log('go preview with scenarioName:',scenarioName );
|
||||
saveSchema(scenarioName);;
|
||||
saveSchema(scenarioName);
|
||||
setTimeout(() => {
|
||||
const search = location.search ? `${location.search}&scenarioName=${scenarioName}` : `?scenarioName=${scenarioName}`;
|
||||
window.open(`./preview.html${search}`);
|
||||
|
|
|
@ -90,6 +90,5 @@ export const getPageSchema = async (scenarioName: string = 'unknown') => {
|
|||
return pageSchema;
|
||||
}
|
||||
|
||||
console.log(`failed to get schema for scenarioName ${scenarioName} from localstorage, use default schema`, schema);
|
||||
return schema;
|
||||
};
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<link href="https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/variables.css" rel="stylesheet" />
|
||||
<link href="https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/dist/next.var.min.css" rel="stylesheet" />
|
||||
<!-- 低代码引擎的页面框架样式 -->
|
||||
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.17/dist/css/engine-core.css" />
|
||||
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.18-beta.0/dist/css/engine-core.css" />
|
||||
<!-- 低代码引擎官方扩展的样式 -->
|
||||
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alilc/lowcode-engine-ext@1.0.5/dist/css/engine-ext.css" />
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
|||
<!-- Fusion Next 的主包,低代码编辑器的依赖 -->
|
||||
<script src="https://g.alicdn.com/code/lib/alifd__next/1.23.24/next.min.js"></script>
|
||||
<!-- 低代码引擎的主包 -->
|
||||
<script crossorigin="anonymous" src="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.17/dist/js/engine-core.js"></script>
|
||||
<script crossorigin="anonymous" src="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.18-beta.0/dist/js/engine-core.js"></script>
|
||||
<!-- 低代码引擎官方扩展的主包 -->
|
||||
<script crossorigin="anonymous" src="https://alifd.alicdn.com/npm/@alilc/lowcode-engine-ext@1.0.5/dist/js/engine-ext.js"></script>
|
||||
<script>
|
||||
|
|
|
@ -23,7 +23,7 @@ import './global.scss';
|
|||
async function registerPlugins() {
|
||||
await plugins.register(EditorInitPlugin, {
|
||||
scenarioName: 'basic-fusion-with-single-component',
|
||||
displayName: '基础Fusion组件+单自定义组件',
|
||||
displayName: '基础 Fusion 组件 + 单自定义组件',
|
||||
info: {
|
||||
urls: [
|
||||
{
|
||||
|
|
|
@ -11,8 +11,7 @@ const PreviewSamplePlugin = (ctx: ILowCodePluginContext) => {
|
|||
const { skeleton, config } = ctx;
|
||||
const doPreview = () => {
|
||||
const scenarioName = config.get('scenarioName');
|
||||
console.log('go preview with scenarioName:',scenarioName );
|
||||
saveSchema(scenarioName);;
|
||||
saveSchema(scenarioName);
|
||||
setTimeout(() => {
|
||||
const search = location.search ? `${location.search}&scenarioName=${scenarioName}` : `?scenarioName=${scenarioName}`;
|
||||
window.open(`./preview.html${search}`);
|
||||
|
|
|
@ -90,6 +90,5 @@ export const getPageSchema = async (scenarioName: string = 'unknown') => {
|
|||
return pageSchema;
|
||||
}
|
||||
|
||||
console.log(`failed to get schema for scenarioName ${scenarioName} from localstorage, use default schema`, schema);
|
||||
return schema;
|
||||
};
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<link href="https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/variables.css" rel="stylesheet" />
|
||||
<link href="https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/dist/next.var.min.css" rel="stylesheet" />
|
||||
<!-- 低代码引擎的页面框架样式 -->
|
||||
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.17/dist/css/engine-core.css" />
|
||||
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.18-beta.0/dist/css/engine-core.css" />
|
||||
<!-- 低代码引擎官方扩展的样式 -->
|
||||
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alilc/lowcode-engine-ext@1.0.5/dist/css/engine-ext.css" />
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
|||
<!-- Fusion Next 的主包,低代码编辑器的依赖 -->
|
||||
<script src="https://g.alicdn.com/code/lib/alifd__next/1.23.24/next.min.js"></script>
|
||||
<!-- 低代码引擎的主包 -->
|
||||
<script crossorigin="anonymous" src="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.17/dist/js/engine-core.js"></script>
|
||||
<script crossorigin="anonymous" src="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.18-beta.0/dist/js/engine-core.js"></script>
|
||||
<!-- 低代码引擎官方扩展的主包 -->
|
||||
<script crossorigin="anonymous" src="https://alifd.alicdn.com/npm/@alilc/lowcode-engine-ext@1.0.5/dist/js/engine-ext.js"></script>
|
||||
<script>
|
||||
|
|
|
@ -23,7 +23,7 @@ import './global.scss';
|
|||
async function registerPlugins() {
|
||||
await plugins.register(EditorInitPlugin, {
|
||||
scenarioName: 'basic-fusion',
|
||||
displayName: '基础Fusion组件',
|
||||
displayName: '基础 Fusion 组件',
|
||||
info: {
|
||||
urls: [
|
||||
{
|
||||
|
|
|
@ -11,8 +11,7 @@ const PreviewSamplePlugin = (ctx: ILowCodePluginContext) => {
|
|||
const { skeleton, config } = ctx;
|
||||
const doPreview = () => {
|
||||
const scenarioName = config.get('scenarioName');
|
||||
console.log('go preview with scenarioName:',scenarioName );
|
||||
saveSchema(scenarioName);;
|
||||
saveSchema(scenarioName);
|
||||
setTimeout(() => {
|
||||
const search = location.search ? `${location.search}&scenarioName=${scenarioName}` : `?scenarioName=${scenarioName}`;
|
||||
window.open(`./preview.html${search}`);
|
||||
|
|
|
@ -90,6 +90,5 @@ export const getPageSchema = async (scenarioName: string = 'unknown') => {
|
|||
return pageSchema;
|
||||
}
|
||||
|
||||
console.log(`failed to get schema for scenarioName ${scenarioName} from localstorage, use default schema`, schema);
|
||||
return schema;
|
||||
};
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<link href="https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/variables.css" rel="stylesheet" />
|
||||
<link href="https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/dist/next.var.min.css" rel="stylesheet" />
|
||||
<!-- 低代码引擎的页面框架样式 -->
|
||||
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.17/dist/css/engine-core.css" />
|
||||
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.18-beta.0/dist/css/engine-core.css" />
|
||||
<!-- 低代码引擎官方扩展的样式 -->
|
||||
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alilc/lowcode-engine-ext@1.0.5/dist/css/engine-ext.css" />
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
|||
<!-- Fusion Next 的主包,低代码编辑器的依赖 -->
|
||||
<script src="https://g.alicdn.com/code/lib/alifd__next/1.23.24/next.min.js"></script>
|
||||
<!-- 低代码引擎的主包 -->
|
||||
<script crossorigin="anonymous" src="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.17/dist/js/engine-core.js"></script>
|
||||
<script crossorigin="anonymous" src="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.18-beta.0/dist/js/engine-core.js"></script>
|
||||
<!-- 低代码引擎官方扩展的主包 -->
|
||||
<script crossorigin="anonymous" src="https://alifd.alicdn.com/npm/@alilc/lowcode-engine-ext@1.0.5/dist/js/engine-ext.js"></script>
|
||||
<script>
|
||||
|
|
|
@ -11,8 +11,7 @@ const PreviewSamplePlugin = (ctx: ILowCodePluginContext) => {
|
|||
const { skeleton, config } = ctx;
|
||||
const doPreview = () => {
|
||||
const scenarioName = config.get('scenarioName');
|
||||
console.log('go preview with scenarioName:',scenarioName );
|
||||
saveSchema(scenarioName);;
|
||||
saveSchema(scenarioName);
|
||||
setTimeout(() => {
|
||||
const search = location.search ? `${location.search}&scenarioName=${scenarioName}` : `?scenarioName=${scenarioName}`;
|
||||
window.open(`./preview.html${search}`);
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<link href="https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/variables.css" rel="stylesheet" />
|
||||
<link href="https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/dist/next.var.min.css" rel="stylesheet" />
|
||||
<!-- 低代码引擎的页面框架样式 -->
|
||||
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.17/dist/css/engine-core.css" />
|
||||
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.18-beta.0/dist/css/engine-core.css" />
|
||||
<!-- 低代码引擎官方扩展的样式 -->
|
||||
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alilc/lowcode-engine-ext@1.0.5/dist/css/engine-ext.css" />
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
|||
<!-- Fusion Next 的主包,低代码编辑器的依赖 -->
|
||||
<script src="https://g.alicdn.com/code/lib/alifd__next/1.23.24/next.min.js"></script>
|
||||
<!-- 低代码引擎的主包 -->
|
||||
<script crossorigin="anonymous" src="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.17/dist/js/engine-core.js"></script>
|
||||
<script crossorigin="anonymous" src="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.18-beta.0/dist/js/engine-core.js"></script>
|
||||
<!-- 低代码引擎官方扩展的主包 -->
|
||||
<script crossorigin="anonymous" src="https://alifd.alicdn.com/npm/@alilc/lowcode-engine-ext@1.0.5/dist/js/engine-ext.js"></script>
|
||||
<script>
|
||||
|
|
|
@ -11,8 +11,7 @@ const PreviewSamplePlugin = (ctx: ILowCodePluginContext) => {
|
|||
const { skeleton, config } = ctx;
|
||||
const doPreview = () => {
|
||||
const scenarioName = config.get('scenarioName');
|
||||
console.log('go preview with scenarioName:',scenarioName );
|
||||
saveSchema(scenarioName);;
|
||||
saveSchema(scenarioName);
|
||||
setTimeout(() => {
|
||||
const search = location.search ? `${location.search}&scenarioName=${scenarioName}` : `?scenarioName=${scenarioName}`;
|
||||
window.open(`./preview.html${search}`);
|
||||
|
|
|
@ -103,7 +103,6 @@ export const getPageSchema = async (scenarioName: string = 'unknown') => {
|
|||
return pageSchema;
|
||||
}
|
||||
|
||||
console.log(`failed to get page schema for scenarioName ${scenarioName} from localstorage, use default page schema`, DefaultPageSchema);
|
||||
return DefaultPageSchema;
|
||||
};
|
||||
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<link href="https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/variables.css" rel="stylesheet" />
|
||||
<link href="https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/dist/next.var.min.css" rel="stylesheet" />
|
||||
<!-- 低代码引擎的页面框架样式 -->
|
||||
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.17/dist/css/engine-core.css" />
|
||||
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.18-beta.0/dist/css/engine-core.css" />
|
||||
<!-- 低代码引擎官方扩展的样式 -->
|
||||
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alilc/lowcode-engine-ext@1.0.5/dist/css/engine-ext.css" />
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
|||
<!-- Fusion Next 的主包,低代码编辑器的依赖 -->
|
||||
<script src="https://g.alicdn.com/code/lib/alifd__next/1.23.24/next.min.js"></script>
|
||||
<!-- 低代码引擎的主包 -->
|
||||
<script crossorigin="anonymous" src="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.17/dist/js/engine-core.js"></script>
|
||||
<script crossorigin="anonymous" src="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.18-beta.0/dist/js/engine-core.js"></script>
|
||||
<!-- 低代码引擎官方扩展的主包 -->
|
||||
<script crossorigin="anonymous" src="https://alifd.alicdn.com/npm/@alilc/lowcode-engine-ext@1.0.5/dist/js/engine-ext.js"></script>
|
||||
<script>
|
||||
|
|
|
@ -23,7 +23,7 @@ import './global.scss';
|
|||
async function registerPlugins() {
|
||||
await plugins.register(EditorInitPlugin, {
|
||||
scenarioName: 'next-pro',
|
||||
displayName: '基于next实现的高级表单低代码物料',
|
||||
displayName: '基于 next 实现的高级表单低代码物料',
|
||||
info: {
|
||||
urls: [
|
||||
{
|
||||
|
|
|
@ -11,8 +11,7 @@ const PreviewSamplePlugin = (ctx: ILowCodePluginContext) => {
|
|||
const { skeleton, config } = ctx;
|
||||
const doPreview = () => {
|
||||
const scenarioName = config.get('scenarioName');
|
||||
console.log('go preview with scenarioName:',scenarioName );
|
||||
saveSchema(scenarioName);;
|
||||
saveSchema(scenarioName);
|
||||
setTimeout(() => {
|
||||
const search = location.search ? `${location.search}&scenarioName=${scenarioName}` : `?scenarioName=${scenarioName}`;
|
||||
window.open(`./preview.html${search}`);
|
||||
|
|
|
@ -90,6 +90,5 @@ export const getPageSchema = async (scenarioName: string = 'unknown') => {
|
|||
return pageSchema;
|
||||
}
|
||||
|
||||
console.log(`failed to get schema for scenarioName ${scenarioName} from localstorage, use default schema`, schema);
|
||||
return schema;
|
||||
};
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<link href="https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/variables.css" rel="stylesheet" />
|
||||
<link href="https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/dist/next.var.min.css" rel="stylesheet" />
|
||||
<!-- 低代码引擎的页面框架样式 -->
|
||||
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.17/dist/css/engine-core.css" />
|
||||
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.18-beta.0/dist/css/engine-core.css" />
|
||||
<!-- 低代码引擎官方扩展的样式 -->
|
||||
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alilc/lowcode-engine-ext@1.0.5/dist/css/engine-ext.css" />
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
|||
<!-- Fusion Next 的主包,低代码编辑器的依赖 -->
|
||||
<script src="https://g.alicdn.com/code/lib/alifd__next/1.23.24/next.min.js"></script>
|
||||
<!-- 低代码引擎的主包 -->
|
||||
<script crossorigin="anonymous" src="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.17/dist/js/engine-core.js"></script>
|
||||
<script crossorigin="anonymous" src="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.18-beta.0/dist/js/engine-core.js"></script>
|
||||
<!-- 低代码引擎官方扩展的主包 -->
|
||||
<script crossorigin="anonymous" src="https://alifd.alicdn.com/npm/@alilc/lowcode-engine-ext@1.0.5/dist/js/engine-ext.js"></script>
|
||||
<script>
|
||||
|
|
|
@ -95,7 +95,7 @@ async function registerNodeActionPlugins() {
|
|||
(async function main() {
|
||||
// 一般插件注册
|
||||
await registerPlugins();
|
||||
// node Actions相关插件注册
|
||||
// node Actions 相关插件注册
|
||||
await registerNodeActionPlugins();
|
||||
|
||||
init(document.getElementById('lce-container')!, {
|
||||
|
|
|
@ -12,7 +12,7 @@ const EditorInitPlugin = (ctx: ILowCodePluginContext, options: any) => {
|
|||
const scenarioName = options['scenarioName'];
|
||||
const scenarioDisplayName = options['displayName'] || scenarioName;
|
||||
const scenarioInfo = options['info'] || {};
|
||||
// 保存在config中用于引擎范围其他插件使用
|
||||
// 保存在 config 中用于引擎范围其他插件使用
|
||||
config.set('scenarioName', scenarioName);
|
||||
config.set('scenarioDisplayName', scenarioDisplayName);
|
||||
config.set('scenarioInfo', scenarioInfo);
|
||||
|
@ -20,7 +20,6 @@ const EditorInitPlugin = (ctx: ILowCodePluginContext, options: any) => {
|
|||
await material.setAssets(await injectAssets(assets));
|
||||
const schema = await getPageSchema(scenarioName);
|
||||
|
||||
console.log(`get schema for scenarioName ${scenarioName}:`, schema);
|
||||
// 加载 schema
|
||||
project.openDocument(schema);
|
||||
},
|
||||
|
@ -34,7 +33,7 @@ EditorInitPlugin.meta = {
|
|||
{
|
||||
key: 'scenarioName',
|
||||
type: 'string',
|
||||
description: '用于localstorage存储key',
|
||||
description: '用于 localstorage 存储 key',
|
||||
},
|
||||
{
|
||||
key: 'displayName',
|
||||
|
|
|
@ -11,7 +11,6 @@ const PreviewSamplePlugin = (ctx: ILowCodePluginContext) => {
|
|||
const { skeleton, config } = ctx;
|
||||
const doPreview = () => {
|
||||
const scenarioName = config.get('scenarioName');
|
||||
console.log('go preview with scenarioName:',scenarioName );
|
||||
saveSchema(scenarioName);;
|
||||
setTimeout(() => {
|
||||
const search = location.search ? `${location.search}&scenarioName=${scenarioName}` : `?scenarioName=${scenarioName}`;
|
||||
|
|
|
@ -90,6 +90,5 @@ export const getPageSchema = async (scenarioName: string = 'unknown') => {
|
|||
return pageSchema;
|
||||
}
|
||||
|
||||
console.log(`failed to get schema for scenarioName ${scenarioName} from localstorage, use default schema`, schema);
|
||||
return schema;
|
||||
};
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@alilc/lowcode-demo",
|
||||
"version": "1.0.34",
|
||||
"version": "1.0.35",
|
||||
"description": "Low-Code Engine 低代码搭建引擎 Demo 项目",
|
||||
"repository": "git@github.com:alibaba/lowcode-demo.git",
|
||||
"license": "MIT",
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
<link href="https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/variables.css" rel="stylesheet" />
|
||||
<link href="https://alifd.alicdn.com/npm/@alifd/theme-lowcode-light@0.2.1/dist/next.var.min.css" rel="stylesheet" />
|
||||
<!-- 低代码引擎的页面框架样式 -->
|
||||
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.17/dist/css/engine-core.css" />
|
||||
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.18-beta.0/dist/css/engine-core.css" />
|
||||
<!-- 低代码引擎官方扩展的样式 -->
|
||||
<link rel="stylesheet" href="https://alifd.alicdn.com/npm/@alilc/lowcode-engine-ext@1.0.5/dist/css/engine-ext.css" />
|
||||
|
||||
|
@ -29,7 +29,7 @@
|
|||
<!-- Fusion Next 的主包,低代码编辑器的依赖 -->
|
||||
<script src="https://g.alicdn.com/code/lib/alifd__next/1.23.24/next.min.js"></script>
|
||||
<!-- 低代码引擎的主包 -->
|
||||
<script crossorigin="anonymous" src="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.17/dist/js/engine-core.js"></script>
|
||||
<script crossorigin="anonymous" src="https://alifd.alicdn.com/npm/@alilc/lowcode-engine@1.0.18-beta.0/dist/js/engine-core.js"></script>
|
||||
<!-- 低代码引擎官方扩展的主包 -->
|
||||
<script crossorigin="anonymous" src="https://alifd.alicdn.com/npm/@alilc/lowcode-engine-ext@1.0.5/dist/js/engine-ext.js"></script>
|
||||
<script>
|
||||
|
|
Loading…
Reference in New Issue