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
0a314cb0
Commit
0a314cb0
authored
Jan 24, 2022
by
leon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: countTo fontSize change px to rpx
parent
fa5598fa
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
CountTo.vue
components/CountTo/CountTo.vue
+4
-1
index.vue
pages/index/index.vue
+3
-1
No files found.
components/CountTo/CountTo.vue
View file @
0a314cb0
...
...
@@ -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"
separator=
","
: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=
"
getFontSize()
"
></u-count-to>
</view>
</
template
>
...
...
@@ -38,6 +38,9 @@
this
.
height
=
this
.
elementInfo
.
height
/
this
.
elementInfo
.
width
*
windowWidth
}
},
getFontSize
()
{
return
this
.
$u
.
common
.
pxToRpx
(
this
.
elementInfo
.
option
.
countTo
.
fontSize
)
}
},
...
...
pages/index/index.vue
View file @
0a314cb0
...
...
@@ -39,6 +39,8 @@
<NormalImage
v-if=
"element.type == 'NormalImage'"
:elementInfo=
"element"
></NormalImage>
<!-- 远程图片 -->
<RemoteImage
v-if=
"element.type == 'RemoteImage'"
:elementInfo=
"element"
></RemoteImage>
<!-- 普通表格 -->
<NormalTable
v-if=
"element.type == 'NormalTable'"
:elementInfo=
"element"
></NormalTable>
</
template
>
</view>
</view>
...
...
@@ -126,7 +128,7 @@
*/
async
getReportList
()
{
clearInterval
(
this
.
timer
)
let
res
=
await
this
.
$u
.
api
.
getReportList
({
id
:
'61c
424a4c06bff0ce05d9a53
'
})
let
res
=
await
this
.
$u
.
api
.
getReportList
({
id
:
'61c
d2ba1c06bffbdae442c4f
'
})
const
{
Status
,
Result
:
{
info
,
list
}
}
=
res
.
data
if
(
Status
===
'true'
)
{
if
(
info
.
dataUrl
)
{
...
...
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