UNPKG

kodama-ui

Version:

Kodama UI is a Vue 3 component library that provides a set of components & funcionality to build your application.

40 lines (39 loc) 1.15 kB
import { ExtractPropTypes, SetupContext } from 'vue'; import { QueryParams } from '../../../store/modules/query'; import Props from './k-table.props'; export type KTableParams = { page: number; order: QueryParams['order']; filter: QueryParams['filter']; limit: QueryParams['limit']; reset: boolean; strict: QueryParams['strict']; }; export type KTableColumnFilter = { title: string; value: string | number | boolean; icon?: string; }; export type KTableColumn = { title: string; index?: string; order?: boolean; align?: 'center' | 'left' | 'right'; nowrap?: boolean; width?: string; slot?: string; filter?: { type: 'select' | 'date' | 'range' | 'text' | 'number'; options?: KTableColumnFilter[]; min?: number | string; max?: number | string; }; makeup?: 'date' | 'price' | 'image' | 'status' | 'code'; style?: Record<string, unknown>; url?: { name: string; id: string; }; }; export type KTableProps = Readonly<ExtractPropTypes<typeof Props>>; export type KTableContext = SetupContext<('fetch' | 'filter')[]>;