@zat-design/sisyphus-react 3.11.5-beta.1 → 3.11.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.
@@ -0,0 +1,5 @@
1
+ {
2
+ "recommendations": [
3
+ "kisstkondoros.vscode-codemetrics"
4
+ ]
5
+ }
@@ -650,13 +650,13 @@ var ProModalSelect = function ProModalSelect(props, ref) {
650
650
  setState(nextState);
651
651
  }
652
652
  }, [onOff, visible, JSON.stringify(value)]);
653
- useEffect(function () {
653
+ useDeepCompareEffect(function () {
654
654
  if (value && !visible && isInit && !readOnly) {
655
655
  getInitValues();
656
656
  }
657
657
  }, [JSON.stringify(value), visible, isInit]);
658
658
  useDebounceEffect(function () {
659
- if (value && !visible && readOnly && (!isEqual(value, preValue.current) || (options === null || options === void 0 ? void 0 : options.length) === 0)) {
659
+ if (value && !visible && readOnly && !isEqual(value, preValue.current)) {
660
660
  var _options$some;
661
661
  preValue.current = value;
662
662
  var isHasValue = options === null || options === void 0 ? void 0 : (_options$some = options.some) === null || _options$some === void 0 ? void 0 : _options$some.call(options, function (item) {
@@ -679,7 +679,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
679
679
  }, 300);
680
680
  }
681
681
  }
682
- }, [JSON.stringify(value), visible, JSON.stringify(useRequest === null || useRequest === void 0 ? void 0 : (_useRequest$options9 = useRequest.options) === null || _useRequest$options9 === void 0 ? void 0 : _useRequest$options9.defaultParams), JSON.stringify(initParams), options === null || options === void 0 ? void 0 : options.length]);
682
+ }, [JSON.stringify(value), visible, JSON.stringify(useRequest === null || useRequest === void 0 ? void 0 : (_useRequest$options9 = useRequest.options) === null || _useRequest$options9 === void 0 ? void 0 : _useRequest$options9.defaultParams), JSON.stringify(initParams)]);
683
683
  useDebounceEffect(function () {
684
684
  if (!value) {
685
685
  if (defaultOne) {
@@ -645,13 +645,13 @@ var ProModalSelect = function ProModalSelect(props, ref) {
645
645
  setState(nextState);
646
646
  }
647
647
  }, [onOff, visible, JSON.stringify(value)]);
648
- (0, _react.useEffect)(function () {
648
+ (0, _ahooks.useDeepCompareEffect)(function () {
649
649
  if (value && !visible && isInit && !readOnly) {
650
650
  getInitValues();
651
651
  }
652
652
  }, [JSON.stringify(value), visible, isInit]);
653
653
  (0, _ahooks.useDebounceEffect)(function () {
654
- if (value && !visible && readOnly && (!(0, _lodash.isEqual)(value, preValue.current) || (options === null || options === void 0 ? void 0 : options.length) === 0)) {
654
+ if (value && !visible && readOnly && !(0, _lodash.isEqual)(value, preValue.current)) {
655
655
  var _options$some;
656
656
  preValue.current = value;
657
657
  var isHasValue = options === null || options === void 0 ? void 0 : (_options$some = options.some) === null || _options$some === void 0 ? void 0 : _options$some.call(options, function (item) {
@@ -674,7 +674,7 @@ var ProModalSelect = function ProModalSelect(props, ref) {
674
674
  }, 300);
675
675
  }
676
676
  }
677
- }, [JSON.stringify(value), visible, JSON.stringify(useRequest === null || useRequest === void 0 ? void 0 : (_useRequest$options9 = useRequest.options) === null || _useRequest$options9 === void 0 ? void 0 : _useRequest$options9.defaultParams), JSON.stringify(initParams), options === null || options === void 0 ? void 0 : options.length]);
677
+ }, [JSON.stringify(value), visible, JSON.stringify(useRequest === null || useRequest === void 0 ? void 0 : (_useRequest$options9 = useRequest.options) === null || _useRequest$options9 === void 0 ? void 0 : _useRequest$options9.defaultParams), JSON.stringify(initParams)]);
678
678
  (0, _ahooks.useDebounceEffect)(function () {
679
679
  if (!value) {
680
680
  if (defaultOne) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zat-design/sisyphus-react",
3
- "version": "3.11.5-beta.1",
3
+ "version": "3.11.5",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",