UNPKG

@happy-table/vue3

Version:

A high-performance Vue 3 table component for B2B systems with TypeScript support

23 lines (22 loc) 779 B
import { TableColumn, TableRow } from '../types/table'; import { FilterValue } from '../types/columnFilter'; export interface DependencyGraph { [columnKey: string]: string[]; } /** * 构建依赖关系图 */ export declare function buildDependencyGraph(columns: TableColumn[]): DependencyGraph; /** * 获取受影响的列(需要重新计算选项的列) */ export declare function getAffectedColumns(changedColumnKey: string, dependencyGraph: DependencyGraph): string[]; /** * 计算筛选后的可选项 */ export declare function calculateFilterOptions(column: TableColumn, data: TableRow[], activeFilters: Record<string, FilterValue>, _dependencyGraph: DependencyGraph): Array<{ value: any; label: string; count: number; available: boolean; }>;