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
599bc27b
Commit
599bc27b
authored
Mar 03, 2022
by
leon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: horizontal click event
parent
85dbd38b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
7 deletions
+11
-7
HorizontalBar.vue
components/HorizontalBar/HorizontalBar.vue
+7
-3
manifest.json
manifest.json
+4
-4
No files found.
components/HorizontalBar/HorizontalBar.vue
View file @
599bc27b
...
@@ -37,8 +37,6 @@
...
@@ -37,8 +37,6 @@
dataList
:
{
dataList
:
{
categories
,
categories
,
series
,
series
,
preview
,
images
}
}
}
=
this
.
elementData
}
=
this
.
elementData
this
.
ec
.
option
=
{
this
.
ec
.
option
=
{
...
@@ -51,7 +49,13 @@
...
@@ -51,7 +49,13 @@
series
:
this
.
dealSeriesData
(
series
)
series
:
this
.
dealSeriesData
(
series
)
}
}
chart
.
setOption
(
this
.
ec
.
option
)
chart
.
setOption
(
this
.
ec
.
option
)
chart
.
on
(
'click'
,
event
=>
{
chart
.
on
(
'click'
,
event
=>
{
const
{
dataList
:
{
preview
,
images
}
}
=
this
.
elementData
// 特殊处理,如果preview为true,代表点击显示图片
// 特殊处理,如果preview为true,代表点击显示图片
if
(
preview
)
{
if
(
preview
)
{
uni
.
previewImage
({
uni
.
previewImage
({
...
...
manifest.json
View file @
599bc27b
...
@@ -64,14 +64,14 @@
...
@@ -64,14 +64,14 @@
"mp-weixin"
:
{
"mp-weixin"
:
{
"appid"
:
"wx06342b31eebe8da7"
,
"appid"
:
"wx06342b31eebe8da7"
,
"setting"
:
{
"setting"
:
{
"urlCheck"
:
tru
e
,
"urlCheck"
:
fals
e
,
"es6"
:
true
,
"es6"
:
true
,
"postcss"
:
true
,
"postcss"
:
true
,
"minified"
:
true
"minified"
:
true
},
},
"optimization"
:
{
"optimization"
:
{
"subPackages"
:
true
"subPackages"
:
true
},
},
"usingComponents"
:
true
,
"usingComponents"
:
true
,
"permission"
:
{},
"permission"
:
{},
"lazyCodeLoading"
:
"requiredComponents"
"lazyCodeLoading"
:
"requiredComponents"
...
...
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