shineout 3.6.5-beta.3 → 3.6.5-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
@@ -514,5 +514,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
514
514
  // 此文件由脚本自动生成,请勿直接修改。
515
515
  // This file was generated automatically by a script. Please do not modify it directly.
516
516
  var _default = exports.default = {
517
- version: '3.6.5-beta.3'
517
+ version: '3.6.5-beta.5'
518
518
  };
package/dist/shineout.js CHANGED
@@ -12217,7 +12217,7 @@ var handleStyle = function handleStyle(style) {
12217
12217
  };
12218
12218
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12219
12219
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12220
- /* harmony default export */ var version = ('3.6.5-beta.3');
12220
+ /* harmony default export */ var version = ('3.6.5-beta.5');
12221
12221
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12222
12222
 
12223
12223
 
@@ -34961,11 +34961,11 @@ function useInputAble(props) {
34961
34961
  context.delayChange = function () {
34962
34962
  context.timer = null;
34963
34963
  context.delayChange = null;
34964
- onChange.apply(void 0, [vv].concat(other));
34964
+ onChange.apply(void 0, [isFunc(vv) ? vv() : vv].concat(other));
34965
34965
  render();
34966
34966
  };
34967
34967
  if (!delay) {
34968
- onChange.apply(void 0, [vv].concat(other));
34968
+ onChange.apply(void 0, [isFunc(vv) ? vv() : vv].concat(other));
34969
34969
  } else {
34970
34970
  if (context.timer) clearTimeout(context.timer);
34971
34971
  context.timer = setTimeout(context.delayChange, delay);
@@ -50740,8 +50740,6 @@ var use_form_flow_UseFormItem = function UseFormItem(props) {
50740
50740
 
50741
50741
  var FormFlow = function FormFlow(props) {
50742
50742
  var _props$names;
50743
- var _props$strict = props.strict,
50744
- strict = _props$strict === void 0 ? true : _props$strict;
50745
50743
  var datum = use_form_flow({
50746
50744
  names: props.names
50747
50745
  });
@@ -50749,13 +50747,13 @@ var FormFlow = function FormFlow(props) {
50749
50747
  return datum === null || datum === void 0 ? void 0 : datum.get(name);
50750
50748
  });
50751
50749
  var memoizedResult = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
50752
- if (!strict) return null;
50750
+ if (!props.strict) return null;
50753
50751
  if (isFunc(props.children)) {
50754
50752
  return props.children(datum);
50755
50753
  }
50756
50754
  return props.children;
50757
50755
  }, [valueOfNames === null || valueOfNames === void 0 ? void 0 : valueOfNames.toString()]);
50758
- if (strict) {
50756
+ if (props.strict) {
50759
50757
  return memoizedResult;
50760
50758
  }
50761
50759
  if (isFunc(props.children)) {
@@ -66525,11 +66523,12 @@ var promised = function promised(action) {
66525
66523
  resolve(true);
66526
66524
  });
66527
66525
  };
66526
+ var defaultValue = [];
66528
66527
  var useUpload = function useUpload(props) {
66529
66528
  var _props$limit = props.limit,
66530
66529
  limit = _props$limit === void 0 ? 100 : _props$limit,
66531
66530
  _props$value = props.value,
66532
- value = _props$value === void 0 ? [] : _props$value;
66531
+ value = _props$value === void 0 ? defaultValue : _props$value;
66533
66532
  var accept = props.forceAccept || props.accept;
66534
66533
  var forceAccept = !!props.forceAccept;
66535
66534
  var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)({}),
@@ -66692,10 +66691,9 @@ var useUpload = function useUpload(props) {
66692
66691
  });
66693
66692
  });
66694
66693
  // add value
66695
- var values = utils_immer_produce(latestState.value, function (draft) {
66696
- draft.push(result);
66694
+ props.onChange(function (prev) {
66695
+ return [].concat(toConsumableArray_default()(prev || []), [result]);
66697
66696
  });
66698
- props.onChange(values);
66699
66697
  }
66700
66698
  },
66701
66699
  onError: function onError(xhr) {
@@ -70036,7 +70034,7 @@ var upload_interface = __webpack_require__(8821);
70036
70034
 
70037
70035
 
70038
70036
  /* harmony default export */ var src_0 = ({
70039
- version: '3.6.5-beta.3'
70037
+ version: '3.6.5-beta.5'
70040
70038
  });
70041
70039
  }();
70042
70040
  /******/ return __webpack_exports__;