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
54f78d90
Commit
54f78d90
authored
Jan 27, 2022
by
peco
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: title组件
parent
84475c0a
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
85 additions
and
4 deletions
+85
-4
CountTo.vue
components/CountTo/CountTo.vue
+2
-1
NormalImage.vue
components/NormalImage/NormalImage.vue
+2
-1
NormalTable.vue
components/NormalTable/NormalTable.vue
+2
-1
NormalTitle.vue
components/NormalTitle/NormalTitle.vue
+42
-0
NumberScroll.vue
components/NumberScroll/NumberScroll.vue
+2
-1
pages.json
pages.json
+9
-0
webView.vue
pages/webView/webView/webView.vue
+26
-0
No files found.
components/CountTo/CountTo.vue
View file @
54f78d90
<
template
>
<view
class=
"count-to"
:style=
"
{height: `${height}px`,}">
<BasicText
:elementInfo=
"elementInfo"
></BasicText>
<!--
<BasicText
:elementInfo=
"elementInfo"
></BasicText>
-->
<NormalTitle
:elementInfo=
"elementInfo"
></NormalTitle>
<!-- warning:count-to的font-size单位为rpx -->
<u-count-to
:start-val=
"startVal"
:end-val=
"endVal"
separator=
","
:color=
"elementInfo.option.countTo.color"
:font-size=
"getFontSize()"
></u-count-to>
</view>
...
...
components/NormalImage/NormalImage.vue
View file @
54f78d90
<
template
>
<view
class=
"normal-image"
>
<BasicText
:elementInfo=
"elementInfo"
></BasicText>
<!--
<BasicText
:elementInfo=
"elementInfo"
></BasicText>
-->
<NormalTitle
:elementInfo=
"elementInfo"
></NormalTitle>
<u-empty
v-if=
"!elementInfo.option.images.list.length"
></u-empty>
<u-image
class=
"uimage"
...
...
components/NormalTable/NormalTable.vue
View file @
54f78d90
<
template
>
<view
>
<BasicText
:elementInfo=
"elementInfo"
></BasicText>
<!--
<BasicText
:elementInfo=
"elementInfo"
></BasicText>
-->
<NormalTitle
:elementInfo=
"elementInfo"
></NormalTitle>
<scroll-view
scroll-x=
"true"
>
<view
class=
"scroll-view_H"
>
<u-table
>
...
...
components/NormalTitle/NormalTitle.vue
0 → 100644
View file @
54f78d90
<
template
>
<view
v-if=
"elementInfo.option.title.show"
>
<a
@
click=
"onClick(elementInfo.option.title.link)"
:style=
"
{
'color': elementInfo.option.title.textStyle.color,
'font-size': `${elementInfo.option.title.textStyle.fontSize}px`,
'font-weight': elementInfo.option.title.textStyle.fontWeight,
'text-align': elementInfo.option.title.left,
}">
{{
elementInfo
.
option
.
title
.
text
}}
</a>
</view>
</
template
>
<
script
>
export
default
{
name
:
"NormalTitle"
,
props
:
{
elementInfo
:
{
type
:
Object
,
required
:
true
}
},
data
()
{
return
{
};
},
methods
:
{
onClick
(
url
)
{
if
(
url
!=
''
)
{
uni
.
navigateTo
({
url
:
'../../pages/webView/webView/webView?url='
+
encodeURIComponent
(
url
)
})
}
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
</
style
>
components/NumberScroll/NumberScroll.vue
View file @
54f78d90
<
template
>
<view
class=
"chart-num"
:style=
"
{height: `${height}px`,}">
<BasicText
:elementInfo=
"elementInfo"
></BasicText>
<!--
<BasicText
:elementInfo=
"elementInfo"
></BasicText>
-->
<NormalTitle
:elementInfo=
"elementInfo"
></NormalTitle>
<ul
class=
"box-item marginTop20"
>
<li
v-for=
"(item, index) in orderNum"
:key=
"index"
:class=
"
{'number-item': !isNaN(item), 'mark-item': isNaN(item)}" :style="{
...
...
pages.json
View file @
54f78d90
...
...
@@ -50,6 +50,15 @@
}
}
,{
"path"
:
"pages/webView/webView/webView"
,
"style"
:
{
"navigationBarTitleText"
:
""
,
"enablePullDownRefresh"
:
false
}
}
],
"globalStyle"
:
{
"navigationBarTextStyle"
:
"black"
,
...
...
pages/webView/webView/webView.vue
0 → 100644
View file @
54f78d90
<
template
>
<view>
<web-view
:src=
"url"
:progress=
"false"
>
</web-view>
</view>
</
template
>
<
script
>
export
default
{
data
()
{
return
{
url
:
''
}
},
onLoad
(
option
)
{
this
.
$data
.
url
=
decodeURIComponent
(
option
.
url
)
},
methods
:
{
}
}
</
script
>
<
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