Socket
Socket
Sign inDemoInstall

vue-timeline

Package Overview
Dependencies
10
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vue-timeline

a simple time line for vue2


Version published
Weekly downloads
15
decreased by-62.5%
Maintainers
1
Install size
20.8 MB
Created
Weekly downloads
 

Readme

Source

Vue-timeline

It just a simple time line component for vue 2.0
source code from click me!

  • Data from json
  • Responsive

Requirement

  • npm
  • vue2.0.1+
  • bootstrap3

That's all.

Installation

  1. Binding properties
<timeLine :points="points"></timeLine>
  1. Config the points (all can be ignored)
points: [
          {
            pointColor: 'red', // important! the color of every time point and you can use red yellow or green *关键点颜色 可选red yellow green
            img: 'http://www.jikexueyuan.com/event/static/images/bootstrap/bootstrap-logo.png', // img url for every time point 图片地址 可留空
            title: 'hello world', // important! title *时间点标题
            text: 'first post', // important! the content you want show *时间点内容
            linkUrl: 'https://www.google.com', // url for read more 链接url 留空则不显示按钮
            linkText: 'Read detail', // show what in read for more button 按钮显示内容 默认为Read more
            date: '2017-1-1' // time of the point 时间点
          }
        ]
  1. Get the current time point's all parameters you write
<timeLine @currentPoint="your function"></timeLine>

Custom

Incoming

To Do List

  • config for max showing points

FAQs

Last updated on 28 Feb 2017

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