diff --git a/demos/vue3_2/README.md b/demos/vue3_2/README.md index 26fa66c9..9e00a73b 100644 --- a/demos/vue3_2/README.md +++ b/demos/vue3_2/README.md @@ -3,7 +3,13 @@ 本`demo`展示如何在`vue3`项目中使用`vue2`基站的远程组件 # 运行 + +在当前目录 ```bash pnpm i pnpm dev ``` + +# 访问 + +http://localhost:9302/#/ diff --git a/demos/vue3_2/vue-2-base/emp.config.ts b/demos/vue3_2/vue-2-base/emp.config.ts index 7c4db994..db9f9532 100644 --- a/demos/vue3_2/vue-2-base/emp.config.ts +++ b/demos/vue3_2/vue-2-base/emp.config.ts @@ -12,6 +12,7 @@ export default defineConfig(store => { './Table': './src/components/table', './CompositionApi': './src/components/CompositionApi', './store': './src/store', + './Home': './src/views/Home', }, empRuntime: { runtimeLib: "https://unpkg.yy.com/@empjs/share@3.1.5/output/sdk.js", diff --git a/demos/vue3_2/vue-2-base/package.json b/demos/vue3_2/vue-2-base/package.json index 6b6b6ae4..7e343255 100644 --- a/demos/vue3_2/vue-2-base/package.json +++ b/demos/vue3_2/vue-2-base/package.json @@ -9,7 +9,7 @@ "@empjs/plugin-vue2": "3.2.0" }, "dependencies": { - "@empjs/share": "3.2.0", + "@empjs/share": "3.3.1-beta.1", "element-ui": "^2.15.14", "vue": "^2.7.14", "vue-router": "3", diff --git a/demos/vue3_2/vue-2-base/src/bootstrap.js b/demos/vue3_2/vue-2-base/src/bootstrap.js index fa815a6c..10c04299 100644 --- a/demos/vue3_2/vue-2-base/src/bootstrap.js +++ b/demos/vue3_2/vue-2-base/src/bootstrap.js @@ -1,10 +1,6 @@ -import App from '@/App' -import store from '@/store' +import App from '@/views/Home' import Vue from 'vue' -import router from './router' new Vue({ - router, - store, render: h => h(App), }).$mount('#emp-root') diff --git a/demos/vue3_2/vue-2-base/src/components/Content.vue b/demos/vue3_2/vue-2-base/src/components/Content.vue index 7a8d60b3..8a891c7b 100644 --- a/demos/vue3_2/vue-2-base/src/components/Content.vue +++ b/demos/vue3_2/vue-2-base/src/components/Content.vue @@ -1,7 +1,7 @@ diff --git a/demos/vue3_2/vue-2-base/src/views/Home.vue b/demos/vue3_2/vue-2-base/src/views/Home.vue index 3f79fdf2..03cb4eb7 100644 --- a/demos/vue3_2/vue-2-base/src/views/Home.vue +++ b/demos/vue3_2/vue-2-base/src/views/Home.vue @@ -16,10 +16,10 @@

Content Component

-

Element Table

- -

CompositionApi

- + +