I'm having trouble figuring out how to properly export a Vue SFC that includes the mySwiper object. I would appreciate seeing an example from someone who has experience with this. Below is the JavaScript portion of my SFC
<script>
import Swiper from 'swiper'
var mySwiper = new Swiper('.swiper-container', {
// Optional parameters
direction: "horizontal",
loop: true,
// Navigation arrows
navigation: {
nextEl: ".swiper-button-next",
prevEl: ".swiper-button-prev",
}
})
export default {
name: "Employees",
}
</script>