Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
node-sample
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周韬
node-sample
Commits
e66def83
Commit
e66def83
authored
Nov 30, 2016
by
Evan You
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
disable slide transition for non-pagination navigations
parent
ed76f833
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
ItemList.vue
src/components/ItemList.vue
+4
-2
No files found.
src/components/ItemList.vue
View file @
e66def83
...
@@ -40,7 +40,7 @@ export default {
...
@@ -40,7 +40,7 @@ export default {
const
isInitialRender
=
!
this
.
$root
.
_isMounted
const
isInitialRender
=
!
this
.
$root
.
_isMounted
return
{
return
{
loading
:
false
,
loading
:
false
,
transition
:
'slide-
left
'
,
transition
:
'slide-
up
'
,
// if this is the initial render, directly render with the store state
// if this is the initial render, directly render with the store state
// otherwise this is a page switch, start with blank and wait for data load.
// otherwise this is a page switch, start with blank and wait for data load.
// we need these local state so that we can precisely control the timing
// we need these local state so that we can precisely control the timing
...
@@ -96,7 +96,9 @@ export default {
...
@@ -96,7 +96,9 @@ export default {
this
.
$router
.
replace
(
`/
${
this
.
type
}
/1`
)
this
.
$router
.
replace
(
`/
${
this
.
type
}
/1`
)
return
return
}
}
this
.
transition
=
to
>
from
?
'slide-left'
:
'slide-right'
this
.
transition
=
from
===
-
1
?
null
:
to
>
from
?
'slide-left'
:
'slide-right'
this
.
displayedPage
=
to
this
.
displayedPage
=
to
this
.
displayedItems
=
this
.
$store
.
getters
.
activeItems
this
.
displayedItems
=
this
.
$store
.
getters
.
activeItems
this
.
loading
=
false
this
.
loading
=
false
...
...
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