@luck-design-biz/luckda 0.0.16-6 → 0.0.16-7

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.
@@ -158,7 +158,7 @@ export var onBatchSubmitAction = function onBatchSubmitAction(_ref3, callback) {
158
158
  } else {
159
159
  result[formInfo.dataSetKey] = transform(value, function (_result, _value, _key) {
160
160
  _result[_key] = _value.map(function (_val) {
161
- return _objectSpread(_objectSpread({}, dataFormat(gridColumns, _val)), {}, _defineProperty({}, window.appConfig.constraintKeys.PRIMARY, _key === 'addList' ? null : item[window.appConfig.constraintKeys.PRIMARY]));
161
+ return _objectSpread(_objectSpread({}, dataFormat(gridColumns, _val)), {}, _defineProperty({}, window.appConfig.constraintKeys.PRIMARY, _key === 'addList' ? null : _val[window.appConfig.constraintKeys.PRIMARY]));
162
162
  });
163
163
  }, {});
164
164
  }
package/es/utils/grid.js CHANGED
@@ -81,7 +81,7 @@ export function getColumnRender(name, type) {
81
81
  name: file.origFileName,
82
82
  previewUrl: "".concat(api.LUCKDA_HOST).concat(file.previewUrl)
83
83
  };
84
- });
84
+ }); // 过滤删除文件
85
85
  return /*#__PURE__*/React.createElement(UploadGridCell, {
86
86
  fileList: fileList
87
87
  });
@@ -166,7 +166,7 @@ var onBatchSubmitAction = function onBatchSubmitAction(_ref3, callback) {
166
166
  } else {
167
167
  result[formInfo.dataSetKey] = (0, _lodash.transform)(value, function (_result, _value, _key) {
168
168
  _result[_key] = _value.map(function (_val) {
169
- return (0, _objectSpread4.default)((0, _objectSpread4.default)({}, (0, _utils2.dataFormat)(gridColumns, _val)), {}, (0, _defineProperty2.default)({}, window.appConfig.constraintKeys.PRIMARY, _key === 'addList' ? null : item[window.appConfig.constraintKeys.PRIMARY]));
169
+ return (0, _objectSpread4.default)((0, _objectSpread4.default)({}, (0, _utils2.dataFormat)(gridColumns, _val)), {}, (0, _defineProperty2.default)({}, window.appConfig.constraintKeys.PRIMARY, _key === 'addList' ? null : _val[window.appConfig.constraintKeys.PRIMARY]));
170
170
  });
171
171
  }, {});
172
172
  }
package/lib/utils/grid.js CHANGED
@@ -88,7 +88,7 @@ function getColumnRender(name, type) {
88
88
  name: file.origFileName,
89
89
  previewUrl: "".concat(_ApiConfig.default.LUCKDA_HOST).concat(file.previewUrl)
90
90
  };
91
- });
91
+ }); // 过滤删除文件
92
92
  return /*#__PURE__*/_react.default.createElement(_GridCell.default, {
93
93
  fileList: fileList
94
94
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luck-design-biz/luckda",
3
- "version": "0.0.16-6",
3
+ "version": "0.0.16-7",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",