sea-chart 1.1.45 → 1.1.46
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.
|
@@ -170,7 +170,6 @@ class RowCard extends Component {
|
|
|
170
170
|
highlightRowIndex,
|
|
171
171
|
noCardItemTip,
|
|
172
172
|
rowCardType,
|
|
173
|
-
columns,
|
|
174
173
|
renderedColumns,
|
|
175
174
|
unShowColumnKeyList,
|
|
176
175
|
showScrollBtn,
|
|
@@ -216,20 +215,28 @@ class RowCard extends Component {
|
|
|
216
215
|
}, displayRows.map((row, rowIdx) => {
|
|
217
216
|
const formulaRow = formulaRows && formulaRows[row._id] || {};
|
|
218
217
|
const displayRowName = getRowName(table.columns, row, formulaRows);
|
|
218
|
+
let renderedRow = {};
|
|
219
|
+
renderedColumns.forEach(column => {
|
|
220
|
+
renderedRow[column.key] = row[column.key];
|
|
221
|
+
});
|
|
222
|
+
const renderedTable = {
|
|
223
|
+
...table,
|
|
224
|
+
columns: renderedColumns
|
|
225
|
+
};
|
|
219
226
|
return /*#__PURE__*/React.createElement(RowCardItem, {
|
|
220
227
|
key: "row-card-".concat(rowIdx),
|
|
221
228
|
setItemScrollLeft: this.setItemScrollLeft,
|
|
222
229
|
onRef: this.onRef,
|
|
223
230
|
rowCardType: rowCardType,
|
|
224
|
-
table:
|
|
225
|
-
row:
|
|
231
|
+
table: renderedTable,
|
|
232
|
+
row: renderedRow,
|
|
226
233
|
isAdditionEditorView: isAdditionEditorView,
|
|
227
234
|
isHighlightRow: highlightRowIndex === rowIdx,
|
|
228
235
|
formulaRow: formulaRow,
|
|
229
236
|
formulaRows: formulaRows,
|
|
230
237
|
displayRowName: displayRowName,
|
|
231
238
|
rowIdx: rowIdx,
|
|
232
|
-
columns:
|
|
239
|
+
columns: renderedColumns,
|
|
233
240
|
unShowColumnKeyList: unShowColumnKeyList,
|
|
234
241
|
isShowRemoveCardItemBtn: isShowRemoveCardItemBtn,
|
|
235
242
|
isExpandRowDetail: isExpandRowDetail,
|