File tree Expand file tree Collapse file tree
packages/ek-components/src/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11<template >
22 <b-container
33 class =" mb-5 mt-3 section-container"
4- :fluid =" variant === 'slidable-new'"
5- :class =" { 'no-container-padding': variant === 'slidable' || variant === 'slidable-new' }"
4+ :fluid =" displayVariant === 'EkSlidableCardGridNew'"
5+ :class =" { 'no-container-padding': (
6+ displayVariant === 'EkSlidableCardGrid' ||
7+ displayVariant === 'EkSlidableCardGridNew'
8+ ) }"
69 >
710 <slot ></slot >
811
@@ -65,6 +68,10 @@ export default {
6568 },
6669 computed: {
6770 displayVariant () {
71+ if (this .itemsPerPage >= this .nodes .length || this .itemsPerSlide .lg >= this .nodes .length ) {
72+ // There is no need to display a more complex component if there is no pagination:
73+ return ' EkGridPage' ;
74+ }
6875 switch (this .variant ) {
6976 case ' collapsible' :
7077 return ' EkCollapsibleCardGrid' ;
You can’t perform that action at this time.
0 commit comments