How to use swiper js pagination dots outside of swiper js container in nuxt/vue js?

问题描述 投票:0回答:0

嗨开发者,

我想在 nuxt js 的 swiper js 容器之外使用 swiper js 分页点,它将被控制和点击,这就是它与滑块交互的方式。

mounted() {
        new Swiper("#swiper-container", {
            // other swiper options
            pagination: {
                el: "#swiper-pagination",
                clickable: true,
            },
        });
    },

 <div id="swiper-pagination"></div>
javascript vue.js nuxt.js swiper.js
© www.soinside.com 2019 - 2024. All rights reserved.