当前位置: 首页 > news >正文

swiper 点击事件

点击swiper 获取当前下标 两种模式 "swiper": "^5.4.5", "vue-awesome-swiper": "^3.1.3",swiperOption: {autoplay: { delay: 3000 },loop: true, //循环slidesPerView: 'auto',direction: "vertical",disableOnInteraction: true,preventLinksPropagation: false,on: {click: () => {console.log(this.$refs.swiperRef.swiper.realIndex);           },}},swiperOption: {autoplay: { delay: 3000 },loop: false, //不循环slidesPerView: 'auto',direction: "vertical",disableOnInteraction: true,preventLinksPropagation: false,on: {click: () => {console.log(this.$refs.swiperRef.swiper.clickedIndex);           },}},

http://www.lryc.cn/news/56426.html

相关文章:

  • 旅游心得Traveling Experience
  • 【 SpringBoot ⽇志⽂件 】
  • ThinkPHP路由不转换的原因及解决方法
  • 【案例教程】基于RWEQ模型的土壤风蚀模数估算及其变化归因分析实践技术
  • Twitter推荐算法总架构和算法说明
  • 1.C语言题目---指针类(基础)
  • 【算法与数据结构】关于排序的问题思考
  • 行为型模式-命令模式
  • SHELL综合练习1
  • ROS开发之如何使用发布者、订阅者和话题消息?
  • 基于Java+Springboot+vue高校资源共享交流平台设计和实现
  • 收藏! 38个Python数据科研库
  • SpringBoot过滤器获取Bean-请求重复可读-获取请求体数据-用户IP归属地获取
  • 有哪些特别小众而有趣的编程语言呢?
  • vue中使用高德
  • React class组件和hooks setState异步更新数据详解
  • ToBeWritten之嵌入式操作系统
  • git 实际开发中使用-解决问题
  • 新星计划·2023-第1期 - Python赛道报名入口 -〖你就是下一个新星〗
  • Android LowMemoryKiller概述
  • 特殊操作流——案例:游戏次数
  • git clone connect to gitlab sign in token弹窗让我输入用户名和密码
  • 【Blender】如何在Blender中添加HDRI环境贴图
  • 前端监控指的是什么?
  • .net core 面试题 2023
  • 和ChatGPT关于Swing music的一场对话(上篇)
  • java版工程项目管理系统源码 Spring Cloud+Spring Boot+Mybatis+Vue+ElementUI+前后端分离 功能清单
  • debian 10 扩展分区容量
  • 【无功优化】基于改进遗传算法的电力系统无功优化研究【IEEE30节点】(Matlab代码实现)
  • LeetCode 218. 天际线问题