@bit-sun/business-component 4.0.12-alpha.24 → 4.0.12-alpha.25

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/dist/index.esm.js CHANGED
@@ -4472,6 +4472,7 @@ var PropertySelector = function PropertySelector(_ref) {
4472
4472
  });
4473
4473
  }, [choosedClassify]);
4474
4474
  useEffect(function () {
4475
+ var _classifyOptionList$2;
4475
4476
  if (visible) {
4476
4477
  var _classifyOptionList$;
4477
4478
  // 获取选中品类信息
@@ -4488,7 +4489,9 @@ var PropertySelector = function PropertySelector(_ref) {
4488
4489
  })) {
4489
4490
  setShowNotCommon(true);
4490
4491
  }
4491
- settingValue.current = _objectSpread2({}, value);
4492
+ settingValue.current = _objectSpread2(_objectSpread2({}, value), {}, {
4493
+ classifyCode: (value === null || value === void 0 ? void 0 : value.classifyCode) || ((_classifyOptionList$2 = classifyOptionList[0]) === null || _classifyOptionList$2 === void 0 ? void 0 : _classifyOptionList$2.value)
4494
+ });
4492
4495
  setChoosedValues(choosedPropertyList);
4493
4496
  }, [value, visible]);
4494
4497
  // 关闭弹窗回传组件值
package/dist/index.js CHANGED
@@ -4495,6 +4495,7 @@ var PropertySelector = function PropertySelector(_ref) {
4495
4495
  });
4496
4496
  }, [choosedClassify]);
4497
4497
  React$1.useEffect(function () {
4498
+ var _classifyOptionList$2;
4498
4499
  if (visible) {
4499
4500
  var _classifyOptionList$;
4500
4501
  // 获取选中品类信息
@@ -4511,7 +4512,9 @@ var PropertySelector = function PropertySelector(_ref) {
4511
4512
  })) {
4512
4513
  setShowNotCommon(true);
4513
4514
  }
4514
- settingValue.current = _objectSpread2({}, value);
4515
+ settingValue.current = _objectSpread2(_objectSpread2({}, value), {}, {
4516
+ classifyCode: (value === null || value === void 0 ? void 0 : value.classifyCode) || ((_classifyOptionList$2 = classifyOptionList[0]) === null || _classifyOptionList$2 === void 0 ? void 0 : _classifyOptionList$2.value)
4517
+ });
4515
4518
  setChoosedValues(choosedPropertyList);
4516
4519
  }, [value, visible]);
4517
4520
  // 关闭弹窗回传组件值
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "4.0.12-alpha.24",
3
+ "version": "4.0.12-alpha.25",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -113,7 +113,10 @@ const PropertySelector = ({
113
113
  if ((value?.propertyList || []).some(item => !item.isCommonUse)) {
114
114
  setShowNotCommon(true);
115
115
  }
116
- settingValue.current = {...value};
116
+ settingValue.current = {
117
+ ...value,
118
+ classifyCode: value?.classifyCode || classifyOptionList[0]?.value,
119
+ };
117
120
  setChoosedValues(choosedPropertyList);
118
121
 
119
122
  }, [value, visible])