vue-easy-carousel 1.1.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +38 -6
- package/dist/index.js +320 -308
- package/dist/index.min.js +7 -0
- package/dist/index.min.js.map +1 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -34,8 +34,10 @@ After the global configuration, anywhere within your project, you can insert the
|
|
|
34
34
|
|--------------------|--------------------|---------------|
|
|
35
35
|
| my-images | Array<object> | [ ] |
|
|
36
36
|
| show-text | Boolean | false |
|
|
37
|
-
| show-
|
|
38
|
-
|
|
|
37
|
+
| show-arrows | Boolean | true |
|
|
38
|
+
| show-dots | Boolean | false |
|
|
39
|
+
| animation | String | null |
|
|
40
|
+
| time-slide | Number | |
|
|
39
41
|
|
|
40
42
|
###### show-text:
|
|
41
43
|
_This parameter tells you if you want to have an informative text at the bottom of each slide. By default, it is set to false._
|
|
@@ -43,23 +45,30 @@ _This parameter tells you if you want to have an informative text at the bottom
|
|
|
43
45
|
###### show-dots:
|
|
44
46
|
_This parameter displays points below the slides indicating which index it is at. By default, it is set to false._
|
|
45
47
|
|
|
48
|
+
###### show-arrows:
|
|
49
|
+
_This parameter displays Arrows side the slides indicating which index it is at. By default, it is set to true._
|
|
50
|
+
|
|
46
51
|
###### time-slide:
|
|
47
52
|
_This parameter sets the Carrousel's automatic rotation, determined by the time in milliseconds (ex: 3000). If you don't want it to be automatic, just omit it._
|
|
48
53
|
|
|
49
|
-
######
|
|
50
|
-
_This parameter
|
|
54
|
+
###### animation:
|
|
55
|
+
_This parameter will receive the value of a slide transition effect. At the moment only the FADE effect is available (we are accepting new effects as a contribution). By default, it is given a null value, so it has no effect on your transition from one slide to another._
|
|
56
|
+
|
|
57
|
+
###### my-images:
|
|
58
|
+
_This parameter receives an array of objects. Each object should contain `image` (URL of the image), `text` (description text of the image), and an optional `link` key (URL for the hyperlink). If the `link` property is provided, the image will become a clickable hyperlink. It is important that the keys contain these names so that the component can recognize and render the images in the browser. Below is an example of the structure:_
|
|
51
59
|
|
|
52
60
|
```
|
|
53
61
|
{
|
|
54
62
|
image: 'url',
|
|
55
|
-
text: 'description text of image'
|
|
63
|
+
text: 'description text of image',
|
|
64
|
+
link: 'https://example.com'
|
|
56
65
|
}
|
|
57
66
|
```
|
|
58
67
|
|
|
59
68
|
##### Examples
|
|
60
69
|
```html
|
|
61
70
|
<!-- Show all attributes in component -->
|
|
62
|
-
<vue-easy-carousel :my-images="array" show-text show-dots />
|
|
71
|
+
<vue-easy-carousel :my-images="array" show-text show-dots :show-arrows="false" time-slide="5000" animation="fade" />
|
|
63
72
|
|
|
64
73
|
<!-- Show only descriptions text attributes in component -->
|
|
65
74
|
<vue-easy-carousel :my-images="array" show-text />
|
|
@@ -69,6 +78,29 @@ _This parameter receives an array of objects containing the image and text keys.
|
|
|
69
78
|
|
|
70
79
|
<!-- Show only the images slide -->
|
|
71
80
|
<vue-easy-carousel :my-images="array" />
|
|
81
|
+
|
|
82
|
+
<!-- Using images with hyperlinks -->
|
|
83
|
+
<vue-easy-carousel :my-images="arrayWithLinks" />
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
_For the hyperlink example, the `arrayWithLinks` would be structured like this:_
|
|
87
|
+
```javascript
|
|
88
|
+
data() {
|
|
89
|
+
return {
|
|
90
|
+
arrayWithLinks: [
|
|
91
|
+
{
|
|
92
|
+
image: 'https://example.com/image1.jpg',
|
|
93
|
+
text: 'Link to Example 1',
|
|
94
|
+
link: 'https://example.com/page1'
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
image: 'https://example.com/image2.jpg',
|
|
98
|
+
text: 'Link to Example 2',
|
|
99
|
+
link: 'https://example.com/page2'
|
|
100
|
+
}
|
|
101
|
+
]
|
|
102
|
+
}
|
|
103
|
+
}
|
|
72
104
|
```
|
|
73
105
|
|
|
74
106
|
## Next steps
|
package/dist/index.js
CHANGED
|
@@ -1,339 +1,351 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* vue-easy-carousel v1.
|
|
2
|
+
* vue-easy-carousel v1.3.0
|
|
3
3
|
* (c) Matheus Ricelly <fsenaweb@gmail.com>
|
|
4
4
|
* Released under the MIT License.
|
|
5
5
|
*/
|
|
6
|
-
|
|
6
|
+
(function (global, factory) {
|
|
7
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
8
|
+
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
9
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.VueEasyCarousel = {}));
|
|
10
|
+
})(this, (function (exports) { 'use strict';
|
|
7
11
|
|
|
8
|
-
|
|
12
|
+
//
|
|
13
|
+
//
|
|
14
|
+
//
|
|
15
|
+
//
|
|
16
|
+
//
|
|
17
|
+
//
|
|
18
|
+
//
|
|
19
|
+
//
|
|
20
|
+
//
|
|
21
|
+
//
|
|
22
|
+
//
|
|
23
|
+
//
|
|
24
|
+
//
|
|
25
|
+
//
|
|
26
|
+
//
|
|
27
|
+
//
|
|
28
|
+
//
|
|
29
|
+
//
|
|
30
|
+
//
|
|
31
|
+
//
|
|
32
|
+
//
|
|
33
|
+
//
|
|
34
|
+
//
|
|
35
|
+
//
|
|
36
|
+
//
|
|
37
|
+
//
|
|
38
|
+
//
|
|
39
|
+
//
|
|
40
|
+
//
|
|
41
|
+
//
|
|
42
|
+
//
|
|
9
43
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
//
|
|
18
|
-
//
|
|
19
|
-
//
|
|
20
|
-
//
|
|
21
|
-
//
|
|
22
|
-
//
|
|
23
|
-
//
|
|
24
|
-
//
|
|
25
|
-
//
|
|
26
|
-
//
|
|
27
|
-
//
|
|
28
|
-
//
|
|
29
|
-
//
|
|
30
|
-
//
|
|
31
|
-
//
|
|
32
|
-
var script = {
|
|
33
|
-
name: 'carousel',
|
|
34
|
-
data: function data() {
|
|
35
|
-
return {
|
|
36
|
-
slideIndex: 1
|
|
37
|
-
};
|
|
38
|
-
},
|
|
39
|
-
props: {
|
|
40
|
-
myImages: {
|
|
41
|
-
type: Array,
|
|
42
|
-
required: false,
|
|
43
|
-
//true
|
|
44
|
-
"default": function _default() {
|
|
45
|
-
return [];
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
showText: {
|
|
49
|
-
type: Boolean,
|
|
50
|
-
"default": false
|
|
51
|
-
},
|
|
52
|
-
showDots: {
|
|
53
|
-
type: Boolean,
|
|
54
|
-
"default": false
|
|
44
|
+
var script = {
|
|
45
|
+
name: 'carousel',
|
|
46
|
+
data: function data() {
|
|
47
|
+
return {
|
|
48
|
+
slideIndex: 1,
|
|
49
|
+
intervalId: null
|
|
50
|
+
};
|
|
55
51
|
},
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
},
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
52
|
+
props: {
|
|
53
|
+
myImages: {
|
|
54
|
+
type: Array,
|
|
55
|
+
required: false,
|
|
56
|
+
//true
|
|
57
|
+
"default": function _default() {
|
|
58
|
+
return [];
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
showText: {
|
|
62
|
+
type: Boolean,
|
|
63
|
+
"default": false
|
|
64
|
+
},
|
|
65
|
+
showDots: {
|
|
66
|
+
type: Boolean,
|
|
67
|
+
"default": false
|
|
68
|
+
},
|
|
69
|
+
showArrows: {
|
|
70
|
+
type: Boolean,
|
|
71
|
+
"default": true
|
|
72
|
+
},
|
|
73
|
+
timeSlide: {
|
|
74
|
+
type: Number
|
|
75
|
+
},
|
|
76
|
+
animation: {
|
|
77
|
+
type: String,
|
|
78
|
+
"default": null
|
|
78
79
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
80
|
+
},
|
|
81
|
+
mounted: function mounted() {
|
|
82
|
+
var _this = this;
|
|
83
|
+
if (this.timeSlide > 0) {
|
|
84
|
+
this.intervalId = setInterval(function () {
|
|
85
|
+
_this.nextSlide(1);
|
|
86
|
+
}, this.timeSlide);
|
|
82
87
|
}
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
88
|
+
},
|
|
89
|
+
beforeDestroy: function beforeDestroy() {
|
|
90
|
+
if (this.intervalId) {
|
|
91
|
+
clearInterval(this.intervalId);
|
|
86
92
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
for (i = 0; i < dots.length; i++) {
|
|
94
|
-
dots[i].className = dots[i].className.replace(" active", "");
|
|
93
|
+
},
|
|
94
|
+
methods: {
|
|
95
|
+
nextSlide: function nextSlide(n) {
|
|
96
|
+
var newIndex = this.slideIndex + n;
|
|
97
|
+
if (newIndex > this.myImages.length) {
|
|
98
|
+
newIndex = 1;
|
|
95
99
|
}
|
|
96
|
-
|
|
97
|
-
|
|
100
|
+
if (newIndex < 1) {
|
|
101
|
+
newIndex = this.myImages.length;
|
|
102
|
+
}
|
|
103
|
+
this.slideIndex = newIndex;
|
|
104
|
+
},
|
|
105
|
+
currentSlide: function currentSlide(n) {
|
|
106
|
+
this.slideIndex = n;
|
|
98
107
|
}
|
|
99
|
-
},
|
|
100
|
-
nextSlide: function nextSlide(n) {
|
|
101
|
-
this.showSlides(this.slideIndex += n);
|
|
102
|
-
},
|
|
103
|
-
currentSlide: function currentSlide(n) {
|
|
104
|
-
this.showSlides(this.slideIndex = n);
|
|
105
108
|
}
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
|
|
110
|
-
if (typeof shadowMode !== 'boolean') {
|
|
111
|
-
createInjectorSSR = createInjector;
|
|
112
|
-
createInjector = shadowMode;
|
|
113
|
-
shadowMode = false;
|
|
114
|
-
}
|
|
115
|
-
// Vue.extend constructor export interop.
|
|
116
|
-
const options = typeof script === 'function' ? script.options : script;
|
|
117
|
-
// render functions
|
|
118
|
-
if (template && template.render) {
|
|
119
|
-
options.render = template.render;
|
|
120
|
-
options.staticRenderFns = template.staticRenderFns;
|
|
121
|
-
options._compiled = true;
|
|
122
|
-
// functional template
|
|
123
|
-
if (isFunctionalTemplate) {
|
|
124
|
-
options.functional = true;
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
// scopedId
|
|
128
|
-
if (scopeId) {
|
|
129
|
-
options._scopeId = scopeId;
|
|
130
|
-
}
|
|
131
|
-
let hook;
|
|
132
|
-
if (moduleIdentifier) {
|
|
133
|
-
// server build
|
|
134
|
-
hook = function (context) {
|
|
135
|
-
// 2.3 injection
|
|
136
|
-
context =
|
|
137
|
-
context || // cached call
|
|
138
|
-
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
139
|
-
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
|
|
140
|
-
// 2.2 with runInNewContext: true
|
|
141
|
-
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
142
|
-
context = __VUE_SSR_CONTEXT__;
|
|
143
|
-
}
|
|
144
|
-
// inject component styles
|
|
145
|
-
if (style) {
|
|
146
|
-
style.call(this, createInjectorSSR(context));
|
|
147
|
-
}
|
|
148
|
-
// register component module identifier for async chunk inference
|
|
149
|
-
if (context && context._registeredComponents) {
|
|
150
|
-
context._registeredComponents.add(moduleIdentifier);
|
|
151
|
-
}
|
|
152
|
-
};
|
|
153
|
-
// used by ssr in case component is cached and beforeCreate
|
|
154
|
-
// never gets called
|
|
155
|
-
options._ssrRegister = hook;
|
|
156
|
-
}
|
|
157
|
-
else if (style) {
|
|
158
|
-
hook = shadowMode
|
|
159
|
-
? function (context) {
|
|
160
|
-
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
|
|
161
|
-
}
|
|
162
|
-
: function (context) {
|
|
163
|
-
style.call(this, createInjector(context));
|
|
164
|
-
};
|
|
165
|
-
}
|
|
166
|
-
if (hook) {
|
|
167
|
-
if (options.functional) {
|
|
168
|
-
// register for functional component in vue file
|
|
169
|
-
const originalRender = options.render;
|
|
170
|
-
options.render = function renderWithStyleInjection(h, context) {
|
|
171
|
-
hook.call(context);
|
|
172
|
-
return originalRender(h, context);
|
|
173
|
-
};
|
|
174
|
-
}
|
|
175
|
-
else {
|
|
176
|
-
// inject component registration as beforeCreate hook
|
|
177
|
-
const existing = options.beforeCreate;
|
|
178
|
-
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
return script;
|
|
182
|
-
}
|
|
109
|
+
};
|
|
183
110
|
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
function
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
111
|
+
function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
|
|
112
|
+
if (typeof shadowMode !== 'boolean') {
|
|
113
|
+
createInjectorSSR = createInjector;
|
|
114
|
+
createInjector = shadowMode;
|
|
115
|
+
shadowMode = false;
|
|
116
|
+
}
|
|
117
|
+
// Vue.extend constructor export interop.
|
|
118
|
+
const options = typeof script === 'function' ? script.options : script;
|
|
119
|
+
// render functions
|
|
120
|
+
if (template && template.render) {
|
|
121
|
+
options.render = template.render;
|
|
122
|
+
options.staticRenderFns = template.staticRenderFns;
|
|
123
|
+
options._compiled = true;
|
|
124
|
+
// functional template
|
|
125
|
+
if (isFunctionalTemplate) {
|
|
126
|
+
options.functional = true;
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
// scopedId
|
|
130
|
+
if (scopeId) {
|
|
131
|
+
options._scopeId = scopeId;
|
|
132
|
+
}
|
|
133
|
+
let hook;
|
|
134
|
+
if (moduleIdentifier) {
|
|
135
|
+
// server build
|
|
136
|
+
hook = function (context) {
|
|
137
|
+
// 2.3 injection
|
|
138
|
+
context =
|
|
139
|
+
context || // cached call
|
|
140
|
+
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
|
141
|
+
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
|
|
142
|
+
// 2.2 with runInNewContext: true
|
|
143
|
+
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
|
144
|
+
context = __VUE_SSR_CONTEXT__;
|
|
145
|
+
}
|
|
146
|
+
// inject component styles
|
|
147
|
+
if (style) {
|
|
148
|
+
style.call(this, createInjectorSSR(context));
|
|
149
|
+
}
|
|
150
|
+
// register component module identifier for async chunk inference
|
|
151
|
+
if (context && context._registeredComponents) {
|
|
152
|
+
context._registeredComponents.add(moduleIdentifier);
|
|
153
|
+
}
|
|
154
|
+
};
|
|
155
|
+
// used by ssr in case component is cached and beforeCreate
|
|
156
|
+
// never gets called
|
|
157
|
+
options._ssrRegister = hook;
|
|
158
|
+
}
|
|
159
|
+
else if (style) {
|
|
160
|
+
hook = shadowMode
|
|
161
|
+
? function (context) {
|
|
162
|
+
style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
|
|
163
|
+
}
|
|
164
|
+
: function (context) {
|
|
165
|
+
style.call(this, createInjector(context));
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
if (hook) {
|
|
169
|
+
if (options.functional) {
|
|
170
|
+
// register for functional component in vue file
|
|
171
|
+
const originalRender = options.render;
|
|
172
|
+
options.render = function renderWithStyleInjection(h, context) {
|
|
173
|
+
hook.call(context);
|
|
174
|
+
return originalRender(h, context);
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
else {
|
|
178
|
+
// inject component registration as beforeCreate hook
|
|
179
|
+
const existing = options.beforeCreate;
|
|
180
|
+
options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
return script;
|
|
184
|
+
}
|
|
243
185
|
|
|
244
|
-
|
|
186
|
+
const isOldIE = typeof navigator !== 'undefined' &&
|
|
187
|
+
/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());
|
|
188
|
+
function createInjector(context) {
|
|
189
|
+
return (id, style) => addStyle(id, style);
|
|
190
|
+
}
|
|
191
|
+
let HEAD;
|
|
192
|
+
const styles = {};
|
|
193
|
+
function addStyle(id, css) {
|
|
194
|
+
const group = isOldIE ? css.media || 'default' : id;
|
|
195
|
+
const style = styles[group] || (styles[group] = { ids: new Set(), styles: [] });
|
|
196
|
+
if (!style.ids.has(id)) {
|
|
197
|
+
style.ids.add(id);
|
|
198
|
+
let code = css.source;
|
|
199
|
+
if (css.map) {
|
|
200
|
+
// https://developer.chrome.com/devtools/docs/javascript-debugging
|
|
201
|
+
// this makes source maps inside style tags work properly in Chrome
|
|
202
|
+
code += '\n/*# sourceURL=' + css.map.sources[0] + ' */';
|
|
203
|
+
// http://stackoverflow.com/a/26603875
|
|
204
|
+
code +=
|
|
205
|
+
'\n/*# sourceMappingURL=data:application/json;base64,' +
|
|
206
|
+
btoa(unescape(encodeURIComponent(JSON.stringify(css.map)))) +
|
|
207
|
+
' */';
|
|
208
|
+
}
|
|
209
|
+
if (!style.element) {
|
|
210
|
+
style.element = document.createElement('style');
|
|
211
|
+
style.element.type = 'text/css';
|
|
212
|
+
if (css.media)
|
|
213
|
+
style.element.setAttribute('media', css.media);
|
|
214
|
+
if (HEAD === undefined) {
|
|
215
|
+
HEAD = document.head || document.getElementsByTagName('head')[0];
|
|
216
|
+
}
|
|
217
|
+
HEAD.appendChild(style.element);
|
|
218
|
+
}
|
|
219
|
+
if ('styleSheet' in style.element) {
|
|
220
|
+
style.styles.push(code);
|
|
221
|
+
style.element.styleSheet.cssText = style.styles
|
|
222
|
+
.filter(Boolean)
|
|
223
|
+
.join('\n');
|
|
224
|
+
}
|
|
225
|
+
else {
|
|
226
|
+
const index = style.ids.size - 1;
|
|
227
|
+
const textNode = document.createTextNode(code);
|
|
228
|
+
const nodes = style.element.childNodes;
|
|
229
|
+
if (nodes[index])
|
|
230
|
+
style.element.removeChild(nodes[index]);
|
|
231
|
+
if (nodes.length)
|
|
232
|
+
style.element.insertBefore(textNode, nodes[index]);
|
|
233
|
+
else
|
|
234
|
+
style.element.appendChild(textNode);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
245
238
|
|
|
246
|
-
|
|
239
|
+
/* script */
|
|
240
|
+
var __vue_script__ = script;
|
|
247
241
|
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
242
|
+
/* template */
|
|
243
|
+
var __vue_render__ = function __vue_render__() {
|
|
244
|
+
var _vm = this;
|
|
245
|
+
var _h = _vm.$createElement;
|
|
246
|
+
var _c = _vm._self._c || _h;
|
|
247
|
+
return _c('div', [_c('div', {
|
|
248
|
+
staticClass: "slides-container"
|
|
249
|
+
}, [_vm._l(_vm.myImages, function (image, index) {
|
|
250
|
+
return _c('div', {
|
|
251
|
+
directives: [{
|
|
252
|
+
name: "show",
|
|
253
|
+
rawName: "v-show",
|
|
254
|
+
value: _vm.slideIndex === index + 1,
|
|
255
|
+
expression: "slideIndex === index + 1"
|
|
256
|
+
}],
|
|
257
|
+
key: index,
|
|
258
|
+
staticClass: "slides",
|
|
259
|
+
"class": _vm.animation
|
|
260
|
+
}, [_c(image.link ? 'a' : 'span', {
|
|
261
|
+
tag: "component",
|
|
262
|
+
style: image.link ? '' : 'cursor: default',
|
|
263
|
+
attrs: {
|
|
264
|
+
"href": image.link,
|
|
265
|
+
"target": image.link ? '_blank' : null
|
|
266
|
+
}
|
|
267
|
+
}, [_c('img', {
|
|
268
|
+
attrs: {
|
|
269
|
+
"src": image.image,
|
|
270
|
+
"alt": image.text
|
|
271
|
+
}
|
|
272
|
+
})]), _vm._v(" "), _vm.showText ? _c('div', {
|
|
273
|
+
staticClass: "text"
|
|
274
|
+
}, [_vm._v(_vm._s(image.text))]) : _vm._e()], 1);
|
|
275
|
+
}), _vm._v(" "), _vm.showArrows ? _c('a', {
|
|
276
|
+
staticClass: "prev",
|
|
277
|
+
on: {
|
|
278
|
+
"click": function click($event) {
|
|
279
|
+
$event.preventDefault();
|
|
280
|
+
return _vm.nextSlide(-1);
|
|
281
|
+
}
|
|
278
282
|
}
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
staticClass: "dots"
|
|
282
|
-
}, _vm._l(_vm.myImages, function (_, index) {
|
|
283
|
-
return _c('span', {
|
|
284
|
-
key: index,
|
|
285
|
-
ref: "dot",
|
|
286
|
-
refInFor: true,
|
|
287
|
-
staticClass: "dot",
|
|
283
|
+
}, [_vm._v("❮")]) : _vm._e(), _vm._v(" "), _vm.showArrows ? _c('a', {
|
|
284
|
+
staticClass: "next",
|
|
288
285
|
on: {
|
|
289
286
|
"click": function click($event) {
|
|
290
287
|
$event.preventDefault();
|
|
291
|
-
return _vm.
|
|
288
|
+
return _vm.nextSlide(1);
|
|
292
289
|
}
|
|
293
290
|
}
|
|
294
|
-
})
|
|
295
|
-
|
|
296
|
-
}
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
|
|
291
|
+
}, [_vm._v("❯")]) : _vm._e()], 2), _vm._v(" "), _vm.showDots ? _c('div', {
|
|
292
|
+
staticClass: "dots"
|
|
293
|
+
}, _vm._l(_vm.myImages, function (_, index) {
|
|
294
|
+
return _c('span', {
|
|
295
|
+
key: index,
|
|
296
|
+
staticClass: "dot",
|
|
297
|
+
"class": {
|
|
298
|
+
'active': _vm.slideIndex === index + 1
|
|
299
|
+
},
|
|
300
|
+
on: {
|
|
301
|
+
"click": function click($event) {
|
|
302
|
+
$event.preventDefault();
|
|
303
|
+
return _vm.currentSlide(index + 1);
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
});
|
|
307
|
+
}), 0) : _vm._e()]);
|
|
308
|
+
};
|
|
309
|
+
var __vue_staticRenderFns__ = [];
|
|
311
310
|
|
|
312
|
-
|
|
313
|
-
|
|
311
|
+
/* style */
|
|
312
|
+
var __vue_inject_styles__ = function __vue_inject_styles__(inject) {
|
|
313
|
+
if (!inject) return;
|
|
314
|
+
inject("data-v-42cffdac_0", {
|
|
315
|
+
source: "*{box-sizing:border-box}.slides-container{width:100%;position:relative;margin:auto}.slides img{width:100%}.next,.prev{cursor:pointer;position:absolute;top:50%;width:auto;margin-top:-22px;padding:16px;color:#fff;font-weight:700;font-size:18px;transition:.6s ease;border-radius:0 3px 3px 0;user-select:none}.next{right:0;border-radius:3px 0 0 3px}.next:hover,.prev:hover{background-color:rgba(0,0,0,.8)}.text{display:flex;justify-content:flex-start;align-items:center;color:#f2f2f2;font-size:18px;padding:8px 12px;position:absolute;bottom:4px;width:100%;height:55px;font-weight:700;text-align:center;background-color:rgba(0,0,0,.4)}.dots{margin-top:5px;text-align:center}.dot{cursor:pointer;height:15px;width:15px;margin:0 2px;background-color:#bbb;border-radius:50%;display:inline-block;transition:background-color .6s ease}.active,.dot:hover{background-color:#717171}.fade{-webkit-animation-name:fade;-webkit-animation-duration:1.5s;animation-name:fade;animation-duration:1.5s}@-webkit-keyframes fade{from{opacity:.4}to{opacity:1}}@keyframes fade{from{opacity:.4}to{opacity:1}}",
|
|
316
|
+
map: undefined,
|
|
317
|
+
media: undefined
|
|
318
|
+
});
|
|
319
|
+
};
|
|
320
|
+
/* scoped */
|
|
321
|
+
var __vue_scope_id__ = undefined;
|
|
322
|
+
/* module identifier */
|
|
323
|
+
var __vue_module_identifier__ = undefined;
|
|
324
|
+
/* functional template */
|
|
325
|
+
var __vue_is_functional_template__ = false;
|
|
326
|
+
/* style inject SSR */
|
|
314
327
|
|
|
315
|
-
|
|
316
|
-
/* functional template */
|
|
328
|
+
/* style inject shadow dom */
|
|
317
329
|
|
|
318
|
-
var
|
|
319
|
-
|
|
330
|
+
var __vue_component__ = /*#__PURE__*/normalizeComponent({
|
|
331
|
+
render: __vue_render__,
|
|
332
|
+
staticRenderFns: __vue_staticRenderFns__
|
|
333
|
+
}, __vue_inject_styles__, __vue_script__, __vue_scope_id__, __vue_is_functional_template__, __vue_module_identifier__, false, createInjector, undefined, undefined);
|
|
320
334
|
|
|
321
|
-
|
|
335
|
+
function install(Vue) {
|
|
336
|
+
if (install.installed) return;
|
|
337
|
+
install.installed = true;
|
|
338
|
+
Vue.component('VueEasyCarousel', __vue_component__);
|
|
339
|
+
}
|
|
322
340
|
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
}
|
|
341
|
+
// auto install
|
|
342
|
+
if (typeof window !== 'undefined' && typeof window.Vue !== 'undefined') {
|
|
343
|
+
window.Vue.use(install);
|
|
344
|
+
}
|
|
327
345
|
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
install.installed = true;
|
|
331
|
-
Vue.component('VueEasyCarousel', __vue_component__);
|
|
332
|
-
} // auto install
|
|
346
|
+
exports.VueEasyCarousel = __vue_component__;
|
|
347
|
+
exports["default"] = install;
|
|
333
348
|
|
|
334
|
-
|
|
335
|
-
window.Vue.use(install);
|
|
336
|
-
}
|
|
349
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
337
350
|
|
|
338
|
-
|
|
339
|
-
exports.default = install;
|
|
351
|
+
}));
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* vue-easy-carousel v1.3.0
|
|
3
|
+
* (c) Matheus Ricelly <fsenaweb@gmail.com>
|
|
4
|
+
* Released under the MIT License.
|
|
5
|
+
*/
|
|
6
|
+
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).VueEasyCarousel={})}(this,(function(e){"use strict";var t={name:"carousel",data:function(){return{slideIndex:1,intervalId:null}},props:{myImages:{type:Array,required:!1,default:function(){return[]}},showText:{type:Boolean,default:!1},showDots:{type:Boolean,default:!1},showArrows:{type:Boolean,default:!0},timeSlide:{type:Number},animation:{type:String,default:null}},mounted:function(){var e=this;this.timeSlide>0&&(this.intervalId=setInterval((function(){e.nextSlide(1)}),this.timeSlide))},beforeDestroy:function(){this.intervalId&&clearInterval(this.intervalId)},methods:{nextSlide:function(e){var t=this.slideIndex+e;t>this.myImages.length&&(t=1),t<1&&(t=this.myImages.length),this.slideIndex=t},currentSlide:function(e){this.slideIndex=e}}};function n(e,t,n,i,o,s,a,r,d,l){"boolean"!=typeof a&&(d=r,r=a,a=!1);const c="function"==typeof n?n.options:n;let u;if(e&&e.render&&(c.render=e.render,c.staticRenderFns=e.staticRenderFns,c._compiled=!0,o&&(c.functional=!0)),i&&(c._scopeId=i),s?(u=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),t&&t.call(this,d(e)),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=u):t&&(u=a?function(e){t.call(this,l(e,this.$root.$options.shadowRoot))}:function(e){t.call(this,r(e))}),u)if(c.functional){const e=c.render;c.render=function(t,n){return u.call(n),e(t,n)}}else{const e=c.beforeCreate;c.beforeCreate=e?[].concat(e,u):[u]}return n}const i="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function o(e){return(e,t)=>function(e,t){const n=i?t.media||"default":e,o=a[n]||(a[n]={ids:new Set,styles:[]});if(!o.ids.has(e)){o.ids.add(e);let n=t.source;if(t.map&&(n+="\n/*# sourceURL="+t.map.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(t.map))))+" */"),o.element||(o.element=document.createElement("style"),o.element.type="text/css",t.media&&o.element.setAttribute("media",t.media),void 0===s&&(s=document.head||document.getElementsByTagName("head")[0]),s.appendChild(o.element)),"styleSheet"in o.element)o.styles.push(n),o.element.styleSheet.cssText=o.styles.filter(Boolean).join("\n");else{const e=o.ids.size-1,t=document.createTextNode(n),i=o.element.childNodes;i[e]&&o.element.removeChild(i[e]),i.length?o.element.insertBefore(t,i[e]):o.element.appendChild(t)}}}(e,t)}let s;const a={};var r=n({render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"slides-container"},[e._l(e.myImages,(function(t,i){return n("div",{directives:[{name:"show",rawName:"v-show",value:e.slideIndex===i+1,expression:"slideIndex === index + 1"}],key:i,staticClass:"slides",class:e.animation},[n(t.link?"a":"span",{tag:"component",style:t.link?"":"cursor: default",attrs:{href:t.link,target:t.link?"_blank":null}},[n("img",{attrs:{src:t.image,alt:t.text}})]),e._v(" "),e.showText?n("div",{staticClass:"text"},[e._v(e._s(t.text))]):e._e()],1)})),e._v(" "),e.showArrows?n("a",{staticClass:"prev",on:{click:function(t){return t.preventDefault(),e.nextSlide(-1)}}},[e._v("❮")]):e._e(),e._v(" "),e.showArrows?n("a",{staticClass:"next",on:{click:function(t){return t.preventDefault(),e.nextSlide(1)}}},[e._v("❯")]):e._e()],2),e._v(" "),e.showDots?n("div",{staticClass:"dots"},e._l(e.myImages,(function(t,i){return n("span",{key:i,staticClass:"dot",class:{active:e.slideIndex===i+1},on:{click:function(t){return t.preventDefault(),e.currentSlide(i+1)}}})})),0):e._e()])},staticRenderFns:[]},(function(e){e&&e("data-v-42cffdac_0",{source:"*{box-sizing:border-box}.slides-container{width:100%;position:relative;margin:auto}.slides img{width:100%}.next,.prev{cursor:pointer;position:absolute;top:50%;width:auto;margin-top:-22px;padding:16px;color:#fff;font-weight:700;font-size:18px;transition:.6s ease;border-radius:0 3px 3px 0;user-select:none}.next{right:0;border-radius:3px 0 0 3px}.next:hover,.prev:hover{background-color:rgba(0,0,0,.8)}.text{display:flex;justify-content:flex-start;align-items:center;color:#f2f2f2;font-size:18px;padding:8px 12px;position:absolute;bottom:4px;width:100%;height:55px;font-weight:700;text-align:center;background-color:rgba(0,0,0,.4)}.dots{margin-top:5px;text-align:center}.dot{cursor:pointer;height:15px;width:15px;margin:0 2px;background-color:#bbb;border-radius:50%;display:inline-block;transition:background-color .6s ease}.active,.dot:hover{background-color:#717171}.fade{-webkit-animation-name:fade;-webkit-animation-duration:1.5s;animation-name:fade;animation-duration:1.5s}@-webkit-keyframes fade{from{opacity:.4}to{opacity:1}}@keyframes fade{from{opacity:.4}to{opacity:1}}",map:void 0,media:void 0})}),t,void 0,!1,void 0,!1,o,void 0,void 0);function d(e){d.installed||(d.installed=!0,e.component("VueEasyCarousel",r))}"undefined"!=typeof window&&void 0!==window.Vue&&window.Vue.use(d),e.VueEasyCarousel=r,e.default=d,Object.defineProperty(e,"__esModule",{value:!0})}));
|
|
7
|
+
//# sourceMappingURL=index.min.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.min.js","sources":["../src/Carousel.vue","../node_modules/vue-runtime-helpers/dist/normalize-component.mjs","../node_modules/vue-runtime-helpers/dist/inject-style/browser.mjs","../src/plugin.js"],"sourcesContent":["<template>\n <div>\n <div class=\"slides-container\">\n\n <div\n v-for=\"(image, index) in myImages\"\n v-show=\"slideIndex === index + 1\"\n class=\"slides\"\n :class=\"animation\"\n :key=\"index\"\n >\n <component :is=\"image.link ? 'a' : 'span'\" :href=\"image.link\" :target=\"image.link ? '_blank' : null\" :style=\"image.link ? '' : 'cursor: default'\">\n <img :src=\"image.image\" :alt=\"image.text\"/>\n </component>\n <div v-if=\"showText\" class=\"text\">{{ image.text }}</div>\n </div>\n\n <a v-if=\"showArrows\" class=\"prev\" @click.prevent=\"nextSlide(-1)\">❮</a>\n <a v-if=\"showArrows\" class=\"next\" @click.prevent=\"nextSlide(1)\">❯</a>\n\n </div>\n\n <div v-if=\"showDots\" class=\"dots\">\n <span v-for=\"(_, index) in myImages\" class=\"dot\" :key=\"index\"\n :class=\"{ 'active': slideIndex === index + 1 }\"\n @click.prevent=\"currentSlide(index+ 1)\"></span>\n </div>\n\n </div>\n</template>\n\n<script>\nexport default {\n name: 'carousel',\n data() {\n return {\n slideIndex: 1,\n intervalId: null\n }\n },\n props: {\n myImages: {\n type: Array,\n required: false, //true\n default: () => [],\n },\n showText: {\n type: Boolean,\n default: false\n },\n showDots: {\n type: Boolean,\n default: false\n },\n showArrows: {\n type: Boolean,\n default: true\n },\n timeSlide: {\n type: Number,\n },\n animation: {\n type: String,\n default: null\n }\n },\n mounted() {\n if(this.timeSlide > 0){\n this.intervalId = setInterval(() => {\n this.nextSlide(1)\n }, this.timeSlide)\n }\n },\n beforeDestroy() {\n if (this.intervalId) {\n clearInterval(this.intervalId)\n }\n },\n methods: {\n nextSlide(n) {\n let newIndex = this.slideIndex + n;\n if (newIndex > this.myImages.length) {\n newIndex = 1;\n }\n if (newIndex < 1) {\n newIndex = this.myImages.length;\n }\n this.slideIndex = newIndex;\n },\n currentSlide(n) {\n this.slideIndex = n;\n }\n }\n}\n</script>\n\n<style>\n* {\n box-sizing: border-box\n}\n\n.slides-container {\n width: 100%;\n position: relative;\n margin: auto;\n}\n\n.slides img {\n width: 100%;\n}\n\n.prev, .next {\n cursor: pointer;\n position: absolute;\n top: 50%;\n width: auto;\n margin-top: -22px;\n padding: 16px;\n color: white;\n font-weight: bold;\n font-size: 18px;\n transition: 0.6s ease;\n border-radius: 0 3px 3px 0;\n user-select: none;\n}\n\n.next {\n right: 0;\n border-radius: 3px 0 0 3px;\n}\n\n.prev:hover, .next:hover {\n background-color: rgba(0, 0, 0, 0.8);\n}\n\n.text {\n display: flex;\n justify-content: flex-start;\n align-items: center;\n color: #f2f2f2;\n font-size: 18px;\n padding: 8px 12px;\n position: absolute;\n bottom: 4px;\n width: 100%;\n height: 55px;\n font-weight: bold;\n text-align: center;\n background-color: rgba(0, 0, 0, 0.4);\n}\n\n.dots {\n margin-top: 5px;\n text-align: center;\n}\n\n.dot {\n cursor: pointer;\n height: 15px;\n width: 15px;\n margin: 0 2px;\n background-color: #bbb;\n border-radius: 50%;\n display: inline-block;\n transition: background-color 0.6s ease;\n}\n\n.active, .dot:hover {\n background-color: #717171;\n}\n\n/* Fade animation */\n.fade {\n -webkit-animation-name: fade;\n -webkit-animation-duration: 1.5s;\n animation-name: fade;\n animation-duration: 1.5s;\n}\n\n@-webkit-keyframes fade {\n from {\n opacity: .4\n }\n to {\n opacity: 1\n }\n}\n\n@keyframes fade {\n from {\n opacity: .4\n }\n to {\n opacity: 1\n }\n}\n</style>\n","function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {\r\n if (typeof shadowMode !== 'boolean') {\r\n createInjectorSSR = createInjector;\r\n createInjector = shadowMode;\r\n shadowMode = false;\r\n }\r\n // Vue.extend constructor export interop.\r\n const options = typeof script === 'function' ? script.options : script;\r\n // render functions\r\n if (template && template.render) {\r\n options.render = template.render;\r\n options.staticRenderFns = template.staticRenderFns;\r\n options._compiled = true;\r\n // functional template\r\n if (isFunctionalTemplate) {\r\n options.functional = true;\r\n }\r\n }\r\n // scopedId\r\n if (scopeId) {\r\n options._scopeId = scopeId;\r\n }\r\n let hook;\r\n if (moduleIdentifier) {\r\n // server build\r\n hook = function (context) {\r\n // 2.3 injection\r\n context =\r\n context || // cached call\r\n (this.$vnode && this.$vnode.ssrContext) || // stateful\r\n (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional\r\n // 2.2 with runInNewContext: true\r\n if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {\r\n context = __VUE_SSR_CONTEXT__;\r\n }\r\n // inject component styles\r\n if (style) {\r\n style.call(this, createInjectorSSR(context));\r\n }\r\n // register component module identifier for async chunk inference\r\n if (context && context._registeredComponents) {\r\n context._registeredComponents.add(moduleIdentifier);\r\n }\r\n };\r\n // used by ssr in case component is cached and beforeCreate\r\n // never gets called\r\n options._ssrRegister = hook;\r\n }\r\n else if (style) {\r\n hook = shadowMode\r\n ? function (context) {\r\n style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));\r\n }\r\n : function (context) {\r\n style.call(this, createInjector(context));\r\n };\r\n }\r\n if (hook) {\r\n if (options.functional) {\r\n // register for functional component in vue file\r\n const originalRender = options.render;\r\n options.render = function renderWithStyleInjection(h, context) {\r\n hook.call(context);\r\n return originalRender(h, context);\r\n };\r\n }\r\n else {\r\n // inject component registration as beforeCreate hook\r\n const existing = options.beforeCreate;\r\n options.beforeCreate = existing ? [].concat(existing, hook) : [hook];\r\n }\r\n }\r\n return script;\r\n}\n\nexport default normalizeComponent;\n//# sourceMappingURL=normalize-component.mjs.map\n","const isOldIE = typeof navigator !== 'undefined' &&\r\n /msie [6-9]\\\\b/.test(navigator.userAgent.toLowerCase());\r\nfunction createInjector(context) {\r\n return (id, style) => addStyle(id, style);\r\n}\r\nlet HEAD;\r\nconst styles = {};\r\nfunction addStyle(id, css) {\r\n const group = isOldIE ? css.media || 'default' : id;\r\n const style = styles[group] || (styles[group] = { ids: new Set(), styles: [] });\r\n if (!style.ids.has(id)) {\r\n style.ids.add(id);\r\n let code = css.source;\r\n if (css.map) {\r\n // https://developer.chrome.com/devtools/docs/javascript-debugging\r\n // this makes source maps inside style tags work properly in Chrome\r\n code += '\\n/*# sourceURL=' + css.map.sources[0] + ' */';\r\n // http://stackoverflow.com/a/26603875\r\n code +=\r\n '\\n/*# sourceMappingURL=data:application/json;base64,' +\r\n btoa(unescape(encodeURIComponent(JSON.stringify(css.map)))) +\r\n ' */';\r\n }\r\n if (!style.element) {\r\n style.element = document.createElement('style');\r\n style.element.type = 'text/css';\r\n if (css.media)\r\n style.element.setAttribute('media', css.media);\r\n if (HEAD === undefined) {\r\n HEAD = document.head || document.getElementsByTagName('head')[0];\r\n }\r\n HEAD.appendChild(style.element);\r\n }\r\n if ('styleSheet' in style.element) {\r\n style.styles.push(code);\r\n style.element.styleSheet.cssText = style.styles\r\n .filter(Boolean)\r\n .join('\\n');\r\n }\r\n else {\r\n const index = style.ids.size - 1;\r\n const textNode = document.createTextNode(code);\r\n const nodes = style.element.childNodes;\r\n if (nodes[index])\r\n style.element.removeChild(nodes[index]);\r\n if (nodes.length)\r\n style.element.insertBefore(textNode, nodes[index]);\r\n else\r\n style.element.appendChild(textNode);\r\n }\r\n }\r\n}\n\nexport default createInjector;\n//# sourceMappingURL=browser.mjs.map\n","import Carousel from './Carousel.vue'\n\nexport default function install (Vue) {\n if (install.installed) return\n install.installed = true\n Vue.component('VueEasyCarousel', Carousel)\n}\n\n// auto install\nif (typeof window !== 'undefined' && typeof window.Vue !== 'undefined') {\n window.Vue.use(install)\n}\n"],"names":["script","name","data","slideIndex","intervalId","props","myImages","type","Array","required","default","showText","Boolean","showDots","showArrows","timeSlide","Number","animation","String","mounted","_this","this","setInterval","nextSlide","beforeDestroy","clearInterval","methods","n","newIndex","length","currentSlide","normalizeComponent","template","style","scopeId","isFunctionalTemplate","moduleIdentifier","shadowMode","createInjector","createInjectorSSR","createInjectorShadow","options","hook","render","staticRenderFns","_compiled","functional","_scopeId","context","$vnode","ssrContext","parent","__VUE_SSR_CONTEXT__","call","_registeredComponents","add","_ssrRegister","$root","$options","shadowRoot","originalRender","h","existing","beforeCreate","concat","isOldIE","navigator","test","userAgent","toLowerCase","id","css","group","media","styles","ids","Set","has","code","source","map","sources","btoa","unescape","encodeURIComponent","JSON","stringify","element","document","createElement","setAttribute","undefined","HEAD","head","getElementsByTagName","appendChild","push","styleSheet","cssText","filter","join","index","size","textNode","createTextNode","nodes","childNodes","removeChild","insertBefore","addStyle","install","Vue","installed","component","Carousel","window","use"],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vue-easy-carousel",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A responsive and easy slideshow/carousel for Vue.js",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"scripts": {
|
|
8
8
|
"dev": "vue serve src/Carousel.vue",
|
|
9
|
-
"build": "bili
|
|
9
|
+
"build": "npx bili"
|
|
10
10
|
},
|
|
11
11
|
"files": [
|
|
12
12
|
"dist/*"
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"homepage": "https://fsenaweb.me",
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"rollup-plugin-vue": "^5.1.
|
|
32
|
+
"rollup-plugin-vue": "^5.1.9",
|
|
33
33
|
"vue-template-compiler": "^2.6.11"
|
|
34
34
|
}
|
|
35
35
|
}
|