mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-16 13:40:24 +02:00
add large table size
This commit is contained in:
+8
-2
@@ -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);
|
||||
Reference in New Issue
Block a user