In recent development, we encountered the problem of always reporting errors when using swiper components. Later, it was found that the problem was caused by the version
1. Download these two versions of plug-ins:
“wiper”: “^ 4.5.1”,
“Vue awesome wiper”: “^ 4.0.4”,
npm install [email protected] --save -dev
npm install [email protected] --save -dev
2. Introduce in the component of xxxx.vue
<script>
import { swiper, swiperSlide } from "vue-awesome-swiper";
import "swiper/dist/css/swiper.css";
export default {
name: "index",
components: {
swiper,
swiperSlide
},
};
</script>
3. Use in div
<swiper ref="mySwiper" v-bind:options="swiperOptions">
<swiper-slide v-for="(item, index) in slideList" :key="index">
<a v-bind:href="'/#/product'%20+%20'item.id'">
<img v-bind:src="item.img" alt />
</a>
</swiper-slide>
Read More:
- Python export data (CSV format)
- Vue error: did you register the component correctly? For.., make sure to provide the “name” option (solved)
- Please transfer a valid prop path to form item!
- How to make the import complete smoothly!
- Miscellaneous Notes (2)
- This dependency was not found:* vue-editor-bridge
- Minifiedreacterror — react error report notes
- Altium designer 18: failed to export
- Python TypeError: ‘newline’ is an invalid keyword argument for this function
- Ngnix+gunicorn+Flag project deployment in Ubuntu
- Attempted import error: ‘injectglobal’ is not exported from ‘styled components’
- The method of using Allegro to export package and pad from BRD file
- React bootstrap loading and how to use modules
- Declarative development tab in Vue
- Vs (Visual Studio) encountered a solution that could not open iostream
- Create game scene in unity_ Creating a beat em up game in unity
- docker: Error response from daemon: driver failed programming external connectivity on endpoint lamp
- Android listview entry button click state chaos solution
- Vue element UI uses this. $notify is not a function problem resolution using the notification box