1.0.0 • Published 3 months ago

vue-timeline-customizable v1.0.0

Weekly downloads
-
License
BSD
Repository
github
Last release
3 months ago

npm.io

Vue-timeline

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

  • Data from json
  • Responsive

npm.io npm.io

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 *时间点标题
            titleClass: ['text-black'],
            text: 'first post', // important! the content you want show *时间点内容
            textClass: ['text-black'],
            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 时间点,
            dateClass: ['text-black'] //class that will be applied to date container
            contentClass: ['text-black'] //class that will be applied to content container
          }
        ]
  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
1.0.0

3 months ago

0.1.11

1 year ago

0.1.12

1 year ago

0.1.13

1 year ago

0.1.10

2 years ago

0.1.8

2 years ago

0.1.9

2 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.7

3 years ago

0.1.4

3 years ago

0.1.3

3 years ago

0.1.6

3 years ago

0.1.5

3 years ago

0.1.0

3 years ago