shineout 3.7.1-beta.9 → 3.7.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.7.1-beta.9'
525
+ version: '3.7.1-fix.1'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12227,7 +12227,7 @@ var handleStyle = function handleStyle(style) {
12227
12227
  };
12228
12228
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12229
12229
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12230
- /* harmony default export */ var version = ('3.7.1-beta.9');
12230
+ /* harmony default export */ var version = ('3.7.1-fix.1');
12231
12231
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12232
12232
 
12233
12233
 
@@ -29086,7 +29086,7 @@ var treeSelectStyle = objectSpread2_default()(objectSpread2_default()({
29086
29086
  color: src.treeSelectOptionDisabledColor,
29087
29087
  backgroundColor: src.treeSelectOptionDisabledBackgroundColor
29088
29088
  },
29089
- '&&:not([data-active="true"]):hover > div': {
29089
+ '&&:not([data-active="true"]) > [data-role="text"]:hover': {
29090
29090
  backgroundColor: src.treeSelectContentDisabledHoverBackgroundColor
29091
29091
  }
29092
29092
  },
@@ -35346,19 +35346,18 @@ function useInputAble(props) {
35346
35346
  var render = useRender(syncValue);
35347
35347
  var shouldUseState = delay || !control;
35348
35348
  var value = shouldUseState ? stateValue : valuePo;
35349
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
35350
- if (context.timer) {
35351
- clearTimeout(context.timer);
35352
- context.timer = null;
35353
- }
35349
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
35354
35350
  if (delay && control && props.value !== stateValue) {
35355
35351
  changeStateValue(props.value);
35352
+ } else if (context.timer) {
35353
+ clearTimeout(context.timer);
35354
+ context.timer = null;
35356
35355
  }
35357
35356
  }, [props.value, delay, control]);
35358
35357
  var forceDelayChange = use_persist_fn(function () {
35359
- if (context.timer && context.delayChange) {
35358
+ if (context.delayChange) context.delayChange();
35359
+ if (context.timer) {
35360
35360
  clearTimeout(context.timer);
35361
- context.delayChange();
35362
35361
  context.timer = null;
35363
35362
  context.delayChange = null;
35364
35363
  }
@@ -54374,6 +54373,7 @@ var NodeContent = function NodeContent(props) {
54374
54373
  children: [onChange && renderCheckbox(), /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
54375
54374
  dir: config.direction,
54376
54375
  className: contentStyle.text,
54376
+ "data-role": "text",
54377
54377
  onDoubleClick: onNodeDoubleClick,
54378
54378
  onClick: handleNodeClick,
54379
54379
  children: renderNode()
@@ -71339,7 +71339,7 @@ var upload_interface = __webpack_require__(8821);
71339
71339
 
71340
71340
 
71341
71341
  /* harmony default export */ var src_0 = ({
71342
- version: '3.7.1-beta.9'
71342
+ version: '3.7.1-fix.1'
71343
71343
  });
71344
71344
  }();
71345
71345
  /******/ return __webpack_exports__;