小编Har*_*rry的帖子

如何使滑动滑块响应角度

我的角度项目中有一个滑动滑块。在桌面视图中有4个项目。我希望在移动设备视图中有1个项目。检查此链接

https://stackblitz.com/edit/ngx-swiper-wrapper-demo-h9egdh?file=app/app.component.ts

演示.ts代码在这里

public slides = [
    'First slide',
    'Second slide',
    'Third slide',
    'Fourth slide',
    'Fifth slide',
    'Sixth slide'
  ];

  public type: string = 'component';

  public disabled: boolean = false;

  public config: SwiperConfigInterface = {
    direction: 'horizontal',
    slidesPerView: 4,
    keyboard: true,
    mousewheel: true,
    scrollbar: false,
    navigation: true,
    pagination: false
  };
Run Code Online (Sandbox Code Playgroud)

slider typescript swiper angular angular6

4
推荐指数
1
解决办法
1069
查看次数

标签 统计

angular ×1

angular6 ×1

slider ×1

swiper ×1

typescript ×1