Commit 599bc27b authored by leon's avatar leon

feat: horizontal click event

parent 85dbd38b
......@@ -37,8 +37,6 @@
dataList: {
categories,
series,
preview,
images
}
} = this.elementData
this.ec.option= {
......@@ -51,7 +49,13 @@
series: this.dealSeriesData(series)
}
chart.setOption(this.ec.option)
chart.on('click', event => {
chart.on('click', event => {
const {
dataList: {
preview,
images
}
} = this.elementData
// 特殊处理,如果preview为true,代表点击显示图片
if (preview) {
uni.previewImage({
......
......@@ -64,14 +64,14 @@
"mp-weixin" : {
"appid" : "wx06342b31eebe8da7",
"setting" : {
"urlCheck" : true,
"urlCheck" : false,
"es6" : true,
"postcss" : true,
"minified" : true
},
"optimization":{
"subPackages":true
},
"optimization" : {
"subPackages" : true
},
"usingComponents" : true,
"permission" : {},
"lazyCodeLoading" : "requiredComponents"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment