All Projects → SME-FE → vue-light-timeline

SME-FE / vue-light-timeline

Licence: MIT license
A mobile first lightweight vue timeline components

Programming Languages

Vue
7211 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to vue-light-timeline

react-native-beautiful-timeline
Fully customizable, beautifully designed Timeline for React Native.
Stars: ✭ 111 (+26.14%)
Mutual labels:  timeline, timeline-component
vertical-timeline-component-react
A Timeline Component for React.js
Stars: ✭ 42 (-52.27%)
Mutual labels:  timeline, timeline-component
React Chrono
🕜 Modern Timeline component for React
Stars: ✭ 2,873 (+3164.77%)
Mutual labels:  timeline, timeline-component
notifyme
react-notification-timeline is a react based component helps in managing the notification in time-based manner.
Stars: ✭ 94 (+6.82%)
Mutual labels:  timeline, timeline-component
react-timeline
The easiest way to add a responsive and customizable timeline to React apps
Stars: ✭ 68 (-22.73%)
Mutual labels:  timeline, timeline-component
lucafail-timeline
A chronological overview of the Luca App based on recent coverage in online and print media, statements from IT and security experts, discussions in social media, talks and videos, Gitlab-issues as well as freedom of information requests on fragdenstaat.de
Stars: ✭ 23 (-73.86%)
Mutual labels:  timeline
Zeitline
A polylinear timeline with clustering, centred on interactions. — Doc and demo https://octree-gva.github.io/Zeitline/
Stars: ✭ 15 (-82.95%)
Mutual labels:  timeline
VideoTimelineView
Video timeline UI for iOS Apps
Stars: ✭ 103 (+17.05%)
Mutual labels:  timeline
vertical-timeline
Responsive, jQuery-based vertical timeline generator
Stars: ✭ 75 (-14.77%)
Mutual labels:  timeline
xivtlsheet
ACT、FFLogsを使い、FF14 零式コンテンツのタイムラインスプレッドシートを作成
Stars: ✭ 39 (-55.68%)
Mutual labels:  timeline
croncal
Utility to convert a crontab file to a list of actual events within a date range.
Stars: ✭ 37 (-57.95%)
Mutual labels:  timeline
stream-ruby
Ruby Client - Build Activity Feeds & Streams with GetStream.io
Stars: ✭ 81 (-7.95%)
Mutual labels:  timeline
com.pixelwizards.utilities
Some Unity utilities (UV tools, resource checker etc) packaged for Unity's Package Manager
Stars: ✭ 61 (-30.68%)
Mutual labels:  timeline
pyrocket
A tool for synchronizing music and visuals in demoscene productions
Stars: ✭ 17 (-80.68%)
Mutual labels:  timeline
TimelineView
No description or website provided.
Stars: ✭ 18 (-79.55%)
Mutual labels:  timeline
ForensicsTools
A list of free and open forensics analysis tools and other resources
Stars: ✭ 392 (+345.45%)
Mutual labels:  timeline
plato
Plato is a unity extension skill system.The editor is somehow like the timeline editor.Feel free to use it.
Stars: ✭ 96 (+9.09%)
Mutual labels:  timeline
quasar-ui-qactivity
Create activity timeline
Stars: ✭ 38 (-56.82%)
Mutual labels:  timeline-component
Get-NetworkConnection
Edited version of Lee Christensen's Get-NetworkConnection which includes timestamp for each network connection
Stars: ✭ 34 (-61.36%)
Mutual labels:  timeline
WELA
WELA (Windows Event Log Analyzer): The Swiss Army knife for Windows Event Logs! ゑ羅(ウェラ)
Stars: ✭ 442 (+402.27%)
Mutual labels:  timeline

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>
  • slot

Or you can pass slots for each part of the timeline:

<template>
  <light-timeline :items='items'>
    <template slot='tag' slot-scope='{ item }'>
      {{item.date}}
    </template>
    <template slot='symbol' slot-scope='{ item }'>
      <div class="my_icon_class"><i :class="item.class"></i></div>
    </template>
    <template slot='content' slot-scope='{ item }'>
      {{item.content}}
    </template>
  </light-timeline>
</template>
<script>
export default {
  data () {
    return {
      items: [
        {
          tag: '2018-01-12',
          content: 'hallo',
          class: 'fas fa-star'
        },
        {
          tag: '2018-01-13',
          content: 'world',
          class: 'far fa-star'
        },
        {
          tag: '2018-01-14',
          content: 'other',
          class: 'fas fa-star'
        }
      ]
    }
  }
}
</script>

here is example demo and code

Demo

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

Edit vue-light-timeline example

demo screenshot

许昕

docs

Attributes

Attribute Description Type Accepted values Default
items timeline content data Array -- --

items

Attribute Description Type Accepted values Default
tag item tag String -- --
content item content String -- --
htmlMode output real HTML as content Boolean -- false
type point type String circle, star circle
color point color String purple,orange,yellow,or hex colors RGB colors so on... purple

slot

  • tag: slot='tag' replace the default tag
  • symbol: slot='symbol' replace the default icon
  • content: slot='content' replace the default content

Attributes

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

items

参数 说明 类型 可选值 默认值
tag item 标签(可选) String -- --
content item 内容 String -- --
htmlMode 是否HTML字串 Boolean -- false
type point 类型 String circle, star circle
color point 颜色 String purple,orange,yellow,or hex colors RGB colors so on... purple

slot 插槽

  • tag: slot='tag' 替换原先的标签
  • symbol: slot='symbol' 替换原先的图标
  • content: slot='content' 替换原先的内容

Contributors

Thanks goes to these wonderful people (emoji key):


hwencc

💻 🤔 💡 📖

luyilin

💻 🤔

vratojr

💻 🤔 📖

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

License

MIT License

Copyright (c) 2017-present, hwen [email protected]

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].