@zat-design/sisyphus-react 3.3.0-beta.2 → 3.3.0-beta.3
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/es/ProEditTable/index.js
CHANGED
|
@@ -101,7 +101,8 @@ var ProEditTable = function ProEditTable(_ref, ref) {
|
|
|
101
101
|
var getRowKey = function getRowKey(record) {
|
|
102
102
|
var key = record.rowKey || getRandom();
|
|
103
103
|
if (rowKey) {
|
|
104
|
-
|
|
104
|
+
var _ref2;
|
|
105
|
+
key = (_ref2 = typeof rowKey === 'function' ? rowKey(record) : record[rowKey]) !== null && _ref2 !== void 0 ? _ref2 : key;
|
|
105
106
|
}
|
|
106
107
|
return key;
|
|
107
108
|
};
|
|
@@ -212,7 +213,7 @@ var ProEditTable = function ProEditTable(_ref, ref) {
|
|
|
212
213
|
return isForbiddenBtn('mulDelete') ? rowSelection : _rowSelection;
|
|
213
214
|
};
|
|
214
215
|
var setColumns = /*#__PURE__*/function () {
|
|
215
|
-
var
|
|
216
|
+
var _ref3 = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
216
217
|
var nextColumns;
|
|
217
218
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
218
219
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -231,7 +232,7 @@ var ProEditTable = function ProEditTable(_ref, ref) {
|
|
|
231
232
|
}, _callee);
|
|
232
233
|
}));
|
|
233
234
|
return function setColumns() {
|
|
234
|
-
return
|
|
235
|
+
return _ref3.apply(this, arguments);
|
|
235
236
|
};
|
|
236
237
|
}();
|
|
237
238
|
useDebounceEffect(function () {
|
|
@@ -104,7 +104,8 @@ var ProEditTable = function ProEditTable(_ref, ref) {
|
|
|
104
104
|
var getRowKey = function getRowKey(record) {
|
|
105
105
|
var key = record.rowKey || (0, _tools.getRandom)();
|
|
106
106
|
if (rowKey) {
|
|
107
|
-
|
|
107
|
+
var _ref2;
|
|
108
|
+
key = (_ref2 = typeof rowKey === 'function' ? rowKey(record) : record[rowKey]) !== null && _ref2 !== void 0 ? _ref2 : key;
|
|
108
109
|
}
|
|
109
110
|
return key;
|
|
110
111
|
};
|
|
@@ -215,7 +216,7 @@ var ProEditTable = function ProEditTable(_ref, ref) {
|
|
|
215
216
|
return isForbiddenBtn('mulDelete') ? rowSelection : _rowSelection;
|
|
216
217
|
};
|
|
217
218
|
var setColumns = /*#__PURE__*/function () {
|
|
218
|
-
var
|
|
219
|
+
var _ref3 = (0, _asyncToGenerator2.default)( /*#__PURE__*/(0, _regeneratorRuntime2.default)().mark(function _callee() {
|
|
219
220
|
var nextColumns;
|
|
220
221
|
return (0, _regeneratorRuntime2.default)().wrap(function _callee$(_context) {
|
|
221
222
|
while (1) switch (_context.prev = _context.next) {
|
|
@@ -234,7 +235,7 @@ var ProEditTable = function ProEditTable(_ref, ref) {
|
|
|
234
235
|
}, _callee);
|
|
235
236
|
}));
|
|
236
237
|
return function setColumns() {
|
|
237
|
-
return
|
|
238
|
+
return _ref3.apply(this, arguments);
|
|
238
239
|
};
|
|
239
240
|
}();
|
|
240
241
|
(0, _ahooks.useDebounceEffect)(function () {
|