123456789101112131415161718192021222324252627282930 |
- 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
- };
- });
|