vue using swiper
import Swiper from "swiper";
methods: {
__init_swiper: function () {
let swiper = new Swiper("-sharpswiper_container", {
autoplay: {
disableOnInteraction: false,
delay: 1000
},
pagination: {
el: ".swiper-pagination",
clickable: true
},
});
}
},
mounted: function () {
this.__init_swiper();
}
package.jsondom7
I tried to introduce this package,
import Dom7 from "dom7";
import Swiper from "swiper";
but without any effect, the same mistake was reported.
I know that I can introduce swiper, in index.html with < script >, but now I want to introduce it only in this component.
could you please help me to solve this problem? Or maybe there are any other way which can include the Swiper into the project? THANK Q.