Socket
Socket
Sign inDemoInstall

vue-simple-timeline

Package Overview
Dependencies
0
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    vue-simple-timeline

A simple vue timeline component


Version published
Weekly downloads
477
increased by57.95%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

vue-simple-timeline

A lightweight timeline components for vue2

Travis branch download version license

install

yarn add vue-simple-timeline

if you prefer npm:

npm i vue-simple-timeline

usage

import Vue from 'vue';
import SimpleTimeline from 'vue-simple-timeline';

Vue.use(SimpleTimeline);
<template>
  <simple-timeline :items='items'></simple-timeline>
</template>
<script>
export default {
  data () {
    return {
      items: [
        {
          tag: '2018-01-12',
          content: 'Hello. You can use <b>FULL</b> HTML here, be sure to sanitize<br/>if you are using user input!',
          footer: 'Stuff you want to appear in the footer'
        },
        {
          tag: '2018-01-13',
          color: '#dcdcdc',
          type: 'circle',
          content: 'world'
        },
        {
          type: 'star',
          tag: '2018-01-14',
          content: '=v ='
        }
      ]
    }
  }
}
</script>

Demo

https://sme-fe.github.io/vue-light-timeline/#/

Hei, let's gonna try it online, have fun ~~

Edit vue-light-timeline example

demo screenshot

许昕

docs

Attributes

AttributeDescriptionTypeAccepted valuesDefault
itemstimeline content dataArray----

items

AttributeDescriptionTypeAccepted valuesDefault
tagitem tagString----
contentitem contentString----
typepoint typeStringcircle, starcircle
colorpoint colorStringpurple,orange,yellow,or hex colors RGB colors so on...purple

Attributes

参数说明类型可选值默认值
itemstimeline 需要展示的数据Array----

items

参数说明类型可选值默认值
tagitem 标签(可选)String----
contentitem 内容String----
typepoint 类型Stringcircle, starcircle
colorpoint 颜色Stringpurple,orange,yellow,or hex colors RGB colors so on...purple

Contributors

Thanks goes to these wonderful people (emoji key):


hwen

🤔 💻 🎨 📖 💡

luyilin

🤔 💻

This project follows the [all-contributors][all-contributors] specification. Contributions of any kind are welcome!

License

MIT License

Copyright (c) 2017-present, hwen hwenleung@gmail.com

Keywords

FAQs

Last updated on 28 May 2018

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