introduced in this way in the entry file
import Swiper from "swiper"
import "swiper/dist/css/swiper.min.css"
<div class="swiper-container">
<div class="swiper-wrapper">
<div class="swiper-slide" v-for="(items, index2) in item.pic" :key=index2>
<img :src="items">
</div>
</div>
</div>
mounted () {
new Swiper(".swiper-container", {
autoplay: false,
loop: true
})
}
"Swiper" is not defined
I have already introduced plug-ins in the entry file. Why do I prompt undefied when I use them in components?
Do not use "new" for side effects
I can"t add / * eslint-disable no-new * /
to the entry file
"Swiper" is defined but never used
after I write Vue.use (Swiper)
in the entry file, the component will not show anything. How can I solve these three problems
?