You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
702 B

10 months ago
define([
'swiper',
'text!./index.html',
'css!./index.css'
], function(Swiper, html) {
return {
props: {
obj: {
type: Object,
default: function () {
return {};
}
}
},
data: function () {
return {
swiperOptions: {
slidesPerView: 'auto',
spaceBetween: 10
}
};
},
mounted: function () {
this.$nextTick(function () {
this.swiper = new Swiper('#swiper6', this.swiperOptions);
});
},
template: html
};
});