1.在components文件中创建一个Carousel文件夹 1.1复制结构 1.2 引入swiper name属性 父组件传递的参数props属性 watch属性 immediate属性 2.在入口文件中注册全局组件 3.在使用的地方传参