@easyv/charts 1.7.32 → 1.7.34

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.
@@ -131,7 +131,8 @@ var _default = exports["default"] = /*#__PURE__*/(0, _react.memo)(function (_ref
131
131
  display: 'flex'
132
132
  }, getPosition(position, _alignment, x, y)), {}, {
133
133
  height: loop.show ? height : 'auto',
134
- overflowY: loop.show ? 'scroll' : 'auto'
134
+ overflowY: loop.show ? 'scroll' : 'auto',
135
+ pointerEvents: "none" //鼠标穿透
135
136
  }),
136
137
  ref: ref_container
137
138
  }, /*#__PURE__*/_react["default"].createElement("ul", {
@@ -182,7 +183,8 @@ var _default = exports["default"] = /*#__PURE__*/(0, _react.memo)(function (_ref
182
183
  }, getPosition(position, _alignment, x, y)), {}, {
183
184
  height: loop.show ? height : 'auto',
184
185
  overflowY: loop.show ? 'scroll' : 'auto',
185
- width: "100%"
186
+ width: "100%",
187
+ pointerEvents: "none"
186
188
  }),
187
189
  ref: ref_container
188
190
  }, (0, _toConsumableArray2["default"])(Array(Math.ceil(series.length / gridTemplateColumns))).map(function (_, indexs) {
@@ -601,7 +601,12 @@ var Component = /*#__PURE__*/(0, _react.memo)(function (_ref5) {
601
601
  },
602
602
  arcs: _arcs,
603
603
  judge: judgeData
604
- }))), tooltip && mousePos && mousePos.x != 0 && mousePos.y != 0 && tooltip.manual && /*#__PURE__*/_react["default"].createElement(_PieTooltip.PieTooltip, {
604
+ }))), tooltip && mousePos && mousePos.x != 0 && mousePos.y != 0 && tooltip.manual && /*#__PURE__*/_react["default"].createElement("div", {
605
+ style: {
606
+ position: 'absolute',
607
+ zIndex: 9999
608
+ }
609
+ }, /*#__PURE__*/_react["default"].createElement(_PieTooltip.PieTooltip, {
605
610
  series: series,
606
611
  data: hoverData,
607
612
  config: tooltip,
@@ -610,7 +615,7 @@ var Component = /*#__PURE__*/(0, _react.memo)(function (_ref5) {
610
615
  y: maxRadius + marginTop
611
616
  },
612
617
  mousePos: mousePos
613
- }), /*#__PURE__*/_react["default"].createElement(_.Legend, (0, _extends2["default"])({}, legend, {
618
+ })), /*#__PURE__*/_react["default"].createElement(_.Legend, (0, _extends2["default"])({}, legend, {
614
619
  height: chartHeight,
615
620
  series: _arcs.map(function (arc) {
616
621
  return _objectSpread(_objectSpread({}, arc), {}, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easyv/charts",
3
- "version": "1.7.32",
3
+ "version": "1.7.34",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
@@ -110,6 +110,7 @@ export default memo(
110
110
  ...getPosition(position, _alignment, x, y),
111
111
  height: loop.show ? height : 'auto',
112
112
  overflowY: loop.show ? 'scroll' : 'auto',
113
+ pointerEvents:"none"//鼠标穿透
113
114
  }}
114
115
  ref={ref_container}
115
116
  >
@@ -166,7 +167,8 @@ export default memo(
166
167
  ...getPosition(position, _alignment, x, y),
167
168
  height: loop.show ? height : 'auto',
168
169
  overflowY: loop.show ? 'scroll' : 'auto',
169
- width:"100%"
170
+ width:"100%",
171
+ pointerEvents:"none"
170
172
  }}
171
173
  ref={ref_container}
172
174
  >
@@ -615,6 +615,7 @@ const Component = memo(
615
615
  mousePos.x != 0 &&
616
616
  mousePos.y != 0 &&
617
617
  tooltip.manual && (
618
+ <div style={{ position: 'absolute', zIndex: 9999 }}>
618
619
  <PieTooltip
619
620
  series={series}
620
621
  data={hoverData}
@@ -625,6 +626,7 @@ const Component = memo(
625
626
  }}
626
627
  mousePos={mousePos}
627
628
  />
629
+ </div>
628
630
  )}
629
631
  <Legend
630
632
  {...legend}