feat: vue3渲染适配器

This commit is contained in:
wangxuefeng
2025-03-12 18:10:47 +08:00
parent bcdb4e8c95
commit 5f8609fc02
20 changed files with 398 additions and 150 deletions

View File

@@ -1,5 +1,9 @@
import type { RouteRecordRaw } from 'vue-router';
import { h } from 'vue';
import RendererAdapter from '@sy/vue3-renderer-adapter';
import { VITE_RENDERER_URL } from '#/constants';
// 微前端路由
@@ -19,20 +23,17 @@ const routes: Array<RouteRecordRaw> = [
name: `${moduleName}-list`,
meta: {
title: '应用列表',
keepAlive: true,
keepAlive: false,
icon: 'ant-design:list',
app: {
},
component: () =>
h(RendererAdapter, {
url: VITE_RENDERER_URL,
name: 'y-code-platform-application-list',
// sync: true,
// alive: true,
// degrade: true,
applicationId: 0,
projectId: 4,
fileId: 'b91n1y9yr',
},
},
component: () => import('#/components/renderer-adapter/index.vue'),
}),
},
],
},