Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
apaas-ui
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
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
gzga-jzapi
apaas-ui
Commits
9f85bf27
Commit
9f85bf27
authored
Jul 27, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
部署排名分析和评价轮播组件优化
parent
79fb25c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
7 deletions
+15
-7
src/components/e-charts/commentlist.vue
src/components/e-charts/commentlist.vue
+6
-3
src/components/e-charts/toplist.vue
src/components/e-charts/toplist.vue
+9
-4
No files found.
src/components/e-charts/commentlist.vue
View file @
9f85bf27
...
...
@@ -45,11 +45,14 @@ export default {
this
.
$el
.
scrollTop
=
0
;
this
.
timer
=
setInterval
(()
=>
{
let
curScrollTop
=
this
.
$el
.
scrollTop
+
50
;
if
(
curScrollTop
>
this
.
$el
.
scrollHeight
-
this
.
$el
.
clientHeight
)
{
let
itemHeight
=
77
;
let
curScrollTop
=
this
.
$el
.
scrollTop
+
itemHeight
;
if
(
curScrollTop
>=
this
.
$el
.
scrollHeight
-
this
.
$el
.
clientHeight
+
itemHeight
)
{
curScrollTop
=
0
;
}
this
.
$el
.
scrollTop
=
curScrollTop
;
this
.
$el
.
scrollTop
=
Math
.
min
(
curScrollTop
,
this
.
$el
.
scrollHeight
-
this
.
$el
.
clientHeight
);
},
1500
);
},
mouseenter
()
{
...
...
src/components/e-charts/toplist.vue
View file @
9f85bf27
...
...
@@ -73,11 +73,14 @@ export default {
this
.
$el
.
scrollTop
=
0
;
this
.
timer
=
setInterval
(()
=>
{
let
curScrollTop
=
this
.
$el
.
scrollTop
+
50
;
if
(
curScrollTop
>
this
.
$el
.
scrollHeight
-
this
.
$el
.
clientHeight
)
{
let
itemHeight
=
50
;
let
curScrollTop
=
this
.
$el
.
scrollTop
+
itemHeight
;
if
(
curScrollTop
>=
this
.
$el
.
scrollHeight
-
this
.
$el
.
clientHeight
+
itemHeight
)
{
curScrollTop
=
0
;
}
this
.
$el
.
scrollTop
=
curScrollTop
;
this
.
$el
.
scrollTop
=
Math
.
min
(
curScrollTop
,
this
.
$el
.
scrollHeight
-
this
.
$el
.
clientHeight
);
},
1500
);
},
mouseenter
()
{
...
...
@@ -161,7 +164,7 @@ export default {
flex-grow
:
1
;
}
.item_info
>
span
:first-child
{
width
:
2
00px
;
width
:
1
00px
;
flex-grow
:
1
;
margin-right
:
10px
;
}
...
...
@@ -171,6 +174,8 @@ export default {
color
:
#8e96ab
;
}
.item_info
>
span
:nth-child
(
2
)
{
flex-shrink
:
0
;
white-space
:
nowrap
;
color
:
#0d1847
;
}
.item_progress
{
...
...
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