shineout 3.4.7-beta.2 → 3.4.7-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
@@ -492,5 +492,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
492
492
  // 此文件由脚本自动生成,请勿直接修改。
493
493
  // This file was generated automatically by a script. Please do not modify it directly.
494
494
  var _default = exports.default = {
495
- version: '3.4.7-beta.2'
495
+ version: '3.4.7-fix.1'
496
496
  };
package/dist/shineout.js CHANGED
@@ -11984,7 +11984,7 @@ var handleStyle = function handleStyle(style) {
11984
11984
  };
11985
11985
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
11986
11986
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
11987
- /* harmony default export */ var version = ('3.4.7-beta.2');
11987
+ /* harmony default export */ var version = ('3.4.7-fix.1');
11988
11988
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
11989
11989
 
11990
11990
 
@@ -31064,9 +31064,12 @@ var spin_Spin = function Spin() {
31064
31064
  tipProps = props.tip,
31065
31065
  tipClassName = props.tipClassName,
31066
31066
  colorProps = props.color,
31067
- modeProps = props.mode;
31067
+ modeProps = props.mode,
31068
+ _props$ignoreConfig = props.ignoreConfig,
31069
+ ignoreConfig = _props$ignoreConfig === void 0 ? false : _props$ignoreConfig;
31068
31070
  var config = useConfig();
31069
31071
  var getSpinName = function getSpinName() {
31072
+ if (ignoreConfig) return props.name;
31070
31073
  var spin = config.spin;
31071
31074
  if (!spin) return;
31072
31075
  if (typeof spin === 'string') {
@@ -31079,18 +31082,21 @@ var spin_Spin = function Spin() {
31079
31082
  return;
31080
31083
  };
31081
31084
  var getSpinTip = function getSpinTip() {
31085
+ if (ignoreConfig) return props.tip;
31082
31086
  var spin = config.spin;
31083
31087
  if (!spin || typeof_default()(spin) !== 'object') return;
31084
31088
  var tip = spin.tip;
31085
31089
  return tip;
31086
31090
  };
31087
31091
  var getSpinColor = function getSpinColor() {
31092
+ if (ignoreConfig) return props.color;
31088
31093
  var spin = config.spin;
31089
31094
  if (!spin || typeof_default()(spin) !== 'object') return;
31090
31095
  var color = spin.color;
31091
31096
  return color;
31092
31097
  };
31093
31098
  var getSpinMode = function getSpinMode() {
31099
+ if (ignoreConfig) return props.mode;
31094
31100
  var spin = config.spin;
31095
31101
  if (!spin || typeof_default()(spin) !== 'object') return;
31096
31102
  var mode = spin.mode;
@@ -31236,7 +31242,8 @@ var Button = function Button(props) {
31236
31242
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(src_spin_spin, {
31237
31243
  size: getSpinSize(),
31238
31244
  jssStyle: jssStyle,
31239
- name: "ring"
31245
+ name: "ring",
31246
+ ignoreConfig: true
31240
31247
  })
31241
31248
  });
31242
31249
  if (renderLoading) {
@@ -32565,19 +32572,18 @@ function useInputAble(props) {
32565
32572
  var render = useRender(syncValue);
32566
32573
  var shouldUseState = delay || !control;
32567
32574
  var value = shouldUseState ? stateValue : valuePo;
32568
- (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
32569
- if (context.timer) {
32570
- clearTimeout(context.timer);
32571
- context.timer = null;
32572
- }
32575
+ (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
32573
32576
  if (delay && control && props.value !== stateValue) {
32574
32577
  changeStateValue(props.value);
32578
+ } else if (context.timer) {
32579
+ clearTimeout(context.timer);
32580
+ context.timer = null;
32575
32581
  }
32576
32582
  }, [props.value, delay, control]);
32577
32583
  var forceDelayChange = use_persist_fn(function () {
32578
- if (context.timer && context.delayChange) {
32584
+ if (context.delayChange) context.delayChange();
32585
+ if (context.timer) {
32579
32586
  clearTimeout(context.timer);
32580
- context.delayChange();
32581
32587
  context.timer = null;
32582
32588
  context.delayChange = null;
32583
32589
  }
@@ -36562,7 +36568,9 @@ var CascaderNode = function CascaderNode(props) {
36562
36568
  },
36563
36569
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(src_spin_spin, {
36564
36570
  jssStyle: jssStyle,
36565
- size: 10
36571
+ size: 10,
36572
+ name: "ring",
36573
+ ignoreConfig: true
36566
36574
  })
36567
36575
  });
36568
36576
  }
@@ -48407,7 +48415,9 @@ var Image = function Image(props) {
48407
48415
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(src_spin_spin, {
48408
48416
  jssStyle: jssStyle,
48409
48417
  color: "#B3B7C1",
48410
- size: 16
48418
+ size: 16,
48419
+ name: "ring",
48420
+ ignoreConfig: true
48411
48421
  })
48412
48422
  });
48413
48423
  };
@@ -50162,7 +50172,9 @@ var NodeContent = function NodeContent(props) {
50162
50172
  dir: config.direction,
50163
50173
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(src_spin_spin, {
50164
50174
  size: 12,
50165
- jssStyle: jssStyle
50175
+ jssStyle: jssStyle,
50176
+ ignoreConfig: true,
50177
+ name: "ring"
50166
50178
  })
50167
50179
  });
50168
50180
  };
@@ -60790,7 +60802,7 @@ var TransferList = function TransferList(props) {
60790
60802
  var listClass = classnames_default()(styles.list, listClassName);
60791
60803
  var getLineHeight = function getLineHeight() {
60792
60804
  if (lineHeightProp) {
60793
- console.log('lineHeightProp', lineHeightProp);
60805
+ // console.log('lineHeightProp', lineHeightProp);
60794
60806
  return lineHeightProp;
60795
60807
  }
60796
60808
  if (size === 'small') {
@@ -60932,6 +60944,8 @@ var TransferList = function TransferList(props) {
60932
60944
  jssStyle: jssStyle,
60933
60945
  loading: loading,
60934
60946
  size: 24,
60947
+ name: "ring",
60948
+ ignoreConfig: true,
60935
60949
  children: [onFilter && renderFilter(), renderList(), renderFooter()]
60936
60950
  })]
60937
60951
  });
@@ -62555,7 +62569,8 @@ var upload_result_Result = function Result(props) {
62555
62569
  children: [status === 1 && /*#__PURE__*/(0,jsx_runtime.jsx)(src_spin_spin, {
62556
62570
  jssStyle: props.jssStyle,
62557
62571
  size: 10,
62558
- name: 'ring'
62572
+ name: 'ring',
62573
+ ignoreConfig: true
62559
62574
  }), status === 2 && icons_config.upload.Success, status === 3 && icons_config.upload.Warning]
62560
62575
  }), status === 1 && props.process !== -1 && /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
62561
62576
  children: [Math.min(99, Math.floor(props.process || 0)), "%"]
@@ -62608,6 +62623,7 @@ var upload_result_Result = function Result(props) {
62608
62623
  size: 'null',
62609
62624
  jssStyle: props.jssStyle,
62610
62625
  name: 'ring',
62626
+ ignoreConfig: true,
62611
62627
  className: uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.imageResultLoading
62612
62628
  }), (status === 2 || status === -1) && src && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
62613
62629
  className: classnames_default()(uploadClasses === null || uploadClasses === void 0 ? void 0 : uploadClasses.icon),
@@ -63055,7 +63071,9 @@ var UploadButton = function UploadButton(props) {
63055
63071
  children: /*#__PURE__*/(0,jsx_runtime.jsx)(src_spin_spin, {
63056
63072
  jssStyle: props.jssStyle,
63057
63073
  size: 10,
63058
- color: color
63074
+ color: color,
63075
+ ignoreConfig: true,
63076
+ name: "ring"
63059
63077
  })
63060
63078
  }), typeof loading === 'string' ? loading : placeholder]
63061
63079
  });
@@ -65444,7 +65462,7 @@ var upload_interface = __webpack_require__(8821);
65444
65462
 
65445
65463
 
65446
65464
  /* harmony default export */ var src_0 = ({
65447
- version: '3.4.7-beta.2'
65465
+ version: '3.4.7-fix.1'
65448
65466
  });
65449
65467
  }();
65450
65468
  /******/ return __webpack_exports__;