linkmore-design 1.1.28-alpha.7 → 1.1.28-alpha.8
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.umd.js +67 -14
- package/dist/index.umd.min.js +5 -5
- package/es/LmEditTable/EditTable.js +62 -13
- package/es/LmEditTable/util.js +7 -3
- package/lib/LmEditTable/EditTable.js +62 -13
- package/lib/LmEditTable/util.js +7 -3
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -313372,7 +313372,7 @@
|
|
|
313372
313372
|
return isExpandRow(children) ? children === null || children === void 0 ? void 0 : (_children$3 = children[0]) === null || _children$3 === void 0 ? void 0 : (_children$3$props = _children$3.props) === null || _children$3$props === void 0 ? void 0 : (_children$3$props$chi = _children$3$props.children) === null || _children$3$props$chi === void 0 ? void 0 : (_children$3$props$chi2 = _children$3$props$chi[1]) === null || _children$3$props$chi2 === void 0 ? void 0 : (_children$3$props$chi3 = _children$3$props$chi2.props) === null || _children$3$props$chi3 === void 0 ? void 0 : _children$3$props$chi3['aria-label'] : '';
|
|
313373
313373
|
}
|
|
313374
313374
|
function checkMemoShouldUploadSpecialFun(prev, next) {
|
|
313375
|
-
var _prevCol$componentPro, _nextCol$componentPro, _prevCol$componentPro2, _nextCol$componentPro2, _prevCol$componentPro3, _nextCol$componentPro3, _prevCol$componentPro4, _nextCol$componentPro4, _prevCol$componentPro5, _nextCol$componentPro5, _next$className, _prevCol$componentPro6, _nextCol$componentPro6;
|
|
313375
|
+
var _prevCol$componentPro, _nextCol$componentPro, _prevCol$componentPro2, _nextCol$componentPro2, _prevCol$componentPro3, _nextCol$componentPro3, _prevCol$componentPro4, _nextCol$componentPro4, _prevCol$componentPro5, _nextCol$componentPro5, _next$className, _next$className2, _prevCol$componentPro6, _nextCol$componentPro6;
|
|
313376
313376
|
|
|
313377
313377
|
var checkExpandStatus = getExpandStatus(prev.children) === getExpandStatus(next.children);
|
|
313378
313378
|
|
|
@@ -313430,6 +313430,10 @@
|
|
|
313430
313430
|
return false;
|
|
313431
313431
|
}
|
|
313432
313432
|
|
|
313433
|
+
if (((_next$className2 = next.className) === null || _next$className2 === void 0 ? void 0 : _next$className2.indexOf('ant-table-cell-with-append')) > -1) {
|
|
313434
|
+
return false;
|
|
313435
|
+
}
|
|
313436
|
+
|
|
313433
313437
|
if (next.className.indexOf('ant-table-selection-column') > -1) {
|
|
313434
313438
|
var _prev$children, _prev$children$, _next$children, _next$children$;
|
|
313435
313439
|
|
|
@@ -314279,7 +314283,7 @@
|
|
|
314279
314283
|
onClick: toggleEdit
|
|
314280
314284
|
}, childNode);
|
|
314281
314285
|
} else if (isEdit && editable) {
|
|
314282
|
-
childNode = /*#__PURE__*/React__default['default'].createElement("div", {
|
|
314286
|
+
childNode = isExpandRow(childNode) ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
314283
314287
|
style: {
|
|
314284
314288
|
display: 'flex',
|
|
314285
314289
|
flexDirection: 'row',
|
|
@@ -314294,10 +314298,19 @@
|
|
|
314294
314298
|
noStyle: formProps ? false : true
|
|
314295
314299
|
}, formProps), {}, {
|
|
314296
314300
|
name: dataIndex
|
|
314297
|
-
}), Control(editable)))
|
|
314301
|
+
}), Control(editable))) : /*#__PURE__*/React__default['default'].createElement(Form$4.Item, _objectSpread(_objectSpread({
|
|
314302
|
+
errorPlacement: "right",
|
|
314303
|
+
valuePropName: editable === 'switch' ? 'checked' : 'value',
|
|
314304
|
+
style: {
|
|
314305
|
+
margin: 0
|
|
314306
|
+
},
|
|
314307
|
+
noStyle: formProps ? false : true
|
|
314308
|
+
}, formProps), {}, {
|
|
314309
|
+
name: dataIndex
|
|
314310
|
+
}), Control(editable));
|
|
314298
314311
|
|
|
314299
314312
|
if (editable === 'input' && ((resultComponentProps === null || resultComponentProps === void 0 ? void 0 : resultComponentProps.addonBefore) || (resultComponentProps === null || resultComponentProps === void 0 ? void 0 : resultComponentProps.addonAfter))) {
|
|
314300
|
-
childNode = /*#__PURE__*/React__default['default'].createElement("div", {
|
|
314313
|
+
childNode = isExpandRow(childNode) ? /*#__PURE__*/React__default['default'].createElement("div", {
|
|
314301
314314
|
style: {
|
|
314302
314315
|
display: 'flex',
|
|
314303
314316
|
flexDirection: 'row',
|
|
@@ -314311,7 +314324,15 @@
|
|
|
314311
314324
|
}, formProps), {}, {
|
|
314312
314325
|
noStyle: formProps ? false : true,
|
|
314313
314326
|
name: [dataIndex, 'value']
|
|
314314
|
-
}), Control(editable)))
|
|
314327
|
+
}), Control(editable))) : /*#__PURE__*/React__default['default'].createElement(Form$4.Item, _objectSpread(_objectSpread({
|
|
314328
|
+
errorPlacement: "right",
|
|
314329
|
+
style: {
|
|
314330
|
+
margin: 0
|
|
314331
|
+
}
|
|
314332
|
+
}, formProps), {}, {
|
|
314333
|
+
noStyle: formProps ? false : true,
|
|
314334
|
+
name: [dataIndex, 'value']
|
|
314335
|
+
}), Control(editable));
|
|
314315
314336
|
}
|
|
314316
314337
|
} else if (!isEdit && (componentProps === null || componentProps === void 0 ? void 0 : componentProps.options)) {
|
|
314317
314338
|
var _componentProps$optio, _componentProps$optio2;
|
|
@@ -314848,6 +314869,7 @@
|
|
|
314848
314869
|
maxWidth: 48,
|
|
314849
314870
|
className: 'drag-visible',
|
|
314850
314871
|
fixed: 'left',
|
|
314872
|
+
order: -2,
|
|
314851
314873
|
render: function render(_, record) {
|
|
314852
314874
|
return /*#__PURE__*/React__default['default'].createElement(Dragger$1, {
|
|
314853
314875
|
id: (record === null || record === void 0 ? void 0 : record[_rowKey]) || (record === null || record === void 0 ? void 0 : record.id)
|
|
@@ -314860,6 +314882,7 @@
|
|
|
314860
314882
|
maxWidth: 48,
|
|
314861
314883
|
ellipsis: true,
|
|
314862
314884
|
fixed: 'left',
|
|
314885
|
+
order: -1,
|
|
314863
314886
|
render: function render(_, record, index) {
|
|
314864
314887
|
var _deepDataSourceRef$cu9, _deepDataSourceRef$cu10, _deepDataSourceRef$cu11;
|
|
314865
314888
|
|
|
@@ -314871,6 +314894,7 @@
|
|
|
314871
314894
|
width: 48,
|
|
314872
314895
|
ellipsis: true,
|
|
314873
314896
|
maxWidth: 48,
|
|
314897
|
+
order: -1,
|
|
314874
314898
|
fixed: 'left'
|
|
314875
314899
|
}, indexCol || {}), {}, {
|
|
314876
314900
|
render: function render(_, record, index) {
|
|
@@ -314908,7 +314932,7 @@
|
|
|
314908
314932
|
var mainColumns = [];
|
|
314909
314933
|
var rightColumns = [];
|
|
314910
314934
|
(_localColumns2 = localColumns) === null || _localColumns2 === void 0 ? void 0 : _localColumns2.forEach(function (item) {
|
|
314911
|
-
if ((item === null || item === void 0 ? void 0 : item.fixed) === 'left') {
|
|
314935
|
+
if ((item === null || item === void 0 ? void 0 : item.fixed) === 'left' || (item === null || item === void 0 ? void 0 : item.fixed) === true) {
|
|
314912
314936
|
leftColumns.push(item);
|
|
314913
314937
|
} else if ((item === null || item === void 0 ? void 0 : item.fixed) === 'right') {
|
|
314914
314938
|
rightColumns.push(item);
|
|
@@ -315107,6 +315131,11 @@
|
|
|
315107
315131
|
while (1) {
|
|
315108
315132
|
switch (_context4.prev = _context4.next) {
|
|
315109
315133
|
case 0:
|
|
315134
|
+
if (!virtual) {
|
|
315135
|
+
_context4.next = 17;
|
|
315136
|
+
break;
|
|
315137
|
+
}
|
|
315138
|
+
|
|
315110
315139
|
fullNum = 0;
|
|
315111
315140
|
flag = true;
|
|
315112
315141
|
messageIndex = null;
|
|
@@ -315183,18 +315212,18 @@
|
|
|
315183
315212
|
};
|
|
315184
315213
|
}();
|
|
315185
315214
|
|
|
315186
|
-
_context4.next =
|
|
315215
|
+
_context4.next = 9;
|
|
315187
315216
|
return deepValidator(dataSource, null);
|
|
315188
315217
|
|
|
315189
|
-
case
|
|
315218
|
+
case 9:
|
|
315190
315219
|
if (!flag) {
|
|
315191
|
-
_context4.next =
|
|
315220
|
+
_context4.next = 13;
|
|
315192
315221
|
break;
|
|
315193
315222
|
}
|
|
315194
315223
|
|
|
315195
315224
|
return _context4.abrupt("return", Promise.resolve(dataSource));
|
|
315196
315225
|
|
|
315197
|
-
case
|
|
315226
|
+
case 13:
|
|
315198
315227
|
setTimeout(function () {
|
|
315199
315228
|
if (messageIndex !== null) {
|
|
315200
315229
|
var _scrollToIndexRef$cur;
|
|
@@ -315261,7 +315290,18 @@
|
|
|
315261
315290
|
}, 100);
|
|
315262
315291
|
return _context4.abrupt("return", Promise.reject(errorInfo));
|
|
315263
315292
|
|
|
315264
|
-
case
|
|
315293
|
+
case 15:
|
|
315294
|
+
_context4.next = 18;
|
|
315295
|
+
break;
|
|
315296
|
+
|
|
315297
|
+
case 17:
|
|
315298
|
+
return _context4.abrupt("return", Promise.all(Object.values(allFormListRef.current || []).map(function (item) {
|
|
315299
|
+
var _item$form;
|
|
315300
|
+
|
|
315301
|
+
return item === null || item === void 0 ? void 0 : (_item$form = item.form) === null || _item$form === void 0 ? void 0 : _item$form.validateFields();
|
|
315302
|
+
})));
|
|
315303
|
+
|
|
315304
|
+
case 18:
|
|
315265
315305
|
case "end":
|
|
315266
315306
|
return _context4.stop();
|
|
315267
315307
|
}
|
|
@@ -315421,6 +315461,19 @@
|
|
|
315421
315461
|
rowClassName: "editable-row",
|
|
315422
315462
|
bordered: true,
|
|
315423
315463
|
pagination: false,
|
|
315464
|
+
expandable: _objectSpread({
|
|
315465
|
+
expandedRowKeys: expandedRowKeys,
|
|
315466
|
+
fixed: true,
|
|
315467
|
+
indentSize: 0,
|
|
315468
|
+
expandIconColumnIndex: checkExpandIconColumnIndex({
|
|
315469
|
+
rowSelection: rowSelection,
|
|
315470
|
+
sortOpen: sortOpen,
|
|
315471
|
+
indexCol: indexCol
|
|
315472
|
+
}) || 0,
|
|
315473
|
+
onExpandedRowsChange: function onExpandedRowsChange(expandedRows) {
|
|
315474
|
+
return setExpandedRowKeys(expandedRows);
|
|
315475
|
+
}
|
|
315476
|
+
}, resetProps === null || resetProps === void 0 ? void 0 : resetProps.expandable),
|
|
315424
315477
|
rowSelection: !rowSelection ? undefined : _objectSpread(_objectSpread({
|
|
315425
315478
|
fixed: true,
|
|
315426
315479
|
type: 'checkbox',
|
|
@@ -315468,10 +315521,10 @@
|
|
|
315468
315521
|
} : undefined,
|
|
315469
315522
|
pagination: false,
|
|
315470
315523
|
// components={tableComponents}
|
|
315471
|
-
expandable: (
|
|
315524
|
+
expandable: _objectSpread({
|
|
315472
315525
|
expandedRowKeys: expandedRowKeys,
|
|
315473
315526
|
fixed: true,
|
|
315474
|
-
|
|
315527
|
+
indentSize: 0,
|
|
315475
315528
|
expandIconColumnIndex: checkExpandIconColumnIndex({
|
|
315476
315529
|
rowSelection: rowSelection,
|
|
315477
315530
|
sortOpen: sortOpen,
|
|
@@ -315480,7 +315533,7 @@
|
|
|
315480
315533
|
onExpandedRowsChange: function onExpandedRowsChange(expandedRows) {
|
|
315481
315534
|
return setExpandedRowKeys(expandedRows);
|
|
315482
315535
|
}
|
|
315483
|
-
},
|
|
315536
|
+
}, resetProps === null || resetProps === void 0 ? void 0 : resetProps.expandable),
|
|
315484
315537
|
rowSelection: !rowSelection ? undefined : _objectSpread(_objectSpread({
|
|
315485
315538
|
fixed: true,
|
|
315486
315539
|
type: 'checkbox',
|