You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

vue-light-timeline

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-light-timeline

A lightweight vue timeline components

1.0.0
Source
npmnpm
Version published
Weekly downloads
243
-0.41%
Maintainers
1
Weekly downloads
 
Created
Source

vue-light-timeline

A lightweight timeline components for vue2

Travis branch download version license

install

yarn add vue-light-timeline

if you prefer npm:

npm i vue-light-timeline

usage

import Vue from 'vue';
import LightTimeline from 'vue-light-timeline';

Vue.use(LightTimeline);
<template>
  <light-timeline :items='items'></light-timeline>
</template>
<script>
const theme = 'red';
export default {
  data () {
    return {
      items: [
        {
          tag: '2018-01-12',
          content: 'hallo'
        },
        {
          tag: '2018-01-13',
          color: '#dcdcdc',
          type: 'circle',
          content: 'world'
        },
        {
          type: 'star',
          tag: '2018-01-14',
          htmlMode: true,
          content: `<div style="color: ${theme};"> =v = </div>`
        }
      ]
    }
  }
}
</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----
htmlModeoutput real HTML as contentBoolean--false
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

timeline

FAQs

Package last updated on 07 Sep 2018

Did you know?

Socket

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.