add large table size

This commit is contained in:
jeffvli
2025-10-09 14:25:27 -07:00
parent c2715a2d7e
commit 943b26dfea
16 changed files with 432 additions and 76 deletions
@@ -1,12 +1,13 @@
import { ItemTableListColumnConfig } from '/@/renderer/components/item-list/types';
/**
* Sorts table columns by their pinned position:
* Sorts table columns by their pinned position and filters out disabled columns:
* - Left pinned columns come first (maintaining their original order)
* - Unpinned columns come next (maintaining their original order)
* - Right pinned columns come last (maintaining their original order)
* - Columns with isEnabled: false are removed
*/
export const sortTableColumns = (
export const parseTableColumns = (
columns: ItemTableListColumnConfig[],
): ItemTableListColumnConfig[] => {
const leftPinned: ItemTableListColumnConfig[] = [];
@@ -14,7 +15,12 @@ export const sortTableColumns = (
const rightPinned: ItemTableListColumnConfig[] = [];
// Separate columns by pinned position while maintaining original order
// Only include columns that are enabled (isEnabled !== false)
columns.forEach((column) => {
if (column.isEnabled === false) {
return;
}
switch (column.pinned) {
case 'left':
leftPinned.push(column);