摘要:
使用EventBus实现兄弟组件之间的通信 需求:为了实现菜单折叠的效果,例如http://blog.gdfengshuo.com/example/work/ /dashboard header组件和sliderbar组件都是main组件下面的子组件,两者为兄弟关系。 现有下面的思路: 点击折叠按钮 阅读全文
posted @ 2019-02-23 11:41
道理我都懂Zz
阅读(1202)
评论(0)
推荐(0)
摘要:
component: resolve = require(['../pages/home.vue'], resolve) vue 路由的懒加载 如果用import引入的话,当项目打包时路由里的所有component都会打包在一个js中,造成进入首页时,需要加载的内容过多,时间相对比较长。 当你用re 阅读全文
posted @ 2019-02-23 10:20
道理我都懂Zz
阅读(5107)
评论(0)
推荐(0)

浙公网安备 33010602011771号