Skip to content

Commit 304446f

Browse files
committed
1.0.3
1 parent 8e1b707 commit 304446f

File tree

2 files changed

+26
-14
lines changed

2 files changed

+26
-14
lines changed

index.js

Lines changed: 25 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -319,9 +319,13 @@ var ssr_carousel_arrowsvue_type_template_id_f7877eda_lang_pug_render = function
319319
},
320320
},
321321
[
322-
_vm.$scopedSlots.back
323-
? _vm._t("back", null, { disabled: _vm.backDisabled })
324-
: _c("span", { staticClass: "ssr-carousel-back-icon" }),
322+
_vm._t(
323+
"back",
324+
function () {
325+
return [_c("span", { staticClass: "ssr-carousel-back-icon" })]
326+
},
327+
{ disabled: _vm.backDisabled }
328+
),
325329
],
326330
2
327331
),
@@ -337,9 +341,13 @@ var ssr_carousel_arrowsvue_type_template_id_f7877eda_lang_pug_render = function
337341
},
338342
},
339343
[
340-
_vm.$scopedSlots.next
341-
? _vm._t("next", null, { disabled: _vm.nextDisabled })
342-
: _c("span", { staticClass: "ssr-carousel-next-icon" }),
344+
_vm._t(
345+
"next",
346+
function () {
347+
return [_c("span", { staticClass: "ssr-carousel-next-icon" })]
348+
},
349+
{ disabled: _vm.nextDisabled }
350+
),
343351
],
344352
2
345353
),
@@ -523,9 +531,13 @@ var ssr_carousel_dotsvue_type_template_id_6b089f93_lang_pug_render = function ()
523531
},
524532
},
525533
[
526-
_vm.$scopedSlots.dot
527-
? _vm._t("dot", null, { index: i, disabled: _vm.isDisabled(i) })
528-
: _c("span", { staticClass: "ssr-carousel-dot-icon" }),
534+
_vm._t(
535+
"dot",
536+
function () {
537+
return [_c("span", { staticClass: "ssr-carousel-dot-icon" })]
538+
},
539+
{ index: i, disabled: _vm.isDisabled(i) }
540+
),
529541
],
530542
2
531543
)
@@ -1688,10 +1700,10 @@ Code related to changing the slides per page at different viewport widths
16881700
}
16891701
},
16901702
computed: {
1691-
// Make the scopeId from the based on hashing the props. If the props are
1692-
// the same for two instances, it's fine for them to have the same scopeId.
1703+
// Make the css scopeId from things that can influence the styles, like the
1704+
// slides count and props.
16931705
scopeId: function () {
1694-
return this.hashString(JSON.stringify(this.$props));
1706+
return this.hashString(this.slidesCount + '|' + JSON.stringify(this.$props));
16951707
},
16961708
// Massage media queries into the responsive prop
16971709
responsiveRules: function () {
@@ -1771,7 +1783,7 @@ Code related to changing the slides per page at different viewport widths
17711783
},
17721784
// Make the block of styles for a breakpoint
17731785
makeBreakpointStyles: function (breakpoint) {
1774-
return this.makeBreakpointDisablingRules(breakpoint) + this.makeBreakpointFeatheringStyle(breakpoint) + this.makeBreakpointTrackTransformStyle(breakpoint) + this.makeBreakpointWidthStyle(breakpoint) + this.makeBreakpointSlideGutterStyle(breakpoint);
1786+
return [this.makeBreakpointDisablingRules(breakpoint), this.makeBreakpointFeatheringStyle(breakpoint), this.makeBreakpointTrackTransformStyle(breakpoint), this.makeBreakpointWidthStyle(breakpoint), this.makeBreakpointSlideGutterStyle(breakpoint)].join(' ');
17751787
},
17761788
// Apply disabling styles via breakpoint when there are not enough slides
17771789
// for the slidesPerPage

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-ssr-carousel",
3-
"version": "1.0.2",
3+
"version": "1.0.3",
44
"description": "A performance focused Vue carousel designed for SSR/SSG environments.",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)