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
920a1086
Commit
920a1086
authored
Jan 20, 2022
by
chris.yang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
reactor:优化代码
parent
812ae707
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
1 deletion
+11
-1
NormalImage.vue
components/NormalImage/NormalImage.vue
+1
-1
RemoteImage.vue
components/RemoteImage/RemoteImage.vue
+10
-0
No files found.
components/NormalImage/NormalImage.vue
View file @
920a1086
<
template
>
<
template
>
<view
class=
"normal-image"
>
<view
class=
"normal-image"
>
<BasicText
:elementInfo=
"elementInfo
.option.title
"
></BasicText>
<BasicText
:elementInfo=
"elementInfo"
></BasicText>
<u-empty
<u-empty
v-if=
"!elementInfo.option.images.list.length"
></u-empty>
v-if=
"!elementInfo.option.images.list.length"
></u-empty>
<u-image
class=
"uimage"
<u-image
class=
"uimage"
...
...
components/RemoteImage/RemoteImage.vue
View file @
920a1086
<
template
>
<
template
>
<view
class=
"remoteView"
>
<view
class=
"remoteView"
>
<BasicText
:elementInfo=
"elementInfo"
></BasicText>
<u-image
<u-image
class=
"remoteImage"
class=
"remoteImage"
:src=
"imageUrl"
:src=
"imageUrl"
...
@@ -10,18 +11,27 @@
...
@@ -10,18 +11,27 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
uniEcCanvas
from
'@/components/uni-ec-canvas/uni-ec-canvas'
import
*
as
echarts
from
'@/components/uni-ec-canvas/echarts'
import
echartElementData
from
'@/mixins/echartElementData.js'
import
echartElementData
from
'@/mixins/echartElementData.js'
let
chart
=
null
export
default
{
export
default
{
name
:
"RemoteImage"
,
name
:
"RemoteImage"
,
mixins
:
[
echartElementData
],
mixins
:
[
echartElementData
],
data
()
{
data
()
{
return
{
return
{
ec
:
{
lazyLoad
:
true
},
imageUrl
:
""
,
imageUrl
:
""
,
windowWidth
:
0
,
//屏幕宽度
windowWidth
:
0
,
//屏幕宽度
imageHeight
:
0
//图片高度
imageHeight
:
0
//图片高度
};
};
},
},
components
:
{
uniEcCanvas
},
computed
:{
computed
:{
},
},
methods
:{
methods
:{
...
...
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