mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-11-30 02:59:04 +08:00
Merge branch master into develop-1.0.0
This commit is contained in:
commit
bb1c6b862c
@ -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]);
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user