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
d7b9cc39
Commit
d7b9cc39
authored
Jan 24, 2022
by
Jenny
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 图表组件尺寸
parent
2941eec4
Show whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
31 additions
and
10 deletions
+31
-10
BarMixMap.vue
components/BarMixMap/BarMixMap.vue
+1
-0
ChinaMap.vue
components/ChinaMap/ChinaMap.vue
+1
-0
HorizontalBar.vue
components/HorizontalBar/HorizontalBar.vue
+1
-0
LineMixBar.vue
components/LineMixBar/LineMixBar.vue
+1
-0
NormalBar.vue
components/NormalBar/NormalBar.vue
+1
-0
NormalGauge.vue
components/NormalGauge/NormalGauge.vue
+1
-0
NormalLine.vue
components/NormalLine/NormalLine.vue
+1
-0
NormalPie.vue
components/NormalPie/NormalPie.vue
+6
-5
NormalRadar.vue
components/NormalRadar/NormalRadar.vue
+7
-5
echartElementData.js
mixins/echartElementData.js
+10
-0
common.scss
static/style/common.scss
+1
-0
No files found.
components/BarMixMap/BarMixMap.vue
View file @
d7b9cc39
...
...
@@ -6,6 +6,7 @@
ref=
"barMixMapCanvas"
canvas-id=
"bar-mix-map-chart"
:ec=
"ec"
:style=
"[elStyleObject]"
></uni-ec-canvas>
</view>
</
template
>
...
...
components/ChinaMap/ChinaMap.vue
View file @
d7b9cc39
...
...
@@ -6,6 +6,7 @@
ref=
"chinaMapCanvas"
canvas-id=
"china-map-chart"
:ec=
"ec"
:style=
"[elStyleObject]"
></uni-ec-canvas>
</view>
</
template
>
...
...
components/HorizontalBar/HorizontalBar.vue
View file @
d7b9cc39
...
...
@@ -6,6 +6,7 @@
ref=
"horizontalBarCanvas"
canvas-id=
"horizontal-bar-chart"
:ec=
"ec"
:style=
"[elStyleObject]"
></uni-ec-canvas>
</view>
</
template
>
...
...
components/LineMixBar/LineMixBar.vue
View file @
d7b9cc39
...
...
@@ -6,6 +6,7 @@
ref=
"lineMixBarCanvas"
canvas-id=
"line-mix-bar-chart"
:ec=
"ec"
:style=
"[elStyleObject]"
></uni-ec-canvas>
</view>
</
template
>
...
...
components/NormalBar/NormalBar.vue
View file @
d7b9cc39
...
...
@@ -6,6 +6,7 @@
ref=
"normalbarCanvas"
canvas-id=
"normal-bar-chart"
:ec=
"ec"
:style=
"[elStyleObject]"
></uni-ec-canvas>
</view>
</
template
>
...
...
components/NormalGauge/NormalGauge.vue
View file @
d7b9cc39
...
...
@@ -6,6 +6,7 @@
ref=
"normalGaugeCanvas"
canvas-id=
"normal-gauge-chart"
:ec=
"ec"
:style=
"[elStyleObject]"
></uni-ec-canvas>
</view>
</
template
>
...
...
components/NormalLine/NormalLine.vue
View file @
d7b9cc39
...
...
@@ -6,6 +6,7 @@
ref=
"normalLineCanvas"
canvas-id=
"normal-line-chart"
:ec=
"ec"
:style=
"[elStyleObject]"
></uni-ec-canvas>
</view>
</
template
>
...
...
components/NormalPie/NormalPie.vue
View file @
d7b9cc39
...
...
@@ -6,6 +6,7 @@
ref=
"normalPieCanvas"
canvas-id=
"normal-pie-chart"
:ec=
"ec"
:style=
"[elStyleObject]"
></uni-ec-canvas>
</view>
</
template
>
...
...
components/NormalRadar/NormalRadar.vue
View file @
d7b9cc39
...
...
@@ -5,7 +5,9 @@
id=
"normalra-dar"
ref=
"normalRadarCanvas"
canvas-id=
"normalra-dar-chart"
:ec=
"ec"
></uni-ec-canvas>
:ec=
"ec"
:style=
"[elStyleObject]"
></uni-ec-canvas>
</view>
</
template
>
...
...
mixins/echartElementData.js
View file @
d7b9cc39
...
...
@@ -11,6 +11,16 @@ export default {
required
:
true
}
},
computed
:
{
elStyleObject
()
{
const
{
windowWidth
}
=
uni
.
getSystemInfoSync
()
const
{
width
,
height
}
=
this
.
elementInfo
return
{
'width'
:
`
${
width
>
windowWidth
?
'100%'
:
width
+
'px'
}
`
,
'height'
:
`
${
width
>
windowWidth
?
height
/
width
*
windowWidth
:
height
}
px`
}
}
},
methods
:
{
/**
* 静态数据
...
...
static/style/common.scss
View file @
d7b9cc39
...
...
@@ -26,4 +26,5 @@
width
:
100%
;
height
:
750rpx
;
display
:block
;
margin
:
20rpx
auto
;
}
\ No newline at end of file
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