@easyv/charts 1.5.9 → 1.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -484,6 +484,9 @@ var Component = /*#__PURE__*/(0, _react.memo)(function (_ref5) {
|
|
|
484
484
|
}, [series, arcs, radius]);
|
|
485
485
|
|
|
486
486
|
var onClick = (0, _react.useCallback)(function (e) {
|
|
487
|
+
var _data = arcs[+e.currentTarget.dataset.index].data;
|
|
488
|
+
triggerOnRelative('onClick', _data);
|
|
489
|
+
onEmit('onClick', _data);
|
|
487
490
|
onEvent({
|
|
488
491
|
currentIndex: +e.currentTarget.dataset.index,
|
|
489
492
|
type: "onClick"
|
package/package.json
CHANGED
|
@@ -401,6 +401,9 @@ const Component = memo(
|
|
|
401
401
|
|
|
402
402
|
const onClick = useCallback(
|
|
403
403
|
(e) => {
|
|
404
|
+
const _data = arcs[+e.currentTarget.dataset.index].data;
|
|
405
|
+
triggerOnRelative('onClick',_data);
|
|
406
|
+
onEmit('onClick', _data);
|
|
404
407
|
onEvent({
|
|
405
408
|
currentIndex: +e.currentTarget.dataset.index,
|
|
406
409
|
type: "onClick",
|