Oksydan / falcon

Prestashop starter theme that provides great development experience.
GNU General Public License v3.0
263 stars 63 forks source link

🐛 [BUG] - błąd Swiper Grid #425

Open elviss3 opened 2 months ago

elviss3 commented 2 months ago

Description

nie działa Swiper Grid

Node.js version

v15

php version

v8.1

OS and it's version

Windows Xampp/serwer

Browsers

Firefox

Required module/theme

Falkon 3.1.2

Reproduction steps

1. Go to 'theme/templates/components/featured-products.tpl'
2. Add to: 
$sliderConfig = [
'grid' => [
              'rows' => 2,
              'fill' => 'row' // or 'column'
          ],
]

3. go to _dev > components/sliders/SwiperSlider.js
- add to 'dynamicModulesMap':
grid: new DynamicImportSwiperModule(
      () => [
        import('@node_modules/swiper/modules/grid/grid.js'),
        import('@node_modules/swiper/modules/grid/grid.scss'),
      ],
  ),

then 

'fill' => 'row' is working, but 'fill' => 'column' puts items in one vertical row

Logs

No response