comp-tabs
v1.0.2
Published
basic react component
Downloads
3
Readme
comp-tabs
API
| 属性 | 说明 | 类型 | 默认值 | | ---- | ---- | ---- | ---- | | dataSource | 数据源 | Array | |
Example
import React from 'react';
import { render } from 'react-dom';
import CompTabs from 'comp-tabs';
const data = [
{
title: '酒店资料',
id: '1',
selected: true
},
{
title: '价格计划',
id: '2',
link: 'price.html'
},
{
title: '供应商价格',
id: '3',
link: 'supplier.html'
}
];
render(
<CompTabs dataSource={data} />,
document.getElementById('app')
);
Develop
$ npm run start
Publish
$ cd ../.. // 返回项目根目录,通过 `lerna` 来构建与发布
$ npm run build
$ npm publish