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

feat: metadata view part (#6289)

* feat: metadata view part

* feat: optimize code

---------

Co-authored-by: 杨国璇 <ygx@Hello-word.local>
This commit is contained in:
杨国璇
2024-07-03 17:04:30 +08:00
committed by GitHub
parent 76af3d28ee
commit 8b6abc7855
59 changed files with 1823 additions and 815 deletions

View File

@@ -1,11 +1,11 @@
import { getColumnByKey } from './column-utils';
import { getColumnByKey } from '../_basic';
import { GROUP_HEADER_HEIGHT, GROUP_ROW_TYPE, GROUP_VIEW_OFFSET, INSERT_ROW_HEIGHT } from '../constants';
export const createGroupMetrics = (groups, groupbys, pathFoldedGroupMap, columns, rowHeight, includeInsertRow) => {
let groupbyColumnsMap = {};
groupbys.forEach(groupby => {
const columnKey = groupby.column_key;
const column = getColumnByKey(columnKey, columns);
const column = getColumnByKey(columns, columnKey);
groupbyColumnsMap[columnKey] = column;
});
const maxLevel = groupbys.length;