# vue加载远程组件示例
## 远程组件端
配置文件设置端口为`3066`
1. 安装所有依赖包
```
npm i
```
2. 打包已有的组件
```
npm run build
```
3. 启动服务静态服务
```
npm run comp
```
可以在浏览器中输入`http://localhost:3066/LayoutOne.js`,即可查看打包与服务是否成功
## 加载远程组件的客户端
1. 安装所有依赖包
```
npm i
```
2. 启动项目
```
npm run serve
```
打开页面,点击顶部 `remote`连接,即可看到远程加载的组件
**注意:rollup-plugin-vue在这里必须为5.x版本**
### 参考连接
- https://markus.oberlehner.net/blog/distributed-vue-applications-loading-components-via-http
- https://juejin.cn/post/6992483283187531789
没有合适的资源?快使用搜索试试~ 我知道了~
css-effect-map-collection-master.zip
共290个文件
html:103个
jpg:50个
js:43个
0 下载量 72 浏览量
2022-12-30
14:45:39
上传
评论
收藏 60.12MB ZIP 举报
温馨提示
一些好看的css效果图
资源推荐
资源详情
资源评论
收起资源包目录
css-effect-map-collection-master.zip (290个子文件)
.browserslistrc 30B
index.css 233KB
animate.css 73KB
css.css 15KB
style.css 7KB
xterm.css 4KB
style.css 3KB
style.css 3KB
flickity.css 3KB
perfect-scrollbar.css 3KB
index.css 2KB
collect.css 1KB
demo.css 476B
style.css 295B
style.css 295B
test.csv 10KB
test1.csv 24B
qingmingshanghetu.gif 15.12MB
shikongchuansuo2.gif 7.45MB
bg2.gif 4.32MB
word-rain.gif 3.94MB
bg.gif 3.36MB
shikongchuansuo.gif 2.96MB
yaoganfeichuan.gif 652KB
.gitignore 231B
.gitignore 185B
index.htm 3KB
index.html 647KB
官方demo.html 26KB
index.html 7KB
index.html 6KB
index.html 5KB
qq登录界面.html 5KB
必应雪花背景.html 4KB
index.html 4KB
index.html 4KB
index.html 4KB
可拖动输入和校验的表格.html 4KB
index.html 4KB
test2.html 4KB
index.html 4KB
index2.html 4KB
index.html 3KB
index.html 3KB
部分loading.html 3KB
使用开源库.html 3KB
index使用css替换背景图.html 3KB
index3.html 3KB
溢出滚动不兼容ie.html 3KB
index.html 3KB
index.html 3KB
index.html 3KB
index.html 3KB
溢出滚动兼容ie10.html 3KB
flv-test.html 3KB
index.html 3KB
index.html 3KB
css变量实现.html 3KB
temp.html 3KB
双翼圣杯变种.html 3KB
test.html 3KB
index3.html 2KB
index.html 2KB
index.html 2KB
index.html 2KB
clip-path实现不规则背景图特效.html 2KB
index.html 2KB
index.html 2KB
连续衔接动画.html 2KB
index.html 2KB
index.html 2KB
color-picker.html 2KB
index.html 2KB
生命的幻象.html 2KB
拖拽换位置.html 2KB
index2.html 2KB
ali-RTS.html 2KB
index.html 2KB
改变flex调整大小.html 2KB
改变width调整大小.html 2KB
clip-path特效实现.html 2KB
椭圆运动.html 2KB
index.html 2KB
index.html 2KB
index.html 2KB
index.html 2KB
index.html 2KB
index.html 2KB
双翼圣杯.html 2KB
index2.html 1KB
body添加样式实现.html 1KB
svg绘制多边形.html 1KB
index.html 1KB
下载文件.html 1KB
index2.html 1KB
index4.html 1KB
index.html 1KB
index.html 1KB
index.html 1KB
two.html 1KB
共 290 条
- 1
- 2
- 3
资源评论
m0_72731342
- 粉丝: 2
- 资源: 1832
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功