Use swiper in vue2.0 without carousel

1.npm install swiper@3.4.1-- save-dev installs the swiper dependency package
2.import Swiper from "swiper"; references dependencies on the page, and the
node has loaded images, but the page does not display

clipboard.png
dom
created

clipboard.png
page display is blank, there is no broadcast picture

Mar.05,2021

did you put it in the background picture?
1. It is possible that your div does not have a height, so it cannot be displayed
2. Check the image address


try the new version of swiper, swiper 4;
vue introduces a new version of swiper to fill the hole


if you use swiper in Vue, it is recommended to use vue-swiper , which should perfectly solve the landlord problem.


vue-awesome-swiper, encapsulates swiper,.

Menu