venus-design 1.0.89 → 1.0.91
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/VenusTable/index.js
CHANGED
|
@@ -337,7 +337,7 @@ var VenusTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
337
337
|
editingMap: editingMap,
|
|
338
338
|
toggleEdit: toggleEdit,
|
|
339
339
|
onUpdateFields: function () {
|
|
340
|
-
var _onUpdateFields = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(
|
|
340
|
+
var _onUpdateFields = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee3(fieldName, value, innerId, record) {
|
|
341
341
|
var ownerApp, appPrefix, res;
|
|
342
342
|
return _regeneratorRuntime().wrap(function _callee3$(_context3) {
|
|
343
343
|
while (1) switch (_context3.prev = _context3.next) {
|
|
@@ -349,7 +349,7 @@ var VenusTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
349
349
|
_context3.next = 6;
|
|
350
350
|
break;
|
|
351
351
|
}
|
|
352
|
-
props.actions.onUpdateFields(value,
|
|
352
|
+
props.actions.onUpdateFields(fieldName, value, innerId, record);
|
|
353
353
|
_context3.next = 10;
|
|
354
354
|
break;
|
|
355
355
|
case 6:
|
|
@@ -364,7 +364,7 @@ var VenusTable = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
364
364
|
if (res && res.success) {
|
|
365
365
|
//更新成功
|
|
366
366
|
if (props.actions && props.actions.updateFieldValueAfter) {
|
|
367
|
-
props.actions.updateFieldValueAfter(
|
|
367
|
+
props.actions.updateFieldValueAfter(fieldName, value, innerId, record, res);
|
|
368
368
|
}
|
|
369
369
|
}
|
|
370
370
|
case 10:
|
|
@@ -508,7 +508,7 @@ export var VENUS_TABLE_COLUMNRENDER_TYPE = {
|
|
|
508
508
|
}
|
|
509
509
|
}
|
|
510
510
|
if (actions && actions.isEditCell) {
|
|
511
|
-
if (!actions.isEditCell(record
|
|
511
|
+
if (!actions.isEditCell(record, column.fieldId)) {
|
|
512
512
|
return /*#__PURE__*/React.createElement("span", null, text);
|
|
513
513
|
}
|
|
514
514
|
}
|