0.0.3 • Published 8 years ago

rs-timeline v0.0.3

Weekly downloads
1
License
MIT
Repository
-
Last release
8 years ago

Reacr Salt - Timeline 时间轴

用途

  • 当有一系列信息需要从上至下按时间排列时;
  • 需要有一条时间轴进行视觉上的串联时;

用法

import Timeline from 'rs-timeline';

<Timeline {...data} />

Data数据结构

{
	pending : true,
	items	: [{
		texts  : ['heheheheheheaa'],
		color  : 'blue'
	},{
		texts  : ['hehehehehhe','hehehehehhe'],
		color  : 'red'
	},{
		texts  : ['yeyeyeyeyeye'],
		color  : 'green'
	},{
		texts  : ['diudiudiudiud'],
		color  : 'blue'
	}]
}

API

参数说明类型默认值可选值
pending幽灵节点boolfalse
items节点对象数组array[]
color节点状态stringblueblue,green,red
texts节点展示文本array[]