shineout 3.8.1-beta.7 → 3.8.1-fix.1

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.8.1-beta.7'
525
+ version: '3.8.1-fix.1'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12386,7 +12386,7 @@ var handleStyle = function handleStyle(style) {
12386
12386
  };
12387
12387
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12388
12388
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12389
- /* harmony default export */ var version = ('3.8.1-beta.7');
12389
+ /* harmony default export */ var version = ('3.8.1-fix.1');
12390
12390
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12391
12391
 
12392
12392
 
@@ -33388,12 +33388,14 @@ var Tooltip = function Tooltip(props) {
33388
33388
  var persistent = persistentProp !== null && persistentProp !== void 0 ? persistentProp : (_config$tooltip = config.tooltip) === null || _config$tooltip === void 0 ? void 0 : _config$tooltip.persistent;
33389
33389
  var childrenProps = /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.isValidElement)(children) ? children === null || children === void 0 ? void 0 : children.props : {};
33390
33390
  var delay = props.delay || props.mouseEnterDelay || defaultDelay;
33391
+ var mouseLeaveDelay = props.mouseLeaveDelay || defaultDelay;
33391
33392
  var _usePopup = use_popup({
33392
33393
  position: popsitionProps,
33393
33394
  trigger: trigger,
33394
33395
  autoMode: 'popover',
33395
33396
  priorityDirection: priorityDirection,
33396
33397
  mouseEnterDelay: delay,
33398
+ mouseLeaveDelay: mouseLeaveDelay,
33397
33399
  targetEvents: disabledChild ? {} : childrenProps
33398
33400
  }),
33399
33401
  open = _usePopup.open,
@@ -36225,19 +36227,18 @@ function useInputAble(props) {
36225
36227
  var render = useRender(syncValue);
36226
36228
  var shouldUseState = delay || !control;
36227
36229
  var value = shouldUseState ? stateValue : valuePo;
36228
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
36229
- if (context.timer) {
36230
- clearTimeout(context.timer);
36231
- context.timer = null;
36232
- }
36230
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
36233
36231
  if (delay && control && props.value !== stateValue) {
36234
36232
  changeStateValue(props.value);
36233
+ } else if (context.timer) {
36234
+ clearTimeout(context.timer);
36235
+ context.timer = null;
36235
36236
  }
36236
36237
  }, [props.value, delay, control]);
36237
36238
  var forceDelayChange = use_persist_fn(function () {
36238
- if (context.timer && context.delayChange) {
36239
+ if (context.delayChange) context.delayChange();
36240
+ if (context.timer) {
36239
36241
  clearTimeout(context.timer);
36240
- context.delayChange();
36241
36242
  context.timer = null;
36242
36243
  context.delayChange = null;
36243
36244
  }
@@ -73065,7 +73066,7 @@ var upload_interface = __webpack_require__(8821);
73065
73066
 
73066
73067
 
73067
73068
  /* harmony default export */ var src_0 = ({
73068
- version: '3.8.1-beta.7'
73069
+ version: '3.8.1-fix.1'
73069
73070
  });
73070
73071
  }();
73071
73072
  /******/ return __webpack_exports__;