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
2f1c4631
Unverified
Commit
2f1c4631
authored
Feb 04, 2019
by
陈帅
Committed by
GitHub
Feb 04, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
style: prettier SiderMenu.js (#3501)
* style: prettier SiderMenu.js * new config file
parent
18c1ac60
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
10 deletions
+11
-10
azure-pipelines.yml
azure-pipelines.yml
+10
-6
src/components/SiderMenu/SiderMenu.js
src/components/SiderMenu/SiderMenu.js
+1
-4
No files found.
azure-pipelines.yml
View file @
2f1c4631
...
@@ -5,10 +5,7 @@
...
@@ -5,10 +5,7 @@
name
:
ant design pro
name
:
ant design pro
trigger
:
trigger
:
batch
:
true
-
master
branches
:
exclude
:
-
gh-pages
jobs
:
jobs
:
-
job
:
lintAndBuild
-
job
:
lintAndBuild
...
@@ -18,13 +15,14 @@ jobs:
...
@@ -18,13 +15,14 @@ jobs:
steps
:
steps
:
-
checkout
:
self
-
checkout
:
self
fetchDepth
:
1
clean
:
false
clean
:
false
-
script
:
yarn install
-
script
:
yarn install
displayName
:
install
displayName
:
install
-
script
:
npm run lint
-
script
:
npm run lint
displayName
:
lint
displayName
:
lint
-
script
:
npm run build
-
script
:
npm run build
env
:
PROGRESS
:
none
displayName
:
build
displayName
:
build
-
job
:
test
-
job
:
test
...
@@ -42,6 +40,8 @@ jobs:
...
@@ -42,6 +40,8 @@ jobs:
-
script
:
yarn install
-
script
:
yarn install
displayName
:
install
displayName
:
install
-
script
:
npm run test:all
-
script
:
npm run test:all
env
:
PROGRESS
:
none
displayName
:
test
displayName
:
test
-
job
:
Windows
-
job
:
Windows
...
@@ -59,6 +59,8 @@ jobs:
...
@@ -59,6 +59,8 @@ jobs:
-
script
:
npm run lint
-
script
:
npm run lint
displayName
:
lint
displayName
:
lint
-
script
:
npm run build
-
script
:
npm run build
env
:
PROGRESS
:
none
displayName
:
build
displayName
:
build
-
job
:
MacOS
-
job
:
MacOS
...
@@ -75,5 +77,7 @@ jobs:
...
@@ -75,5 +77,7 @@ jobs:
displayName
:
install
displayName
:
install
-
script
:
npm run lint
-
script
:
npm run lint
displayName
:
lint
displayName
:
lint
-
script
:
npm run build
-
script
:
npm run
env
:
PROGRESS
:
none
displayName
:
build
displayName
:
build
src/components/SiderMenu/SiderMenu.js
View file @
2f1c4631
...
@@ -25,10 +25,7 @@ export default class SiderMenu extends PureComponent {
...
@@ -25,10 +25,7 @@ export default class SiderMenu extends PureComponent {
static
getDerivedStateFromProps
(
props
,
state
)
{
static
getDerivedStateFromProps
(
props
,
state
)
{
const
{
pathname
,
flatMenuKeysLen
}
=
state
;
const
{
pathname
,
flatMenuKeysLen
}
=
state
;
if
(
if
(
props
.
location
.
pathname
!==
pathname
||
props
.
flatMenuKeys
.
length
!==
flatMenuKeysLen
)
{
props
.
location
.
pathname
!==
pathname
||
props
.
flatMenuKeys
.
length
!==
flatMenuKeysLen
)
{
return
{
return
{
pathname
:
props
.
location
.
pathname
,
pathname
:
props
.
location
.
pathname
,
flatMenuKeysLen
:
props
.
flatMenuKeys
.
length
,
flatMenuKeysLen
:
props
.
flatMenuKeys
.
length
,
...
...
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