Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
E
ec-report-refactor
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
lihuizhen
ec-report-refactor
Commits
4016ab01
Commit
4016ab01
authored
Jan 24, 2022
by
leon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:count to and table display css
parent
2941eec4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
14 deletions
+17
-14
CountTo.vue
components/CountTo/CountTo.vue
+1
-1
DashboardProgress.vue
components/DashboardProgress/DashboardProgress.vue
+1
-1
NormalTable.vue
components/NormalTable/NormalTable.vue
+15
-12
No files found.
components/CountTo/CountTo.vue
View file @
4016ab01
...
...
@@ -2,7 +2,7 @@
<view
class=
"count-to"
:style=
"
{height: `${height}px`,}">
<BasicText
:elementInfo=
"elementInfo"
></BasicText>
<!-- warning:count-to的font-size单位为rpx -->
<u-count-to
:start-val=
"startVal"
:end-val=
"endVal"
:color=
"elementInfo.option.countTo.color"
:font-size=
"elementInfo.option.countTo.fontSize"
></u-count-to>
<u-count-to
:start-val=
"startVal"
:end-val=
"endVal"
separator=
","
:color=
"elementInfo.option.countTo.color"
:font-size=
"elementInfo.option.countTo.fontSize"
></u-count-to>
</view>
</
template
>
...
...
components/DashboardProgress/DashboardProgress.vue
View file @
4016ab01
...
...
@@ -98,7 +98,7 @@
top
:
'45%'
,
textStyle
:
{
fontSize
:
30
,
color
:
'#ffffff'
,
color
:
this
.
elementInfo
.
option
.
progress
.
titleColor
,
},
}],
series
:
[{
...
...
components/NormalTable/NormalTable.vue
View file @
4016ab01
<
template
>
<view
>
<BasicText
:elementInfo=
"elementInfo"
></BasicText>
<scroll-view
scroll-x=
"true"
>
<view
class=
"scroll-view_H"
>
<u-table
>
<u-tr>
<u-th
style=
"width: 150px;"
v-for=
"(item, index) in
elementInfo.table.column
"
:key=
"index"
>
{{
item
.
title
}}
</u-th>
<u-th
style=
"width: 150px;"
v-for=
"(item, index) in
columns
"
:key=
"index"
>
{{
item
.
title
}}
</u-th>
</u-tr>
<u-tr
v-for=
"(cell, cellIndex) in
elementData.dataList.
chartTables"
:key=
"cellIndex"
>
<u-td
style=
"width: 150px;"
v-for=
"(item, index) in
elementInfo.table.column
"
:key=
"index"
>
<u-tr
v-for=
"(cell, cellIndex) in chartTables"
:key=
"cellIndex"
>
<u-td
style=
"width: 150px;"
v-for=
"(item, index) in
columns
"
:key=
"index"
>
{{
cell
[
item
.
dataIndex
]
}}
</u-td>
</u-tr>
...
...
@@ -27,25 +28,27 @@
mixins
:
[
echartElementData
],
data
()
{
return
{
columns
:
[],
chartTables
:
[]
};
},
methods
:
{
initChart
()
{
this
.
$nextTick
(()
=>
{
this
.
endVal
=
this
.
elementData
.
dataList
.
endVal
this
.
columns
=
this
.
elementInfo
.
table
.
column
this
.
chartTables
=
this
.
elementData
.
dataList
.
chartTables
})
},
}
}
</
script
>
<
style
>
<
style
scoped
lang=
"scss"
>
.scroll-view_H
{
width
:
100%
;
display
:
flex
;
flex-wrap
:
nowrap
;
}
.scroll-view_H
{
width
:
100%
;
display
:
flex
;
flex-wrap
:
nowrap
;
}
</
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