feat: 渲染器支持 echart 渲染

This commit is contained in:
wangxuefeng
2025-03-19 14:45:09 +08:00
parent 9b39f265d3
commit a4c5f633cf
17 changed files with 786 additions and 176 deletions

View File

@@ -1,8 +1,9 @@
import type { RouteRecordRaw } from 'vue-router';
import RendererAdapter from '@sy/vue3-renderer-adapter';
import WujieVueRendererAdapter from '@sy/wujie-vue3-renderer-adapter';
import { VITE_DESIGNER_URL, VITE_V1_URL } from '#/constants';
import { VITE_DESIGNER_URL, VITE_RENDERER_URL, VITE_V1_URL } from '#/constants';
const moduleName = 'micro';
@@ -55,6 +56,23 @@ const routes: RouteRecordRaw[] = [
accessToken: localStorage.getItem('y-code-access-token'),
},
},
{
path: 'test',
name: `Test`,
meta: {
keepAlive: false,
title: '测试',
icon: 'ant-design:delete-outlined',
},
component: WujieVueRendererAdapter,
props: {
url: `${VITE_RENDERER_URL}`,
fileId: '45ud9h6n3',
projectId: 4,
degrade: false,
name: '45ud9h6n3',
},
},
],
},
];