vue项目使用3D方块效果怎么给它加监听

查看数: 2377 | 评论数: 1 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2018-1-30 16:23

正文摘要:

<template>         <md-card>             <md-card-media class="swiper-inner">             &nb ...

回复

蒋跑跑跑~ 发表于 2018-1-31 08:47:06
自问自答
  1.     data() {
  2.       return {
  3.         swiperOption: {
  4.           effect: 'cube',
  5.           grabCursor: true,
  6.           observeParents:true,
  7.           cubeEffect: {
  8.             shadow: true,
  9.             slideShadows: true,
  10.             shadowOffset: 20,
  11.             shadowScale: 0.94
  12.           },
  13.           runCallbacksOnInit : false,//初始化时不触发slideChange
  14.           on:{
  15.             slideChangeTransitionEnd: function(){
  16.               localStorage.setItem('bannerIndex',this.activeIndex)
  17.             },
  18.           }
  19.         },
  20.       }
  21.     },
复制代码

Archiver|手机版|小黑屋|Swiper中文网 ( 粤ICP备15001020号

GMT+8, 2024-9-30 09:35 , Processed in 0.068138 second(s), 31 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表