shineout 3.8.6-beta.6 → 3.8.6-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.6-beta.6'
525
+ version: '3.8.6-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.6-beta.6');
12389
+ /* harmony default export */ var version = ('3.8.6-fix.1');
12390
12390
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12391
12391
 
12392
12392
 
@@ -17548,12 +17548,6 @@ var cascaderStyle = objectSpread2_default()(objectSpread2_default()({
17548
17548
  right: src.cascaderSmallPaddingX
17549
17549
  }
17550
17550
  }), '&$wrapperLarge', {
17551
- '& $tag': {
17552
- height: selectLargeTagHeight,
17553
- '& *': {
17554
- lineHeight: selectLargeTagHeight
17555
- }
17556
- },
17557
17551
  '& $placeholder,$ellipsis,$space,input': {
17558
17552
  marginTop: src.cascaderLargePlaceholderMarginY,
17559
17553
  marginBottom: src.cascaderLargePlaceholderMarginY
@@ -23802,12 +23796,6 @@ var selectStyle = objectSpread2_default()(objectSpread2_default()({
23802
23796
  marginBottom: 0
23803
23797
  }
23804
23798
  }), '&$wrapperLarge', {
23805
- '& $tag': {
23806
- height: select_selectLargeTagHeight,
23807
- '& *': {
23808
- lineHeight: select_selectLargeTagHeight
23809
- }
23810
- },
23811
23799
  '& $placeholder,$ellipsis,$space,input': {
23812
23800
  marginTop: src.selectLargePlaceholderMarginY,
23813
23801
  marginBottom: src.selectLargePlaceholderMarginY
@@ -29133,12 +29121,6 @@ var treeSelectStyle = objectSpread2_default()(objectSpread2_default()({
29133
29121
  right: src.treeSelectSmallPaddingX
29134
29122
  }
29135
29123
  }), '&$wrapperLarge', {
29136
- '& $tag': {
29137
- height: tree_select_selectLargeTagHeight,
29138
- '& *': {
29139
- lineHeight: tree_select_selectLargeTagHeight
29140
- }
29141
- },
29142
29124
  '& $placeholder,$ellipsis,$space,input': {
29143
29125
  marginTop: src.treeSelectLargePlaceholderMarginY,
29144
29126
  marginBottom: src.treeSelectLargePlaceholderMarginY
@@ -36375,19 +36357,18 @@ function useInputAble(props) {
36375
36357
  var render = useRender(syncValue);
36376
36358
  var shouldUseState = delay || !control;
36377
36359
  var value = shouldUseState ? stateValue : valuePo;
36378
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
36379
- if (context.timer) {
36380
- clearTimeout(context.timer);
36381
- context.timer = null;
36382
- }
36360
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
36383
36361
  if (delay && control && props.value !== stateValue) {
36384
36362
  changeStateValue(props.value);
36363
+ } else if (context.timer) {
36364
+ clearTimeout(context.timer);
36365
+ context.timer = null;
36385
36366
  }
36386
36367
  }, [props.value, delay, control]);
36387
36368
  var forceDelayChange = use_persist_fn(function () {
36388
- if (context.timer && context.delayChange) {
36369
+ if (context.delayChange) context.delayChange();
36370
+ if (context.timer) {
36389
36371
  clearTimeout(context.timer);
36390
- context.delayChange();
36391
36372
  context.timer = null;
36392
36373
  context.delayChange = null;
36393
36374
  }
@@ -73350,7 +73331,7 @@ var upload_interface = __webpack_require__(8821);
73350
73331
 
73351
73332
 
73352
73333
  /* harmony default export */ var src_0 = ({
73353
- version: '3.8.6-beta.6'
73334
+ version: '3.8.6-fix.1'
73354
73335
  });
73355
73336
  }();
73356
73337
  /******/ return __webpack_exports__;