Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
171c264d
Commit
171c264d
authored
Aug 30, 2018
by
afc163
Committed by
εε³
Aug 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hideChildren => hidenChildrenInMenu
parent
e235ca5d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
config/router.config.js
config/router.config.js
+1
-1
src/components/SiderMenu/BaseMenu.js
src/components/SiderMenu/BaseMenu.js
+2
-2
No files found.
config/router.config.js
View file @
171c264d
...
@@ -42,7 +42,7 @@ module.exports = [
...
@@ -42,7 +42,7 @@ module.exports = [
path
:
'
/form/step-form
'
,
path
:
'
/form/step-form
'
,
name
:
'
stepform
'
,
name
:
'
stepform
'
,
component
:
'
./Forms/StepForm
'
,
component
:
'
./Forms/StepForm
'
,
hideChildren
:
true
,
hideChildren
InMenu
:
true
,
routes
:
[
routes
:
[
{
{
path
:
'
/form/step-form
'
,
path
:
'
/form/step-form
'
,
...
...
src/components/SiderMenu/BaseMenu.js
View file @
171c264d
...
@@ -77,8 +77,8 @@ export default class BaseMenu extends PureComponent {
...
@@ -77,8 +77,8 @@ export default class BaseMenu extends PureComponent {
* get SubMenu or Item
* get SubMenu or Item
*/
*/
getSubMenuOrItem
=
item
=>
{
getSubMenuOrItem
=
item
=>
{
// doc: add hideChildren
// doc: add hideChildren
InMenu
if
(
item
.
children
&&
!
item
.
hideChildren
&&
item
.
children
.
some
(
child
=>
child
.
name
))
{
if
(
item
.
children
&&
!
item
.
hideChildren
InMenu
&&
item
.
children
.
some
(
child
=>
child
.
name
))
{
const
name
=
formatMessage
({
id
:
item
.
locale
});
const
name
=
formatMessage
({
id
:
item
.
locale
});
return
(
return
(
<
SubMenu
<
SubMenu
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment