Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
2
20250711_TBGuardingLife
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
SparkProjects
20250711_TBGuardingLife
Commits
55c50d96
Commit
55c50d96
authored
Jul 22, 2025
by
haiyoucuv
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init
parent
bfaef8d4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
ReviewPanel.jsx
src/components/ReviewPanel/ReviewPanel.jsx
+9
-0
No files found.
src/components/ReviewPanel/ReviewPanel.jsx
View file @
55c50d96
...
...
@@ -15,6 +15,8 @@ class ReviewPanel extends React.Component {
animationCompleted
:
false
};
t
=
0
;
componentDidMount
()
{
// 延迟启动动画
setTimeout
(()
=>
{
...
...
@@ -22,6 +24,10 @@ class ReviewPanel extends React.Component {
},
200
);
}
componentWillUnmount
()
{
clearTimeout
(
this
.
t
);
}
startAnimation
=
()
=>
{
// 逐个显示 item
this
.
state
.
itemsVisible
.
forEach
((
_
,
index
)
=>
{
...
...
@@ -36,6 +42,9 @@ class ReviewPanel extends React.Component {
if
(
index
===
this
.
state
.
itemsVisible
.
length
-
1
)
{
setTimeout
(()
=>
{
this
.
setState
({
animationCompleted
:
true
});
this
.
t
=
setTimeout
(()
=>
{
this
.
clickNext
();
});
},
600
);
// 等待最后一个 item 的动画完成 (0.6s)
}
},
index
*
300
);
// 每个 item 延迟 300ms
...
...
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