Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

饼图的事件触发, click 事件触发方式不能通过 triggerOn: 'click' 触发 #96

Open
genggengya opened this issue Dec 27, 2021 · 1 comment

Comments

@genggengya
Copy link

如题,因不可直接设置 triggerOn: 'click' 触发 onclick 事件,于是设置了 touch end, 但是短距离滑动的时候会触发 touchend,怎么解决?
chart.pieLabel({
// @ts-ignore
labelCfg: function (data, color) {
return {
text: showValue ? ${data.type} ${data.value}% : data.type,
};
},
onClick(e) {
let { data } = e;
_this.props.onTabPieCate(data);
},
triggerOn: 'touchend',
});

@luoxin59420
Copy link

您好,请问这个问题解决了吗 我也遇到了在小程序里需要点击事件做相应操作

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants