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
2c7514aa
Commit
2c7514aa
authored
Jul 02, 2020
by
徐一鸣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
toplist组件
parent
f75599bb
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
61 additions
and
3 deletions
+61
-3
src/components/e-charts/toplist.vue
src/components/e-charts/toplist.vue
+61
-3
No files found.
src/components/e-charts/toplist.vue
View file @
2c7514aa
...
@@ -6,14 +6,17 @@
...
@@ -6,14 +6,17 @@
<span
v-text=
"'TOP' + (index + 1)"
></span>
<span
v-text=
"'TOP' + (index + 1)"
></span>
</div>
</div>
<div
class=
"item_logo"
>
<div
class=
"item_logo"
>
<el-avatar
shape=
"square"
:size=
"
32
"
fit=
"cover"
:src=
"option.logo"
/>
<el-avatar
shape=
"square"
:size=
"
28
"
fit=
"cover"
:src=
"option.logo"
/>
</div>
</div>
<div
class=
"item_detail"
>
<div
class=
"item_detail"
>
<p
class=
"item_info"
>
<p
class=
"item_info"
>
<span
v-text=
"option.name"
></span>
<span
class=
"text_clip"
>
{{
option
.
name
}}
<i
class=
"el-icon-arrow-right"
></i>
</span>
<span
v-text=
"option.value + (option.unit || '次')"
></span>
<span
v-text=
"option.value + (option.unit || '次')"
></span>
</p>
</p>
<div
class=
"item
progress"
>
<div
class=
"item
_
progress"
>
<div
<div
class=
"item_progress_bar"
class=
"item_progress_bar"
:style=
"
{ width: getBarWidth(option.value) }"
:style=
"
{ width: getBarWidth(option.value) }"
...
@@ -82,15 +85,70 @@ export default {
...
@@ -82,15 +85,70 @@ export default {
</
script
>
</
script
>
<
style
scoped
>
<
style
scoped
>
.top_list
{
height
:
100%
;
overflow-x
:
hidden
;
overflow-y
:
auto
;
}
.item_list
{
.item_list
{
display
:
flex
;
display
:
flex
;
justify-content
:
flex-start
;
justify-content
:
flex-start
;
align-items
:
center
;
align-items
:
center
;
}
}
.item_list
:not
(
:first-child
)
{
margin-top
:
18px
;
}
.item_index
{
.item_index
{
width
:
35px
;
width
:
35px
;
flex-shrink
:
0
;
flex-shrink
:
0
;
margin-right
:
10px
;
margin-right
:
10px
;
font-size
:
12px
;
font-size
:
12px
;
color
:
#58617a
;
}
.item_logo
{
margin-right
:
10px
;
flex-shrink
:
0
;
font-size
:
0
;
border
:
2px
solid
#e3e5ef
;
border-radius
:
6px
;
overflow
:
hidden
;
}
.item_info
{
flex-grow
:
1
;
display
:
flex
;
justify-content
:
flex-start
;
align-items
:
center
;
font-size
:
14px
;
line-height
:
20px
;
color
:
#58617a
;
}
.item_detail
{
flex-grow
:
1
;
margin-right
:
10px
;
}
.item_info
>
span
:first-child
{
flex-grow
:
1
;
margin-right
:
10px
;
}
.item_info
>
span
:first-child
>
i
{
font-weight
:
bold
;
font-size
:
12px
;
color
:
#8e96ab
;
}
.item_info
>
span
:nth-child
(
2
)
{
color
:
#0d1847
;
}
.item_progress
{
height
:
5px
;
border-radius
:
2px
;
overflow
:
hidden
;
background-color
:
#c9cedd
;
margin-top
:
7px
;
}
.item_progress
>
.item_progress_bar
{
height
:
inherit
;
border-radius
:
inherit
;
overflow
:
inherit
;
background-color
:
#e56600
;
}
}
</
style
>
</
style
>
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