@easyv/charts 1.8.20 → 1.8.22

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.
@@ -79,6 +79,7 @@ var _default = exports["default"] = function _default(_ref) {
79
79
  },
80
80
  fill: isShow ? color : "transparent",
81
81
  y: y,
82
- stroke: "none"
82
+ stroke: "none",
83
+ pointerEvents: "none" // 添加此属性实现事件穿透
83
84
  }) : "";
84
85
  };
@@ -53,9 +53,10 @@ var _default = exports["default"] = /*#__PURE__*/(0, _react.memo)(function (_ref
53
53
  _ref$config$showType = _ref$config.showType,
54
54
  seriesType = _ref$config$showType === void 0 ? 'bar' : _ref$config$showType,
55
55
  _ref$config$highlight = _ref$config.highlight,
56
- showHighlight = _ref$config$highlight.show,
57
- extent = _ref$config$highlight.extent,
58
- highlightStyle = (0, _objectWithoutProperties2["default"])(_ref$config$highlight, _excluded),
56
+ _ref$config$highlight2 = _ref$config$highlight === void 0 ? {} : _ref$config$highlight,
57
+ showHighlight = _ref$config$highlight2.show,
58
+ extent = _ref$config$highlight2.extent,
59
+ highlightStyle = (0, _objectWithoutProperties2["default"])(_ref$config$highlight2, _excluded),
59
60
  other = (0, _objectWithoutProperties2["default"])(_ref$config, _excluded2),
60
61
  config = _ref.config,
61
62
  curXLabel = _ref.curXLabel,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyv/charts",
3
- "version": "1.8.20",
3
+ "version": "1.8.22",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -56,6 +56,7 @@ export default ({
56
56
  fill={isShow ? color : "transparent"}
57
57
  y={y}
58
58
  stroke="none"
59
+ pointerEvents="none" // 添加此属性实现事件穿透
59
60
  />
60
61
  ):"";
61
62
  };
@@ -32,7 +32,7 @@ export default memo(
32
32
  seriesIntervalWidth: paddingInner = 0,
33
33
  paddingInner: paddingOuter = 0,
34
34
  showType:seriesType = 'bar',
35
- highlight: { show: showHighlight, extent, ...highlightStyle },
35
+ highlight: { show: showHighlight, extent, ...highlightStyle }={},//配置项不存在的处理
36
36
  ...other
37
37
  },
38
38
  config,