File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -144,8 +144,8 @@ export default {
144144 default: false
145145 },
146146 slideMultiple: {
147- type: Number ,
148- default: 1
147+ type: [ Boolean , Number ] ,
148+ default: false
149149 },
150150 visibleSlides: {
151151 type: Number ,
@@ -786,12 +786,16 @@ export default {
786786
787787 // Overrides: once config from breakpoints is imported, we can use the conf object
788788 // and be sure all the options are up to date.
789+ // -------------------------------//
790+ conf .slideMultiple = conf .slideMultiple ? conf .visibleSlides : 1
791+
789792 if (conf .fade || conf .disableArrowsOnEdges || conf .visibleSlides > 1 ) {
790793 conf .infinite = false
791794 }
792795
793796 conf .arrowsOutside = conf .arrowsOutside || (conf .visibleSlides > 1 && conf .arrowsOutside === null )
794797 conf .bulletsOutside = conf .bulletsOutside || (conf .visibleSlides > 1 && conf .bulletsOutside === null )
798+ // -------------------------------//
795799
796800 return conf
797801 },
You can’t perform that action at this time.
0 commit comments