Socket
Socket
Sign inDemoInstall

timeline-carousel

Package Overview
Dependencies
14
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    timeline-carousel

vue时间轴轮播图插件


Version published
Weekly downloads
3
decreased by-86.96%
Maintainers
1
Install size
13.7 MB
Created
Weekly downloads
 

Readme

Source

一个基于vue的时间轴轮播图插件。

DEMO演示

  • 项目演示

使用方式

  • 安装
npm i timeline-carousel --save
  • 在main.js中使用
import timelineCarousel from 'timeline-carousel'
Vue.use(timelineCarousel)
  • 组件中使用
<template>
  <timeline-carousel 
    :timelineList="[{
      id: 1,
      text: '2020-09-28'
    }]"
    :carouselList="[{
      id: 1,
      img: require('./images/1.jpg'),
      title: '陶渊明',
      info: '盛年不重来,一日难再晨。及时宜自勉,岁月不待人。'
    }]"
  />
</template>

属性

名称默认值类型简介注意
themeColor#bd1622String主题色
timelineList[]Array时间轴列表数量需与轮播图列表一致
carouselList[]Array轮播图列表数量需与时间轴列表一致
carouseIsShowtrueBoolean是否显示轮播图
autoPlaytrueBoolean是否自动播放
looptrueBoolean是否循环播放
timelineNum7Number时间轴显示数量
timelineWidth150Number时间轴item宽度默认150宽度,如果更改宽度,组件中展示几个元素需要与timelineNum属性展示数量保持一致
enterActiveClassanimate__animated animate__fadeInLeftString轮播图切换动画animate.css库中任意动画都可以使用
mouseEventfalseBoolean鼠标移入轮播图禁止滚动

事件

名称返回值说明
getCurrentItemgetCurrentItem(index, timelineItem, carouselItem){}(索引值, 时间轴Item, 轮播图Item)

作者信息

FAQs

Last updated on 14 Oct 2020

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc