vue-cli 引入组件并传值

第一步:引入需要用到的组件页面

 

import slideshow  from './../components/slideshow.vue' //例如这是轮播图组件页面

 

第二步:定义组件