Merge branch master into develop-1.0.0

This commit is contained in:
afc163 2016-04-11 11:31:35 +08:00
commit bb1c6b862c
2 changed files with 2 additions and 1 deletions

View File

@ -27,6 +27,7 @@ export default class Breadcrumb extends React.Component {
if (routes && routes.length > 0) {
const paths = [];
crumbs = routes.map((route, i) => {
route.path = route.path || '';
let path = route.path.replace(/^\//, '');
Object.keys(params).forEach(key => {
path = path.replace(`:${key}`, params[key]);

View File

@ -37,7 +37,7 @@ english: Menu
| defaultOpenKeys | 初始展开的菜单项 key 数组 | | |
| onSelect | 被选中时调用,参数 {item, key, selectedKeys} 对象 | function | 无 |
| onDeselect | 取消选中时调用,参数 {item, key, selectedKeys} 对象,仅在 multiple 生效 | function | 无 |
| onClick | 点击 menuitem 调用此函数,参数为 {item, key} | function | 无 |
| onClick | 点击 menuitem 调用此函数,参数为 {item, key, keyPath} | function | 无 |
| style | 根节点样式 | object | | |
### Menu.Item props