1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-26 23:34:45 +00:00

feat: metadata view support hidden columns and group rows (#6441)

* feat: metadata view support hidden columns and group rows

* feat: optimize code

* feat: optimzie code

* feat: optimize css

* feat: optimzie group

* feat: optimzie group

* fix: proptypes

---------

Co-authored-by: 杨国璇 <ygx@Hello-word.local>
This commit is contained in:
杨国璇
2024-07-31 12:11:00 +08:00
committed by GitHub
parent 555395e94d
commit f678bd6ce0
68 changed files with 1361 additions and 1471 deletions

View File

@@ -99,17 +99,6 @@ export const getGroupsRows = (
groupPathString,
};
});
rows.push({
type: GROUP_ROW_TYPE.BTN_INSERT_ROW,
key: `btn-insert-row_${groupKey}`,
visible: isBtnInsertRowVisible,
height: INSERT_ROW_HEIGHT,
level: currentLevel,
lastRowIndex,
left,
groupPath,
groupPathString,
});
groupContainer.first_row_id = rows[0].rowId;
groupContainer.count = rowsLength;
groupContainer.height = rowsHeight + btnInsertRowHeight + GROUP_HEADER_HEIGHT;
@@ -121,7 +110,7 @@ export const getGroupsRows = (
};
export const setupGroupsRows = (groupRows, maxLevel) => {
let groupRowsHeight = 0;
let groupRowsHeight = GROUP_VIEW_OFFSET;
let top = GROUP_VIEW_OFFSET;
let idGroupRowMap = {};
let pervVisibleGroupLevel;
@@ -130,7 +119,7 @@ export const setupGroupsRows = (groupRows, maxLevel) => {
let newGroupRow = {
...flattenGroup,
top,
groupRowIndex: index,
groupRecordIndex: index,
};
if (type === GROUP_ROW_TYPE.GROUP_CONTAINER) {
if (visible) {