Commit 171c264d authored by afc163's avatar afc163 Committed by 偏右

hideChildren => hidenChildrenInMenu

parent e235ca5d
......@@ -42,7 +42,7 @@ module.exports = [
path: '/form/step-form',
name: 'stepform',
component: './Forms/StepForm',
hideChildren: true,
hideChildrenInMenu: true,
routes: [
{
path: '/form/step-form',
......
......@@ -77,8 +77,8 @@ export default class BaseMenu extends PureComponent {
* get SubMenu or Item
*/
getSubMenuOrItem = item => {
// doc: add hideChildren
if (item.children && !item.hideChildren && item.children.some(child => child.name)) {
// doc: add hideChildrenInMenu
if (item.children && !item.hideChildrenInMenu && item.children.some(child => child.name)) {
const name = formatMessage({ id: item.locale });
return (
<SubMenu
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment