kts-component-invoice-operate 3.2.268 → 3.2.269

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
@@ -37465,7 +37465,11 @@ function DifferenceInputModal(props) {
37465
37465
  amountIncludeTax: (_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.amountIncludeTax,
37466
37466
  projectCode: (_props$value2 = props.value) === null || _props$value2 === void 0 ? void 0 : _props$value2.projectCode
37467
37467
  });
37468
- setDataSource(((_props$value3 = props.value) === null || _props$value3 === void 0 ? void 0 : _props$value3.rows) || []);
37468
+ setDataSource((((_props$value3 = props.value) === null || _props$value3 === void 0 ? void 0 : _props$value3.rows) || []).map(function (item) {
37469
+ return _objectSpread2(_objectSpread2({}, item), {}, {
37470
+ $index: item.$index || v4()
37471
+ });
37472
+ }));
37469
37473
  }
37470
37474
  }, [open, props.value]);
37471
37475
  return /*#__PURE__*/React.createElement(Modal$2, {
package/dist/index.js CHANGED
@@ -37475,7 +37475,11 @@ function DifferenceInputModal(props) {
37475
37475
  amountIncludeTax: (_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.amountIncludeTax,
37476
37476
  projectCode: (_props$value2 = props.value) === null || _props$value2 === void 0 ? void 0 : _props$value2.projectCode
37477
37477
  });
37478
- setDataSource(((_props$value3 = props.value) === null || _props$value3 === void 0 ? void 0 : _props$value3.rows) || []);
37478
+ setDataSource((((_props$value3 = props.value) === null || _props$value3 === void 0 ? void 0 : _props$value3.rows) || []).map(function (item) {
37479
+ return _objectSpread2(_objectSpread2({}, item), {}, {
37480
+ $index: item.$index || uuid.v4()
37481
+ });
37482
+ }));
37479
37483
  }
37480
37484
  }, [open, props.value]);
37481
37485
  return /*#__PURE__*/React__default['default'].createElement(ktsComponentsAntdX4.Modal, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kts-component-invoice-operate",
3
- "version": "3.2.268",
3
+ "version": "3.2.269",
4
4
  "scripts": {
5
5
  "dev": "dumi dev --max-old-space-size=6096",
6
6
  "start": "dumi dev",
@@ -324,7 +324,10 @@ export function DifferenceInputModal(props: IDifferenceInputModalProps) {
324
324
  amountIncludeTax: props.value?.amountIncludeTax,
325
325
  projectCode: props.value?.projectCode,
326
326
  });
327
- setDataSource(props.value?.rows || []);
327
+ setDataSource((props.value?.rows || []).map((item) => ({
328
+ ...item,
329
+ $index: item.$index || uuidv4(),
330
+ })));
328
331
  }
329
332
  }, [open, props.value]);
330
333