Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
study
Project
Project
Details
Activity
Releases
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
Damon
study
Commits
d555a303
Commit
d555a303
authored
Jul 28, 2021
by
Damon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
perf: 自动跳转下一题
parent
a0e00a05
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
index.vue
src/components/swiper-limited-load/index.vue
+4
-4
No files found.
src/components/swiper-limited-load/index.vue
View file @
d555a303
...
@@ -142,6 +142,10 @@ export default {
...
@@ -142,6 +142,10 @@ export default {
let
info
=
{}
let
info
=
{}
info
.
source
=
e
.
detail
.
source
info
.
source
=
e
.
detail
.
source
this
.
$nextTick
(()
=>
{
this
.
swiperCurrent
=
current
})
// 正向滑动,到下一个的时候
// 正向滑动,到下一个的时候
// 是正向衔接
// 是正向衔接
let
isLoopPositive
=
current
==
START
&&
lastIndex
==
END
let
isLoopPositive
=
current
==
START
&&
lastIndex
==
END
...
@@ -182,10 +186,6 @@ export default {
...
@@ -182,10 +186,6 @@ export default {
this
.
swiperIndex
=
current
this
.
swiperIndex
=
current
this
.
$emit
(
"change"
,
info
)
this
.
$emit
(
"change"
,
info
)
this
.
$nextTick
(()
=>
{
this
.
swiperCurrent
=
current
})
if
(
this
.
model
===
2
)
{
if
(
this
.
model
===
2
)
{
this
.
changeModel
()
this
.
changeModel
()
}
}
...
...
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