Commit 599bc27b authored by leon's avatar leon

feat: horizontal click event

parent 85dbd38b
...@@ -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= {
...@@ -52,6 +50,12 @@ ...@@ -52,6 +50,12 @@
} }
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({
......
...@@ -64,13 +64,13 @@ ...@@ -64,13 +64,13 @@
"mp-weixin" : { "mp-weixin" : {
"appid" : "wx06342b31eebe8da7", "appid" : "wx06342b31eebe8da7",
"setting" : { "setting" : {
"urlCheck" : true, "urlCheck" : false,
"es6" : true, "es6" : true,
"postcss" : true, "postcss" : true,
"minified" : true "minified" : true
}, },
"optimization":{ "optimization" : {
"subPackages":true "subPackages" : true
}, },
"usingComponents" : true, "usingComponents" : true,
"permission" : {}, "permission" : {},
......
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