F2
F2 copied to clipboard
ios饼图设置pieLabel & triggerOn: 'touchend',但是按住饼图短距离滑动的时候会触发 touchend,怎么解决?
如题,因不可直接设置 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', });