shineout 3.8.4-beta.8 → 3.8.4-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.4-beta.8'
525
+ version: '3.8.4-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.4-beta.8');
12389
+ /* harmony default export */ var version = ('3.8.4-fix.1');
12390
12390
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12391
12391
 
12392
12392
 
@@ -36317,19 +36317,18 @@ function useInputAble(props) {
36317
36317
  var render = useRender(syncValue);
36318
36318
  var shouldUseState = delay || !control;
36319
36319
  var value = shouldUseState ? stateValue : valuePo;
36320
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
36321
- if (context.timer) {
36322
- clearTimeout(context.timer);
36323
- context.timer = null;
36324
- }
36320
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
36325
36321
  if (delay && control && props.value !== stateValue) {
36326
36322
  changeStateValue(props.value);
36323
+ } else if (context.timer) {
36324
+ clearTimeout(context.timer);
36325
+ context.timer = null;
36327
36326
  }
36328
36327
  }, [props.value, delay, control]);
36329
36328
  var forceDelayChange = use_persist_fn(function () {
36330
- if (context.timer && context.delayChange) {
36329
+ if (context.delayChange) context.delayChange();
36330
+ if (context.timer) {
36331
36331
  clearTimeout(context.timer);
36332
- context.delayChange();
36333
36332
  context.timer = null;
36334
36333
  context.delayChange = null;
36335
36334
  }
@@ -70825,6 +70824,7 @@ var UploadButton = function UploadButton(props) {
70825
70824
  var uploading = process >= 0;
70826
70825
  var style = defineProperty_default()(defineProperty_default()({}, isRtl ? 'left' : 'right', uploading ? "".concat(100 - Math.min(99, process), "%") : '100%'), isRtl ? 'right' : 'left', 0);
70827
70826
  return /*#__PURE__*/(0,jsx_runtime.jsx)(src_upload_upload, objectSpread2_default()(objectSpread2_default()(objectSpread2_default()({}, props), innerProps), {}, {
70827
+ limit: undefined,
70828
70828
  onProgress: onProgress,
70829
70829
  onStart: onStart,
70830
70830
  onSuccess: onSuccess,
@@ -73278,7 +73278,7 @@ var upload_interface = __webpack_require__(8821);
73278
73278
 
73279
73279
 
73280
73280
  /* harmony default export */ var src_0 = ({
73281
- version: '3.8.4-beta.8'
73281
+ version: '3.8.4-fix.1'
73282
73282
  });
73283
73283
  }();
73284
73284
  /******/ return __webpack_exports__;