UNPKG

vuux

Version:

Vue3 Nuxt3 Nuxt4 组件库

50 lines (49 loc) 827 B
/** * Props */ export interface Props { columns: TableColumn[]; data: any[]; border?: boolean; stripe?: boolean; width?: string; height?: string; } /** * HeaderProps */ export interface HeaderProps { columns: TableColumn[]; tableData: any[]; isFixedHead?: boolean; } /** * NodeProps */ export interface NodeProps { columns: TableColumn[]; item?: any; } /** * 表格配置类型 */ export interface TableColumn { prop: string; title?: string; width?: number; class?: string; fixed?: string; } /** * 上下文类型 */ export type TableContext = { selectAll: (isAllChecked: boolean) => void; select: (node: any, select: boolean) => Promise<void>; }; /** * 组件事件类型 */ export type Emit = { (event: 'select', value: any[]): void; };