shineout 3.7.8-beta.3 → 3.7.8-beta.5

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.
package/cjs/index.js CHANGED
@@ -522,5 +522,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
522
522
  // 此文件由脚本自动生成,请勿直接修改。
523
523
  // This file was generated automatically by a script. Please do not modify it directly.
524
524
  var _default = exports.default = {
525
- version: '3.7.8-beta.3'
525
+ version: '3.7.8-beta.5'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12234,7 +12234,7 @@ var handleStyle = function handleStyle(style) {
12234
12234
  };
12235
12235
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12236
12236
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12237
- /* harmony default export */ var version = ('3.7.8-beta.3');
12237
+ /* harmony default export */ var version = ('3.7.8-beta.5');
12238
12238
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12239
12239
 
12240
12240
 
@@ -30411,20 +30411,20 @@ var usePopup = function usePopup(props) {
30411
30411
  }
30412
30412
  };
30413
30413
  var handleMouseEnter = use_persist_fn(function (e) {
30414
- var _targetEvents$onMouse, _targetRef$current;
30414
+ var _targetEvents$onMouse, _targetRef$current, _popupRef$current2;
30415
30415
  targetEvents === null || targetEvents === void 0 || (_targetEvents$onMouse = targetEvents.onMouseEnter) === null || _targetEvents$onMouse === void 0 || _targetEvents$onMouse.call(targetEvents, e);
30416
30416
  if (trigger !== 'hover') return;
30417
30417
  var isParentContainsCurrent = (_targetRef$current = targetRef.current) === null || _targetRef$current === void 0 ? void 0 : _targetRef$current.contains(e.target);
30418
- if (isParentContainsCurrent) {
30418
+ if (isParentContainsCurrent || popupRef !== null && popupRef !== void 0 && (_popupRef$current2 = popupRef.current) !== null && _popupRef$current2 !== void 0 && _popupRef$current2.contains(e.target)) {
30419
30419
  handleHoverToggle(true);
30420
30420
  }
30421
30421
  });
30422
30422
  var handleMouseLeave = use_persist_fn(function (e) {
30423
- var _targetEvents$onMouse2, _popupRef$current2;
30423
+ var _targetEvents$onMouse2, _popupRef$current3;
30424
30424
  targetEvents === null || targetEvents === void 0 || (_targetEvents$onMouse2 = targetEvents.onMouseLeave) === null || _targetEvents$onMouse2 === void 0 || _targetEvents$onMouse2.call(targetEvents, e);
30425
30425
  if (trigger !== 'hover') return;
30426
30426
  // @ts-ignore
30427
- if (e.relatedTarget instanceof HTMLElement && (_popupRef$current2 = popupRef.current) !== null && _popupRef$current2 !== void 0 && _popupRef$current2.contains(e.relatedTarget)) {
30427
+ if (e.relatedTarget instanceof HTMLElement && (_popupRef$current3 = popupRef.current) !== null && _popupRef$current3 !== void 0 && _popupRef$current3.contains(e.relatedTarget)) {
30428
30428
  return;
30429
30429
  }
30430
30430
  handleHoverToggle(false);
@@ -39574,7 +39574,7 @@ var useTree = function useTree(props) {
39574
39574
  (_context$value = context.value) === null || _context$value === void 0 || _context$value.forEach(function (id) {
39575
39575
  var _ref3 = context.pathMap.get(id),
39576
39576
  children = _ref3.children;
39577
- if (children.length) {
39577
+ if (children && children.length) {
39578
39578
  var noCheckedChildren = children.filter(function (cid) {
39579
39579
  var _context$value2;
39580
39580
  return !((_context$value2 = context.value) !== null && _context$value2 !== void 0 && _context$value2.includes(cid));
@@ -71835,7 +71835,7 @@ var upload_interface = __webpack_require__(8821);
71835
71835
 
71836
71836
 
71837
71837
  /* harmony default export */ var src_0 = ({
71838
- version: '3.7.8-beta.3'
71838
+ version: '3.7.8-beta.5'
71839
71839
  });
71840
71840
  }();
71841
71841
  /******/ return __webpack_exports__;