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