0.0.5 • Published 4 years ago

data-tab-board v0.0.5

Weekly downloads
6
License
MIT
Repository
github
Last release
4 years ago

data-tab-board

React data-tab-board

NPM version build status

node version npm download

Screenshot

Browsers support

IE / EdgeFirefoxChromeSafariOpera
IE 8 + ✔Firefox 31.0+ ✔Chrome 31.0+ ✔Safari 7.0+ ✔Opera 30.0+ ✔

Install

data-tab-board

Usage

var Board = require('data-tab-board');
var React = require('react');
var ReactDOM = require('react-dom');

ReactDOM.render(<Board title='' dataSource={[]} />, container);

Examples

npm start and then go to http://localhost:8000

Online examples: github-pages or vercel

API

Props

nametypedefaultdescription
style?React.CSSProperties{}custom container style
title?string''custom title style
description?string''custom charts description
activenumberstring1active tab
dateTypenumberstring按天:1 |按小时 :2 default: 1
dataSource{value:'', type: '', date: ''}[][]chart data
showExport?booleantrue是否显示导出
rangeValueMoment, MomentmomentdateType:1 时开始结束时间
onTabChange?functionvoidhandle tab change
onDatesChangefunctionvoidhandle dates change when dateType=1
onDateChangefunctionvoidhandle dates change when dateType=2
onDateOpenChangefunctionvoidhandle date panel open callback
onDateTypeChangefunctionvoidhandle date type change callback
onExport?functionvoidhandle export

Development

npm install
npm start

Test Case

npm test
npm run chrome-test

Coverage

npm run coverage

License

data-tab-board is released under the MIT license.