linkmore-design 1.0.50 → 1.0.51
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/LmTable/Table.js
CHANGED
|
@@ -155,7 +155,6 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
155
155
|
var index = dataSource.findIndex(function (x) {
|
|
156
156
|
return x[rowKey || 'index'] === restProps['data-row-key'];
|
|
157
157
|
});
|
|
158
|
-
console.log(dataSource, restProps, 222, index);
|
|
159
158
|
return /*#__PURE__*/_react.default.createElement(SortableItem, (0, _extends2.default)({
|
|
160
159
|
index: index
|
|
161
160
|
}, restProps));
|
|
@@ -218,7 +217,6 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
218
217
|
}
|
|
219
218
|
});
|
|
220
219
|
});
|
|
221
|
-
console.log(sortOpen ? [sortDefaultColumnItem].concat((0, _toConsumableArray2.default)(result)) : result, 'sortOpen ? [sortDefaultColumnItem, ...result] : result');
|
|
222
220
|
return sortOpen ? [sortDefaultColumnItem].concat((0, _toConsumableArray2.default)(result)) : result;
|
|
223
221
|
}, [useColumns, sortOpen]);
|
|
224
222
|
(0, _react.useEffect)(function () {
|
|
@@ -230,8 +228,6 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
230
228
|
trigger = _Object$assign.trigger,
|
|
231
229
|
highlight = _Object$assign.highlight;
|
|
232
230
|
|
|
233
|
-
console.log(trigger, highlight, 'rowclick');
|
|
234
|
-
|
|
235
231
|
if (highlight) {
|
|
236
232
|
setActiveKey(record[rowKey]);
|
|
237
233
|
}
|
|
@@ -410,7 +406,9 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
410
406
|
rowClick === null || rowClick === void 0 ? void 0 : rowClick(value);
|
|
411
407
|
},
|
|
412
408
|
checkboxRecords: useSelectedRows.selectedRows,
|
|
413
|
-
columns: (
|
|
409
|
+
columns: useColumns.map(function (item) {
|
|
410
|
+
return (0, _lodash.omit)(item, ['render', 'sorter', 'onFilter', 'filters']);
|
|
411
|
+
})
|
|
414
412
|
};
|
|
415
413
|
}); // loading触发清空选中状态
|
|
416
414
|
|
|
@@ -1101,6 +1101,12 @@ html {
|
|
|
1101
1101
|
#lm_protable_warp .lm_protable .lm_table_empty > span {
|
|
1102
1102
|
color: var(--font-color);
|
|
1103
1103
|
}
|
|
1104
|
+
#lm_protable_warp .lm_protable .ant-table-empty table {
|
|
1105
|
+
height: 100%;
|
|
1106
|
+
}
|
|
1107
|
+
#lm_protable_warp .lm_protable .ant-table-empty table .ant-table-cell {
|
|
1108
|
+
border-bottom: 0;
|
|
1109
|
+
}
|
|
1104
1110
|
#lm_protable_warp .ant-table-expand-icon-col {
|
|
1105
1111
|
width: 32px;
|
|
1106
1112
|
}
|
package/lib/LmTable/Table.js
CHANGED
|
@@ -155,7 +155,6 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
155
155
|
var index = dataSource.findIndex(function (x) {
|
|
156
156
|
return x[rowKey || 'index'] === restProps['data-row-key'];
|
|
157
157
|
});
|
|
158
|
-
console.log(dataSource, restProps, 222, index);
|
|
159
158
|
return /*#__PURE__*/_react.default.createElement(SortableItem, (0, _extends2.default)({
|
|
160
159
|
index: index
|
|
161
160
|
}, restProps));
|
|
@@ -218,7 +217,6 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
218
217
|
}
|
|
219
218
|
});
|
|
220
219
|
});
|
|
221
|
-
console.log(sortOpen ? [sortDefaultColumnItem].concat((0, _toConsumableArray2.default)(result)) : result, 'sortOpen ? [sortDefaultColumnItem, ...result] : result');
|
|
222
220
|
return sortOpen ? [sortDefaultColumnItem].concat((0, _toConsumableArray2.default)(result)) : result;
|
|
223
221
|
}, [useColumns, sortOpen]);
|
|
224
222
|
(0, _react.useEffect)(function () {
|
|
@@ -230,8 +228,6 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
230
228
|
trigger = _Object$assign.trigger,
|
|
231
229
|
highlight = _Object$assign.highlight;
|
|
232
230
|
|
|
233
|
-
console.log(trigger, highlight, 'rowclick');
|
|
234
|
-
|
|
235
231
|
if (highlight) {
|
|
236
232
|
setActiveKey(record[rowKey]);
|
|
237
233
|
}
|
|
@@ -410,7 +406,9 @@ var ResetTable = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
410
406
|
rowClick === null || rowClick === void 0 ? void 0 : rowClick(value);
|
|
411
407
|
},
|
|
412
408
|
checkboxRecords: useSelectedRows.selectedRows,
|
|
413
|
-
columns: (
|
|
409
|
+
columns: useColumns.map(function (item) {
|
|
410
|
+
return (0, _lodash.omit)(item, ['render', 'sorter', 'onFilter', 'filters']);
|
|
411
|
+
})
|
|
414
412
|
};
|
|
415
413
|
}); // loading触发清空选中状态
|
|
416
414
|
|
|
@@ -1101,6 +1101,12 @@ html {
|
|
|
1101
1101
|
#lm_protable_warp .lm_protable .lm_table_empty > span {
|
|
1102
1102
|
color: var(--font-color);
|
|
1103
1103
|
}
|
|
1104
|
+
#lm_protable_warp .lm_protable .ant-table-empty table {
|
|
1105
|
+
height: 100%;
|
|
1106
|
+
}
|
|
1107
|
+
#lm_protable_warp .lm_protable .ant-table-empty table .ant-table-cell {
|
|
1108
|
+
border-bottom: 0;
|
|
1109
|
+
}
|
|
1104
1110
|
#lm_protable_warp .ant-table-expand-icon-col {
|
|
1105
1111
|
width: 32px;
|
|
1106
1112
|
}
|