-
Notifications
You must be signed in to change notification settings - Fork 223
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
232 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,13 @@ | |
本`demo`展示如何在`vue3`项目中使用`vue2`基站的远程组件 | ||
|
||
# 运行 | ||
|
||
在当前目录 | ||
```bash | ||
pnpm i | ||
pnpm dev | ||
``` | ||
|
||
# 访问 | ||
|
||
http://localhost:9302/#/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected]/output/sdk.js", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,14 +22,11 @@ export default defineConfig(store => { | |
'@v2b': `vue2Base@${vue2Base}`, | ||
}, | ||
empRuntime: { | ||
runtimeLib: "https://unpkg.yy.com/@empjs/[email protected]/output/sdk.js", | ||
frameworkLib: "https://unpkg.com/@empjs/[email protected]/dist", | ||
// shareLib: { | ||
// 'element-ui': [ | ||
// 'ELEMENT@https://unpkg.com/element-ui/lib/index.js', | ||
// "https://unpkg.com/element-ui/lib/theme-chalk/index.css", | ||
// ], | ||
// }, | ||
runtimeLib: "https://unpkg.com/@empjs/[email protected]/output/sdk.js", | ||
frameworkLib: "https://unpkg.com/@empjs/[email protected]/dist", | ||
shareLib: { | ||
'vue': 'Vue@https://unpkg.com/[email protected]/dist/vue.global.js' | ||
}, | ||
framework: undefined, | ||
}, | ||
}), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.