mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 12:30:12 +02:00
update list types
This commit is contained in:
@@ -56,6 +56,11 @@ export interface ItemListComponentProps<TQuery> {
|
||||
serverId: string;
|
||||
}
|
||||
|
||||
export interface ItemListGridComponentProps<TQuery> extends ItemListComponentProps<TQuery> {
|
||||
gap?: 'lg' | 'md' | 'sm' | 'xl' | 'xs';
|
||||
itemsPerRow?: number;
|
||||
}
|
||||
|
||||
export interface ItemListHandle {
|
||||
clearExpanded: () => void;
|
||||
clearSelected: () => void;
|
||||
@@ -67,10 +72,20 @@ export interface ItemListHandle {
|
||||
scrollToOffset: (offset: number, options?: { behavior?: 'auto' | 'smooth' }) => void;
|
||||
}
|
||||
|
||||
export interface ItemListTableComponentProps<TQuery> extends ItemListComponentProps<TQuery> {
|
||||
columns: ItemTableListColumnConfig[];
|
||||
enableAlternateRowColors?: boolean;
|
||||
enableHorizontalBorders?: boolean;
|
||||
enableRowHoverHighlight?: boolean;
|
||||
enableVerticalBorders?: boolean;
|
||||
size?: 'compact' | 'default';
|
||||
}
|
||||
|
||||
export interface ItemTableListColumnConfig {
|
||||
align: 'center' | 'end' | 'start';
|
||||
autoWidth?: boolean;
|
||||
autoSize?: boolean;
|
||||
id: TableColumn;
|
||||
isEnabled: boolean;
|
||||
pinned: 'left' | 'right' | null;
|
||||
width: number;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user