1.0.1 • Published 5 years ago
comp-breadcrumb v1.0.1
comp-breadcrumb
API
属性 | 说明 | 类型 | 默认值 |
---|---|---|---|
dataSource | 面包屑数据 | Array | |
style | 自定义样式 | Object |
Example
import React from 'react';
import { render } from 'react-dom';
import CompBreadcrumb from 'comp-breadcrumb';
const data = [
{
title: '首页',
link: 'home.html'
},
{
title: '酒店列表页',
link: 'list.html'
},
{
title: '酒店详情页'
}
];
render(
<CompBreadcrumb
dataSource={data}
style={{fontSize: '14px'}}
/>,
document.getElementById('app')
);
Develop
$ npm run start
Publish
$ cd ../.. // 返回项目根目录,通过 `lerna` 来构建与发布
$ npm run build
$ npm publish